diff --git a/packages/google-cloud-compute/.eslintrc.json b/packages/google-cloud-compute/.eslintrc.json index 782153495464..3e8d97ccb390 100644 --- a/packages/google-cloud-compute/.eslintrc.json +++ b/packages/google-cloud-compute/.eslintrc.json @@ -1,3 +1,4 @@ { - "extends": "./node_modules/gts" + "extends": "./node_modules/gts", + "root": true } diff --git a/packages/google-cloud-compute/.gitattributes b/packages/google-cloud-compute/.gitattributes new file mode 100644 index 000000000000..33739cb74e44 --- /dev/null +++ b/packages/google-cloud-compute/.gitattributes @@ -0,0 +1,4 @@ +*.ts text eol=lf +*.js text eol=lf +protos/* linguist-generated +**/api-extractor.json linguist-language=JSON-with-Comments diff --git a/packages/google-cloud-compute/.prettierignore b/packages/google-cloud-compute/.prettierignore new file mode 100644 index 000000000000..9340ad9b86d3 --- /dev/null +++ b/packages/google-cloud-compute/.prettierignore @@ -0,0 +1,6 @@ +**/node_modules +**/coverage +test/fixtures +build/ +docs/ +protos/ diff --git a/packages/google-cloud-compute/.prettierrc.js b/packages/google-cloud-compute/.prettierrc.js new file mode 100644 index 000000000000..7649ee3c254e --- /dev/null +++ b/packages/google-cloud-compute/.prettierrc.js @@ -0,0 +1,22 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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. ** + + +module.exports = { + ...require('gts/.prettierrc.json') +} diff --git a/packages/google-cloud-compute/CODE_OF_CONDUCT.md b/packages/google-cloud-compute/CODE_OF_CONDUCT.md new file mode 100644 index 000000000000..2add2547a812 --- /dev/null +++ b/packages/google-cloud-compute/CODE_OF_CONDUCT.md @@ -0,0 +1,94 @@ + +# Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to making participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, disability, ethnicity, gender identity and expression, level of +experience, education, socio-economic status, nationality, personal appearance, +race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment +include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or + advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic + address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or reject +comments, commits, code, wiki edits, issues, and other contributions that are +not aligned to this Code of Conduct, or to ban temporarily or permanently any +contributor for other behaviors that they deem inappropriate, threatening, +offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. Examples of +representing a project or community include using an official project e-mail +address, posting via an official social media account, or acting as an appointed +representative at an online or offline event. Representation of a project may be +further defined and clarified by project maintainers. + +This Code of Conduct also applies outside the project spaces when the Project +Steward has a reasonable belief that an individual's behavior may have a +negative impact on the project or its community. + +## Conflict Resolution + +We do not believe that all conflict is bad; healthy debate and disagreement +often yield positive results. However, it is never okay to be disrespectful or +to engage in behavior that violates the project’s code of conduct. + +If you see someone violating the code of conduct, you are encouraged to address +the behavior directly with those involved. Many issues can be resolved quickly +and easily, and this gives people more control over the outcome of their +dispute. If you are unable to resolve the matter for any reason, or if the +behavior is threatening or harassing, report it. We are dedicated to providing +an environment where participants feel welcome and safe. + +Reports should be directed to *googleapis-stewards@google.com*, the +Project Steward(s) for *Google Cloud Client Libraries*. It is the Project Steward’s duty to +receive and address reported violations of the code of conduct. They will then +work with a committee consisting of representatives from the Open Source +Programs Office and the Google Open Source Strategy team. If for any reason you +are uncomfortable reaching out to the Project Steward, please email +opensource@google.com. + +We will investigate every complaint, but you may not receive a direct response. +We will use our discretion in determining when and how to follow up on reported +incidents, which may range from not taking action to permanent expulsion from +the project and project-sponsored spaces. We will notify the accused of the +report and provide them an opportunity to discuss it before any action is taken. +The identity of the reporter will be omitted from the details of the report +supplied to the accused. In potentially harmful situations, such as ongoing +harassment or threats to anyone's safety, we may take action without notice. + +## Attribution + +This Code of Conduct is adapted from the Contributor Covenant, version 1.4, +available at +https://www.contributor-covenant.org/version/1/4/code-of-conduct.html \ No newline at end of file diff --git a/packages/google-cloud-compute/CONTRIBUTING.md b/packages/google-cloud-compute/CONTRIBUTING.md new file mode 100644 index 000000000000..b60b2556c3ed --- /dev/null +++ b/packages/google-cloud-compute/CONTRIBUTING.md @@ -0,0 +1,76 @@ +# How to become a contributor and submit your own code + +**Table of contents** + +* [Contributor License Agreements](#contributor-license-agreements) +* [Contributing a patch](#contributing-a-patch) +* [Running the tests](#running-the-tests) +* [Releasing the library](#releasing-the-library) + +## Contributor License Agreements + +We'd love to accept your sample apps and patches! Before we can take them, we +have to jump a couple of legal hurdles. + +Please fill out either the individual or corporate Contributor License Agreement +(CLA). + + * If you are an individual writing original source code and you're sure you + own the intellectual property, then you'll need to sign an [individual CLA](https://developers.google.com/open-source/cla/individual). + * If you work for a company that wants to allow you to contribute your work, + then you'll need to sign a [corporate CLA](https://developers.google.com/open-source/cla/corporate). + +Follow either of the two links above to access the appropriate CLA and +instructions for how to sign and return it. Once we receive it, we'll be able to +accept your pull requests. + +## Contributing A Patch + +1. Submit an issue describing your proposed change to the repo in question. +1. The repo owner will respond to your issue promptly. +1. If your proposed change is accepted, and you haven't already done so, sign a + Contributor License Agreement (see details above). +1. Fork the desired repo, develop and test your code changes. +1. Ensure that your code adheres to the existing style in the code to which + you are contributing. +1. Ensure that your code has an appropriate set of tests which all pass. +1. Title your pull request following [Conventional Commits](https://www.conventionalcommits.org/) styling. +1. Submit a pull request. + +### Before you begin + +1. [Select or create a Cloud Platform project][projects]. +1. [Enable billing for your project][billing]. +1. [Enable the Compute API][enable_api]. +1. [Set up authentication with a service account][auth] so you can access the + API from your local workstation. + + +## Running the tests + +1. [Prepare your environment for Node.js setup][setup]. + +1. Install dependencies: + + npm install + +1. Run the tests: + + # Run unit tests. + npm test + + # Run sample integration tests. + npm run samples-test + + # Run all system tests. + npm run system-test + +1. Lint (and maybe fix) any changes: + + npm run fix + +[setup]: https://cloud.google.com/nodejs/docs/setup +[projects]: https://console.cloud.google.com/project +[billing]: https://support.google.com/cloud/answer/6293499#enable-billing +[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=compute.googleapis.com +[auth]: https://cloud.google.com/docs/authentication/getting-started \ No newline at end of file diff --git a/packages/google-cloud-compute/LICENSE b/packages/google-cloud-compute/LICENSE new file mode 100644 index 000000000000..d64569567334 --- /dev/null +++ b/packages/google-cloud-compute/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/google-cloud-compute/README.md b/packages/google-cloud-compute/README.md index 4afae6baa7c7..f17efb5671cb 100644 --- a/packages/google-cloud-compute/README.md +++ b/packages/google-cloud-compute/README.md @@ -91,12 +91,14 @@ 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/v1/autoscalers.test_iam_permissions.js) | | update | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/autoscalers.update.js) | | add signed url key | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/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/v1/backend_buckets.aggregated_list.js) | | delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/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/v1/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/v1/backend_buckets.get.js) | | get iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/backend_buckets.get_iam_policy.js) | | insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/backend_buckets.insert.js) | | list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/backend_buckets.list.js) | +| list usable | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/backend_buckets.list_usable.js) | | patch | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/backend_buckets.patch.js) | | set edge security policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/backend_buckets.set_edge_security_policy.js) | | set iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/backend_buckets.set_iam_policy.js) | @@ -146,6 +148,7 @@ 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/v1/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/v1/disks.test_iam_permissions.js) | | update | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/disks.update.js) | +| update kms key | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/disks.update_kms_key.js) | | delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/external_vpn_gateways.delete.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/external_vpn_gateways.get.js) | | insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/external_vpn_gateways.insert.js) | @@ -346,6 +349,13 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | update display device | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instances.update_display_device.js) | | update network interface | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instances.update_network_interface.js) | | update shielded instance config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instances.update_shielded_instance_config.js) | +| delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instant_snapshot_groups.delete.js) | +| get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instant_snapshot_groups.get.js) | +| get iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instant_snapshot_groups.get_iam_policy.js) | +| insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instant_snapshot_groups.insert.js) | +| list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instant_snapshot_groups.list.js) | +| set iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instant_snapshot_groups.set_iam_policy.js) | +| test iam permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instant_snapshot_groups.test_iam_permissions.js) | | aggregated list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.aggregated_list.js) | | delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.delete.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instant_snapshots.get.js) | @@ -560,6 +570,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/v1/region_autoscalers.patch.js) | | test iam permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_autoscalers.test_iam_permissions.js) | | update | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_autoscalers.update.js) | +| delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_backend_buckets.delete.js) | +| get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/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/v1/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/v1/region_backend_buckets.insert.js) | +| list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_backend_buckets.list.js) | +| list usable | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_backend_buckets.list_usable.js) | +| patch | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/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/v1/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/v1/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/v1/region_backend_services.delete.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_backend_services.get.js) | | get health | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_backend_services.get_health.js) | @@ -580,6 +599,7 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | aggregated list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/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/v1/region_composite_health_checks.delete.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_composite_health_checks.get.js) | +| get health | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_composite_health_checks.get_health.js) | | insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_composite_health_checks.insert.js) | | list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_composite_health_checks.list.js) | | patch | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_composite_health_checks.patch.js) | @@ -603,6 +623,7 @@ 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/v1/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/v1/region_disks.test_iam_permissions.js) | | update | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_disks.update.js) | +| update kms key | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_disks.update_kms_key.js) | | aggregated list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/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/v1/region_health_aggregation_policies.delete.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_aggregation_policies.get.js) | @@ -627,10 +648,16 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | aggregated list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_sources.aggregated_list.js) | | delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_sources.delete.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_sources.get.js) | +| get health | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_sources.get_health.js) | | insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_sources.insert.js) | | list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_sources.list.js) | | patch | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_sources.patch.js) | | test iam permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_sources.test_iam_permissions.js) | +| cancel | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_group_manager_resize_requests.cancel.js) | +| delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_group_manager_resize_requests.delete.js) | +| get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_group_manager_resize_requests.get.js) | +| insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_group_manager_resize_requests.insert.js) | +| list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_group_manager_resize_requests.list.js) | | abandon instances | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.abandon_instances.js) | | apply updates to instances | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.apply_updates_to_instances.js) | | create instances | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.create_instances.js) | @@ -664,6 +691,13 @@ 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/v1/region_instance_templates.insert.js) | | list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_templates.list.js) | | bulk insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instances.bulk_insert.js) | +| delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshot_groups.delete.js) | +| get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshot_groups.get.js) | +| get iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshot_groups.get_iam_policy.js) | +| insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshot_groups.insert.js) | +| list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshot_groups.list.js) | +| set iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshot_groups.set_iam_policy.js) | +| test iam permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshot_groups.test_iam_permissions.js) | | delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.delete.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.get.js) | | get iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshots.get_iam_policy.js) | @@ -716,6 +750,17 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | patch rule | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_security_policies.patch_rule.js) | | remove rule | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_security_policies.remove_rule.js) | | set labels | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_security_policies.set_labels.js) | +| get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_snapshot_settings.get.js) | +| patch | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_snapshot_settings.patch.js) | +| delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_snapshots.delete.js) | +| get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_snapshots.get.js) | +| get iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_snapshots.get_iam_policy.js) | +| insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_snapshots.insert.js) | +| list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_snapshots.list.js) | +| set iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_snapshots.set_iam_policy.js) | +| set labels | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_snapshots.set_labels.js) | +| test iam permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_snapshots.test_iam_permissions.js) | +| update kms key | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_snapshots.update_kms_key.js) | | delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_ssl_certificates.delete.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_ssl_certificates.get.js) | | insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_ssl_certificates.insert.js) | @@ -843,6 +888,7 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | set iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/snapshots.set_iam_policy.js) | | set labels | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/snapshots.set_labels.js) | | test iam permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/snapshots.test_iam_permissions.js) | +| update kms key | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/snapshots.update_kms_key.js) | | cloud | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/snippet_metadata_google.cloud.compute.v1.json) | | aggregated list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/ssl_certificates.aggregated_list.js) | | delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/ssl_certificates.delete.js) | @@ -981,6 +1027,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/v1/zone_operations.get.js) | | list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/zone_operations.list.js) | | wait | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/zone_operations.wait.js) | +| delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/zone_vm_extension_policies.delete.js) | +| get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/zone_vm_extension_policies.get.js) | +| insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/zone_vm_extension_policies.insert.js) | +| list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/zone_vm_extension_policies.list.js) | +| update | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/zone_vm_extension_policies.update.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/zones.get.js) | | list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/zones.list.js) | | aggregated list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/accelerator_types.aggregated_list.js) | @@ -1063,6 +1114,7 @@ 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/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/disks.test_iam_permissions.js) | | update | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/disks.update.js) | +| update kms key | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/disks.update_kms_key.js) | | delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/external_vpn_gateways.delete.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/external_vpn_gateways.get.js) | | insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/external_vpn_gateways.insert.js) | @@ -1543,6 +1595,7 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | 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) | +| get health | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_composite_health_checks.get_health.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) | @@ -1568,6 +1621,7 @@ 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) | +| update kms key | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_disks.update_kms_key.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) | @@ -1592,6 +1646,7 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | aggregated list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_health_sources.aggregated_list.js) | | delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_health_sources.delete.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_health_sources.get.js) | +| get health | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_health_sources.get_health.js) | | insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_health_sources.insert.js) | | list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_health_sources.list.js) | | patch | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_health_sources.patch.js) | @@ -1728,6 +1783,7 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | set iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_snapshots.set_iam_policy.js) | | set labels | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_snapshots.set_labels.js) | | test iam permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_snapshots.test_iam_permissions.js) | +| update kms key | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_snapshots.update_kms_key.js) | | delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_certificates.delete.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_certificates.get.js) | | insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_certificates.insert.js) | @@ -1885,6 +1941,7 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | set iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/snapshots.set_iam_policy.js) | | set labels | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/snapshots.set_labels.js) | | test iam permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/snapshots.test_iam_permissions.js) | +| update kms key | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/snapshots.update_kms_key.js) | | cloud | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/snippet_metadata_google.cloud.compute.v1beta.json) | | aggregated list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/ssl_certificates.aggregated_list.js) | | delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/ssl_certificates.delete.js) | diff --git a/packages/google-cloud-compute/protos/google/cloud/compute/v1/compute.proto b/packages/google-cloud-compute/protos/google/cloud/compute/v1/compute.proto index 4e072f2aac8d..f1f4776007af 100644 --- a/packages/google-cloud-compute/protos/google/cloud/compute/v1/compute.proto +++ b/packages/google-cloud-compute/protos/google/cloud/compute/v1/compute.proto @@ -14,7 +14,7 @@ // Generated by the disco-to-proto3-converter. DO NOT EDIT! // Source Discovery file: compute.v1.json -// Source file revision: 20260227 +// Source file revision: 20260331 // API name: compute // API version: v1 @@ -2001,6 +2001,119 @@ message AggregatedListAutoscalersRequest { } +// 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. + 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 @@ -9259,6 +9372,9 @@ message Backend { // Based on custom defined and reported metrics. CUSTOM_METRICS = 331575765; + // Balance based on the number of in-flight requests. + IN_FLIGHT = 190040266; + // Balance based on requests per second (RPS). RATE = 2508000; @@ -9292,6 +9408,23 @@ message Backend { } + // + enum TrafficDuration { + // 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. + LONG = 2342524; + + // Most requests are expected to finish with a sub-second latency. + SHORT = 78875740; + + // Traffic duration is unspecified. + TRAFFIC_DURATION_UNSPECIFIED = 265201166; + + } + // 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. @@ -9369,6 +9502,20 @@ message Backend { // 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 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. + 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. + optional int32 max_in_flight_requests_per_instance = 195696002; + // Defines a maximum number of HTTP requests per second (RPS). For // usage guidelines, seeRate // balancing mode and Utilization @@ -9415,6 +9562,10 @@ message Backend { // Check the Preference enum for the list of possible values. optional string preference = 150781147; + // + // Check the TrafficDuration enum for the list of possible values. + optional string traffic_duration = 11618710; + } // A message containing information about the resource or system that manages @@ -9456,6 +9607,10 @@ message BackendBucket { // 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; @@ -9518,6 +9673,12 @@ message BackendBucket { // as part of resource payload. optional BackendBucketParams params = 78313862; + // Output only. [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; @@ -9526,6 +9687,32 @@ 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; + + // Output only. 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. [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. @@ -9761,6 +9948,33 @@ message BackendBucketList { } +// +message BackendBucketListUsable { + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of BackendBucket resources. + repeated BackendBucket items = 100526016; + + // Output only. [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 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. [Output Only] Server-defined URL for this resource. + optional string self_link = 456214797; + + // [Output Only] Informational warning message. + optional Warning warning = 50704284; + +} + // Additional Backend Bucket parameters. message BackendBucketParams { // Tag keys/values directly bound to this resource. @@ -9787,6 +10001,17 @@ message BackendBucketUsedBy { } +// +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 @@ -9991,7 +10216,7 @@ message BackendService { // 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, + // - 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 @@ -10223,7 +10448,7 @@ message BackendService { // // This field is applicable to either: // - // - A regional backend service with the service_protocol set to HTTP, + // - 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 @@ -10453,7 +10678,7 @@ message BackendService { // 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, + // - 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 @@ -10559,7 +10784,7 @@ message BackendService { // - 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 + // service with the service protocol set to HTTP, HTTPS, HTTP2 or H2C, and // loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not // supported for Serverless NEGs. // @@ -12216,6 +12441,13 @@ message BulkInsertDiskRequest { // compute.regionDisks.bulkInsert. It is only used to process // requests and is not persisted. message BulkInsertDiskResource { + // The parameters for the instant snapshot group. + optional InstantSnapshotGroupParameters instant_snapshot_group_parameters = 17051623; + + // The parameters for the snapshot group. The usage of snapshot group feature + // is restricted. + optional SnapshotGroupParameters snapshot_group_parameters = 42252485; + // The URL of the DiskConsistencyGroupPolicy for the group of disks to clone. // This may be a full or partial URL, such as: // @@ -12695,6 +12927,46 @@ 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. + string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // 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). + optional string request_id = 37109963; + + // 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. message CircuitBreakers { @@ -13061,6 +13333,10 @@ message Commitment { // cannot be a dash. optional string name = 3373707; + // Input only. Additional params passed with the request, but not persisted + // as part of resource payload. + optional CommitmentParams params = 78313862; + // 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 @@ -13187,6 +13463,19 @@ message CommitmentList { } +// Additional commitment params. +message CommitmentParams { + // Input only. Resource manager tags to be bound to the commitment. Tag keys and + // values have the same definition as resource + // manager tags. Keys and values can be either in numeric format, + // such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in + // namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and + // `{tag_value_short_name}`. The field is ignored (both PUT & + // PATCH) when empty. + map resource_manager_tags = 377671164; + +} + // [Output Only] Contains output only fields. message CommitmentResourceStatus { // Output only. [Output Only] Indicates the end time of customer's eligibility to send @@ -13300,6 +13589,34 @@ message CompositeHealthCheckAggregatedList { } +// Response message for RegionCompositeHealthChecks.GetHealth +message CompositeHealthCheckHealth { + // Health state of the CompositeHealthCheck. + enum HealthState { + // A value indicating that the enum field is not set. + UNDEFINED_HEALTH_STATE = 0; + + HEALTHY = 439801213; + + UNHEALTHY = 462118084; + + UNKNOWN = 433141802; + + } + + // Health sources and their corresponding health states. + repeated CompositeHealthChecksGetHealthResponseHealthSourceHealth health_sources = 397879509; + + // Health state of the CompositeHealthCheck. + // Check the HealthState enum for the list of possible values. + optional string health_state = 324007150; + + // Output only. [Output Only] Type of resource. Alwayscompute#compositeHealthCheckHealth for the health of + // composite health checks. + optional string kind = 3292052; + +} + // message CompositeHealthCheckList { // [Output Only] Unique identifier for the resource; defined by the server. @@ -13326,6 +13643,30 @@ message CompositeHealthCheckList { } +// +message CompositeHealthChecksGetHealthResponseHealthSourceHealth { + // Health state of the associated HealthSource resource. + enum HealthState { + // A value indicating that the enum field is not set. + UNDEFINED_HEALTH_STATE = 0; + + HEALTHY = 439801213; + + UNHEALTHY = 462118084; + + UNKNOWN = 433141802; + + } + + // Health state of the associated HealthSource resource. + // Check the HealthState enum for the list of possible values. + optional string health_state = 324007150; + + // Fully qualified URL of the associated HealthSource resource. + optional string source = 177235995; + +} + // message CompositeHealthChecksScopedList { // A list of CompositeHealthChecks contained in this scope. @@ -14747,6 +15088,40 @@ message DeleteInstancesRegionInstanceGroupManagerRequest { } +// A request message for InstantSnapshotGroups.Delete. See the method description for details. +message DeleteInstantSnapshotGroupRequest { + // Name of the InstantSnapshot resource to delete. + string instant_snapshot_group = 223180386 [(google.api.field_behavior) = REQUIRED]; + + // 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 name of the zone for this request. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + // A request message for InstantSnapshots.Delete. See the method description for details. message DeleteInstantSnapshotRequest { // Name of the InstantSnapshot resource to delete. @@ -15461,6 +15836,41 @@ message DeleteRegionAutoscalerRequest { } +// 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]; + + // 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; + +} + // A request message for RegionBackendServices.Delete. See the method description for details. message DeleteRegionBackendServiceRequest { // Name of the BackendService resource to delete. @@ -15734,6 +16144,46 @@ message DeleteRegionInstanceGroupManagerRequest { } +// 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. + string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // 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). + optional string request_id = 37109963; + + // 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]; + +} + // A request message for RegionInstanceTemplates.Delete. See the method description for details. message DeleteRegionInstanceTemplateRequest { // The name of the instance template to delete. @@ -15768,6 +16218,40 @@ message DeleteRegionInstanceTemplateRequest { } +// A request message for RegionInstantSnapshotGroups.Delete. See the method description for details. +message DeleteRegionInstantSnapshotGroupRequest { + // Name of the InstantSnapshotGroup resource to delete. + string instant_snapshot_group = 223180386 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // The name of the region for 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 RegionInstantSnapshots.Delete. See the method description for details. message DeleteRegionInstantSnapshotRequest { // Name of the InstantSnapshot resource to delete. @@ -15958,6 +16442,40 @@ message DeleteRegionSecurityPolicyRequest { } +// A request message for RegionSnapshots.Delete. See the method description for details. +message DeleteRegionSnapshotRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // The name of the region for 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; + + // Name of the snapshot resource to delete. + string snapshot = 284874180 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for RegionSslCertificates.Delete. See the method description for details. message DeleteRegionSslCertificateRequest { // Project ID for this request. @@ -16985,6 +17503,40 @@ 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 @@ -18124,6 +18676,24 @@ message DiskTypesScopedList { } +// +message DiskUpdateKmsKeyRequest { + // Optional. The new KMS key to replace the current one on the disk. If empty, the disk + // will be re-encrypted using the primary version of the disk's current KMS + // key. + // + // The KMS key can be provided in the following formats: + // + // + // - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key + // + // + // Where project is the project ID or + // project number. + optional string kms_key_name = 484373913; + +} + // message DisksAddResourcePoliciesRequest { // Full or relative path to the resource policy to be added to this disk. You @@ -18343,7 +18913,7 @@ message EnableXpnResourceProjectRequest { } -// Output only. [Output Only] Encountered errors. +// Output only. Encountered errors. message Error { // [Output Only] The array of errors encountered while processing this // operation. @@ -20216,6 +20786,18 @@ message ForwardingRulesScopedList { // message FutureReservation { + // + enum ConfidentialComputeType { + // A value indicating that the enum field is not set. + UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE = 0; + + // Intel Trust Domain Extensions. + CONFIDENTIAL_COMPUTE_TYPE_TDX = 301241954; + + CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED = 42227601; + + } + // Type of the deployment requested as part of future reservation. enum DeploymentType { // A value indicating that the enum field is not set. @@ -20308,6 +20890,10 @@ message FutureReservation { // existing commitment. optional FutureReservationCommitmentInfo commitment_info = 164362136; + // + // Check the ConfidentialComputeType enum for the list of possible values. + optional string confidential_compute_type = 386447257; + // Output only. [Output Only] The creation timestamp for this future reservation inRFC3339 // text format. optional string creation_timestamp = 30525366; @@ -20346,6 +20932,10 @@ message FutureReservation { // reservations name format will be -date-####. optional string name_prefix = 236409542; + // Input only. Additional params passed with the request, but not persisted + // as part of resource payload. + optional FutureReservationParams params = 78313862; + // Planning state before being submitted for evaluation // Check the PlanningStatus enum for the list of possible values. optional string planning_status = 19714836; @@ -20446,6 +21036,19 @@ message FutureReservationCommitmentInfo { } +// Additional future reservation params. +message FutureReservationParams { + // Input only. Resource manager tags to be bound to the future reservation. Tag keys and + // values have the same definition as resource + // manager tags. Keys and values can be either in numeric format, + // such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in + // namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and + // `{tag_value_short_name}`. The field is ignored (both PUT & + // PATCH) when empty. + map resource_manager_tags = 377671164; + +} + // message FutureReservationSpecificSKUProperties { // Properties of the SKU instances being reserved. @@ -21607,6 +22210,32 @@ message GetHealthRegionBackendServiceRequest { } +// A request message for RegionCompositeHealthChecks.GetHealth. See the method description for details. +message GetHealthRegionCompositeHealthCheckRequest { + // Name of the CompositeHealthCheck resource to get health for. + string composite_health_check = 466984989 [(google.api.field_behavior) = REQUIRED]; + + // Name of the project scoping 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 RegionHealthSources.GetHealth. See the method description for details. +message GetHealthRegionHealthSourceRequest { + // Name of the HealthSource resource to get health for. + string health_source = 376521566 [(google.api.field_behavior) = REQUIRED]; + + // Name of the project scoping 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 TargetPools.GetHealth. See the method description for details. message GetHealthTargetPoolRequest { // The body resource for this request @@ -21717,6 +22346,22 @@ message GetIamPolicyInstanceTemplateRequest { } +// A request message for InstantSnapshotGroups.GetIamPolicy. See the method description for details. +message GetIamPolicyInstantSnapshotGroupRequest { + // Requested IAM Policy version. + optional int32 options_requested_policy_version = 499220029; + + // 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 InstantSnapshots.GetIamPolicy. See the method description for details. message GetIamPolicyInstantSnapshotRequest { // Requested IAM Policy version. @@ -21846,6 +22491,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. @@ -21878,6 +22539,22 @@ message GetIamPolicyRegionDiskRequest { } +// A request message for RegionInstantSnapshotGroups.GetIamPolicy. See the method description for details. +message GetIamPolicyRegionInstantSnapshotGroupRequest { + // 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 RegionInstantSnapshots.GetIamPolicy. See the method description for details. message GetIamPolicyRegionInstantSnapshotRequest { // Requested IAM Policy version. @@ -21910,6 +22587,22 @@ message GetIamPolicyRegionNetworkFirewallPolicyRequest { } +// A request message for RegionSnapshots.GetIamPolicy. See the method description for details. +message GetIamPolicyRegionSnapshotRequest { + // 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 ReservationBlocks.GetIamPolicy. See the method description for details. message GetIamPolicyReservationBlockRequest { // Requested IAM Policy version. @@ -22144,6 +22837,19 @@ message GetInstanceTemplateRequest { } +// A request message for InstantSnapshotGroups.Get. See the method description for details. +message GetInstantSnapshotGroupRequest { + // Name of the InstantSnapshotGroup resource to return. + string instant_snapshot_group = 223180386 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [(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 InstantSnapshots.Get. See the method description for details. message GetInstantSnapshotRequest { // Name of the InstantSnapshot resource to return. @@ -22619,6 +23325,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. @@ -22750,6 +23469,25 @@ 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. + 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. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // 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]; + +} + // A request message for RegionInstanceGroups.Get. See the method description for details. message GetRegionInstanceGroupRequest { // Name of the instance group resource to return. @@ -22776,6 +23514,19 @@ message GetRegionInstanceTemplateRequest { } +// A request message for RegionInstantSnapshotGroups.Get. See the method description for details. +message GetRegionInstantSnapshotGroupRequest { + // Name of the InstantSnapshotGroup resource to return. + string instant_snapshot_group = 223180386 [(google.api.field_behavior) = REQUIRED]; + + // 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]; + +} + // A request message for RegionInstantSnapshots.Get. See the method description for details. message GetRegionInstantSnapshotRequest { // Name of the InstantSnapshot resource to return. @@ -22869,6 +23620,29 @@ message GetRegionSecurityPolicyRequest { } +// A request message for RegionSnapshots.Get. See the method description for details. +message GetRegionSnapshotRequest { + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Name of the Snapshot resource to return. + string snapshot = 284874180 [(google.api.field_behavior) = REQUIRED]; + +} + +// A request message for RegionSnapshotSettings.Get. See the method description for details. +message GetRegionSnapshotSettingRequest { + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for RegionSslCertificates.Get. See the method description for details. message GetRegionSslCertificateRequest { // Project ID for this request. @@ -23773,6 +24547,19 @@ 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 @@ -23971,6 +24758,7 @@ message GuestOsFeature { // - TDX_CAPABLE // - IDPF // - SNP_SVSM_CAPABLE + // - CCA_CAPABLE // // // For more information, see @@ -24026,6 +24814,7 @@ message GuestOsFeature { // - TDX_CAPABLE // - IDPF // - SNP_SVSM_CAPABLE + // - CCA_CAPABLE // // // For more information, see @@ -25060,6 +25849,33 @@ message HealthSourceAggregatedList { } +// Response message for RegionHealthSources.GetHealth +message HealthSourceHealth { + // Health state of the HealthSource. + enum HealthState { + // A value indicating that the enum field is not set. + UNDEFINED_HEALTH_STATE = 0; + + HEALTHY = 439801213; + + UNHEALTHY = 462118084; + + UNKNOWN = 433141802; + + } + + // Health state of the HealthSource. + // Check the HealthState enum for the list of possible values. + optional string health_state = 324007150; + + // Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of health sources. + optional string kind = 3292052; + + // Health state details of the sources. + repeated HealthSourcesGetHealthResponseSourceInfo sources = 125606840; + +} + // message HealthSourceList { // [Output Only] Unique identifier for the resource; defined by the server. @@ -25086,6 +25902,39 @@ message HealthSourceList { } +// +message HealthSourcesGetHealthResponseSourceInfo { + // Represents an instance group or network endpoint group behind the source + // backend service. Only used if the sourceType of the regionHealthSource + // is BACKEND_SERVICE. + repeated HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903; + + // Fully qualified URL of the forwarding rule associated with the source + // resource if it is a L4ILB backend service. + optional string forwarding_rule = 269964030; + + // Fully qualified URL of the associated source resource. This is always a + // backend service URL. + optional string source = 177235995; + +} + +// +message HealthSourcesGetHealthResponseSourceInfoBackendInfo { + // Total number of endpoints when determining the health of the + // regionHealthSource. + optional int32 endpoint_count = 486641125; + + // Fully qualified URL of an instance group or network endpoint group + // behind the source backend service. + optional string group = 98629247; + + // Number of endpoints considered healthy when determining health of the + // regionHealthSource. + optional int32 healthy_endpoint_count = 291284167; + +} + // message HealthSourcesScopedList { // A list of HealthSources contained in this scope. @@ -27020,6 +27869,43 @@ message InsertInstanceTemplateRequest { } +// A request message for InstantSnapshotGroups.Insert. See the method description for details. +message InsertInstantSnapshotGroupRequest { + // The body resource for this request + InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(google.api.field_behavior) = REQUIRED]; + + // 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; + + // begin_interface: MixerMutationRequestBuilder + optional string source_consistency_group = 531359348; + + // Name of the zone for this request. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + // A request message for InstantSnapshots.Insert. See the method description for details. message InsertInstantSnapshotRequest { // The body resource for this request @@ -27628,44 +28514,10 @@ message InsertRegionAutoscalerRequest { } -// A request message for RegionBackendServices.Insert. See the method description for details. -message InsertRegionBackendServiceRequest { - // The body resource for this request - BackendService backend_service_resource = 347586723 [(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 RegionCommitments.Insert. See the method description for details. -message InsertRegionCommitmentRequest { +// A request message for RegionBackendBuckets.Insert. See the method description for details. +message InsertRegionBackendBucketRequest { // The body resource for this request - Commitment commitment_resource = 244240888 [(google.api.field_behavior) = REQUIRED]; + BackendBucket backend_bucket_resource = 380757784 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -27673,7 +28525,7 @@ message InsertRegionCommitmentRequest { (google.cloud.operation_request_field) = "project" ]; - // Name of the region for this request. + // Name of the region of this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -27696,10 +28548,10 @@ message InsertRegionCommitmentRequest { } -// A request message for RegionCompositeHealthChecks.Insert. See the method description for details. -message InsertRegionCompositeHealthCheckRequest { +// A request message for RegionBackendServices.Insert. See the method description for details. +message InsertRegionBackendServiceRequest { // The body resource for this request - CompositeHealthCheck composite_health_check_resource = 132195824 [(google.api.field_behavior) = REQUIRED]; + BackendService backend_service_resource = 347586723 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -27730,10 +28582,10 @@ message InsertRegionCompositeHealthCheckRequest { } -// A request message for RegionDisks.Insert. See the method description for details. -message InsertRegionDiskRequest { +// A request message for RegionCommitments.Insert. See the method description for details. +message InsertRegionCommitmentRequest { // The body resource for this request - Disk disk_resource = 25880688 [(google.api.field_behavior) = REQUIRED]; + Commitment commitment_resource = 244240888 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -27762,15 +28614,12 @@ message InsertRegionDiskRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // Source image to restore onto a disk. This field is optional. - optional string source_image = 50443319; - } -// A request message for RegionHealthAggregationPolicies.Insert. See the method description for details. -message InsertRegionHealthAggregationPolicyRequest { +// A request message for RegionCompositeHealthChecks.Insert. See the method description for details. +message InsertRegionCompositeHealthCheckRequest { // The body resource for this request - HealthAggregationPolicy health_aggregation_policy_resource = 293526971 [(google.api.field_behavior) = REQUIRED]; + CompositeHealthCheck composite_health_check_resource = 132195824 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -27801,10 +28650,10 @@ message InsertRegionHealthAggregationPolicyRequest { } -// A request message for RegionHealthChecks.Insert. See the method description for details. -message InsertRegionHealthCheckRequest { +// A request message for RegionDisks.Insert. See the method description for details. +message InsertRegionDiskRequest { // The body resource for this request - HealthCheck health_check_resource = 201925032 [(google.api.field_behavior) = REQUIRED]; + Disk disk_resource = 25880688 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -27812,7 +28661,7 @@ message InsertRegionHealthCheckRequest { (google.cloud.operation_request_field) = "project" ]; - // Name of the region scoping this request. + // Name of the region for this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -27833,12 +28682,15 @@ message InsertRegionHealthCheckRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; + // Source image to restore onto a disk. This field is optional. + optional string source_image = 50443319; + } -// A request message for RegionHealthCheckServices.Insert. See the method description for details. -message InsertRegionHealthCheckServiceRequest { +// A request message for RegionHealthAggregationPolicies.Insert. See the method description for details. +message InsertRegionHealthAggregationPolicyRequest { // The body resource for this request - HealthCheckService health_check_service_resource = 477367794 [(google.api.field_behavior) = REQUIRED]; + HealthAggregationPolicy health_aggregation_policy_resource = 293526971 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -27869,10 +28721,10 @@ message InsertRegionHealthCheckServiceRequest { } -// A request message for RegionHealthSources.Insert. See the method description for details. -message InsertRegionHealthSourceRequest { +// A request message for RegionHealthChecks.Insert. See the method description for details. +message InsertRegionHealthCheckRequest { // The body resource for this request - HealthSource health_source_resource = 357735375 [(google.api.field_behavior) = REQUIRED]; + HealthCheck health_check_resource = 201925032 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -27903,10 +28755,10 @@ message InsertRegionHealthSourceRequest { } -// A request message for RegionInstanceGroupManagers.Insert. See the method description for details. -message InsertRegionInstanceGroupManagerRequest { +// A request message for RegionHealthCheckServices.Insert. See the method description for details. +message InsertRegionHealthCheckServiceRequest { // The body resource for this request - InstanceGroupManager instance_group_manager_resource = 261063946 [(google.api.field_behavior) = REQUIRED]; + HealthCheckService health_check_service_resource = 477367794 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -27937,10 +28789,10 @@ message InsertRegionInstanceGroupManagerRequest { } -// A request message for RegionInstanceTemplates.Insert. See the method description for details. -message InsertRegionInstanceTemplateRequest { +// A request message for RegionHealthSources.Insert. See the method description for details. +message InsertRegionHealthSourceRequest { // The body resource for this request - InstanceTemplate instance_template_resource = 10679561 [(google.api.field_behavior) = REQUIRED]; + HealthSource health_source_resource = 357735375 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -27948,7 +28800,7 @@ message InsertRegionInstanceTemplateRequest { (google.cloud.operation_request_field) = "project" ]; - // The name of the region for this request. + // Name of the region scoping this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -27971,10 +28823,10 @@ message InsertRegionInstanceTemplateRequest { } -// A request message for RegionInstantSnapshots.Insert. See the method description for details. -message InsertRegionInstantSnapshotRequest { +// A request message for RegionInstanceGroupManagers.Insert. See the method description for details. +message InsertRegionInstanceGroupManagerRequest { // The body resource for this request - InstantSnapshot instant_snapshot_resource = 383915339 [(google.api.field_behavior) = REQUIRED]; + InstanceGroupManager instance_group_manager_resource = 261063946 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -27982,7 +28834,7 @@ message InsertRegionInstantSnapshotRequest { (google.cloud.operation_request_field) = "project" ]; - // Name of the region for this request. + // Name of the region scoping this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -28005,10 +28857,14 @@ message InsertRegionInstantSnapshotRequest { } -// A request message for RegionNetworkEndpointGroups.Insert. See the method description for details. -message InsertRegionNetworkEndpointGroupRequest { +// 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. + string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; + // The body resource for this request - NetworkEndpointGroup network_endpoint_group_resource = 525788839 [(google.api.field_behavior) = REQUIRED]; + InstanceGroupManagerResizeRequest instance_group_manager_resize_request_resource = 468541293 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -28016,9 +28872,8 @@ 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. + // 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" @@ -28041,10 +28896,10 @@ message InsertRegionNetworkEndpointGroupRequest { } -// A request message for RegionNetworkFirewallPolicies.Insert. See the method description for details. -message InsertRegionNetworkFirewallPolicyRequest { +// A request message for RegionInstanceTemplates.Insert. See the method description for details. +message InsertRegionInstanceTemplateRequest { // The body resource for this request - FirewallPolicy firewall_policy_resource = 495049532 [(google.api.field_behavior) = REQUIRED]; + InstanceTemplate instance_template_resource = 10679561 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -28052,14 +28907,14 @@ message InsertRegionNetworkFirewallPolicyRequest { (google.cloud.operation_request_field) = "project" ]; - // Name of the region scoping this request. + // The name of the region for 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 + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the // request if it has already been completed. // // For example, consider a situation where you make an initial request and @@ -28075,10 +28930,10 @@ message InsertRegionNetworkFirewallPolicyRequest { } -// A request message for RegionNotificationEndpoints.Insert. See the method description for details. -message InsertRegionNotificationEndpointRequest { +// A request message for RegionInstantSnapshotGroups.Insert. See the method description for details. +message InsertRegionInstantSnapshotGroupRequest { // The body resource for this request - NotificationEndpoint notification_endpoint_resource = 338459940 [(google.api.field_behavior) = REQUIRED]; + InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -28086,7 +28941,7 @@ message InsertRegionNotificationEndpointRequest { (google.cloud.operation_request_field) = "project" ]; - // Name of the region scoping this request. + // Name of the region for this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -28107,17 +28962,23 @@ message InsertRegionNotificationEndpointRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; + // begin_interface: MixerMutationRequestBuilder + optional string source_consistency_group = 531359348; + } -// A request message for RegionSecurityPolicies.Insert. See the method description for details. -message InsertRegionSecurityPolicyRequest { +// A request message for RegionInstantSnapshots.Insert. See the method description for details. +message InsertRegionInstantSnapshotRequest { + // The body resource for this request + InstantSnapshot instant_snapshot_resource = 383915339 [(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. + // Name of the region for this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -28138,23 +28999,22 @@ message InsertRegionSecurityPolicyRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The body resource for this request - SecurityPolicy security_policy_resource = 216159612 [(google.api.field_behavior) = REQUIRED]; - - // If true, the request will not be committed. - optional bool validate_only = 242744629; - } -// A request message for RegionSslCertificates.Insert. See the method description for details. -message InsertRegionSslCertificateRequest { +// A request message for RegionNetworkEndpointGroups.Insert. See the method description for details. +message InsertRegionNetworkEndpointGroupRequest { + // The body resource for this request + NetworkEndpointGroup network_endpoint_group_resource = 525788839 [(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. + // 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" @@ -28175,13 +29035,13 @@ message InsertRegionSslCertificateRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The body resource for this request - SslCertificate ssl_certificate_resource = 180709897 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for RegionSslPolicies.Insert. See the method description for details. -message InsertRegionSslPolicyRequest { +// A request message for RegionNetworkFirewallPolicies.Insert. See the method description for details. +message InsertRegionNetworkFirewallPolicyRequest { + // The body resource for this request + FirewallPolicy firewall_policy_resource = 495049532 [(google.api.field_behavior) = REQUIRED]; + // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, @@ -28194,8 +29054,8 @@ 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 + // An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore the // request if it has already been completed. // // For example, consider a situation where you make an initial request and @@ -28209,13 +29069,13 @@ message InsertRegionSslPolicyRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The body resource for this request - SslPolicy ssl_policy_resource = 274891848 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for RegionTargetHttpProxies.Insert. See the method description for details. -message InsertRegionTargetHttpProxyRequest { +// A request message for RegionNotificationEndpoints.Insert. See the method description for details. +message InsertRegionNotificationEndpointRequest { + // The body resource for this request + NotificationEndpoint notification_endpoint_resource = 338459940 [(google.api.field_behavior) = REQUIRED]; + // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, @@ -28243,13 +29103,10 @@ message InsertRegionTargetHttpProxyRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The body resource for this request - TargetHttpProxy target_http_proxy_resource = 24696744 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for RegionTargetHttpsProxies.Insert. See the method description for details. -message InsertRegionTargetHttpsProxyRequest { +// A request message for RegionSecurityPolicies.Insert. See the method description for details. +message InsertRegionSecurityPolicyRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, @@ -28278,19 +29135,22 @@ message InsertRegionTargetHttpsProxyRequest { optional string request_id = 37109963; // The body resource for this request - TargetHttpsProxy target_https_proxy_resource = 433657473 [(google.api.field_behavior) = REQUIRED]; + SecurityPolicy security_policy_resource = 216159612 [(google.api.field_behavior) = REQUIRED]; + + // If true, the request will not be committed. + optional bool validate_only = 242744629; } -// A request message for RegionTargetTcpProxies.Insert. See the method description for details. -message InsertRegionTargetTcpProxyRequest { +// A request message for RegionSnapshots.Insert. See the method description for details. +message InsertRegionSnapshotRequest { // 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. + // Name of the region for this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -28312,12 +29172,12 @@ message InsertRegionTargetTcpProxyRequest { optional string request_id = 37109963; // The body resource for this request - TargetTcpProxy target_tcp_proxy_resource = 145913931 [(google.api.field_behavior) = REQUIRED]; + Snapshot snapshot_resource = 481319977 [(google.api.field_behavior) = REQUIRED]; } -// A request message for RegionUrlMaps.Insert. See the method description for details. -message InsertRegionUrlMapRequest { +// A request message for RegionSslCertificates.Insert. See the method description for details. +message InsertRegionSslCertificateRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, @@ -28330,23 +29190,40 @@ message InsertRegionUrlMapRequest { (google.cloud.operation_request_field) = "region" ]; - // begin_interface: MixerMutationRequestBuilder - // Request ID to support idempotency. + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID 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 - UrlMap url_map_resource = 168675425 [(google.api.field_behavior) = REQUIRED]; + SslCertificate ssl_certificate_resource = 180709897 [(google.api.field_behavior) = REQUIRED]; } -// A request message for Reservations.Insert. See the method description for details. -message InsertReservationRequest { +// A request message for RegionSslPolicies.Insert. See the method description for details. +message InsertRegionSslPolicyRequest { // 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. @@ -28363,25 +29240,19 @@ message InsertReservationRequest { optional string request_id = 37109963; // The body resource for this request - Reservation reservation_resource = 285030177 [(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" - ]; + SslPolicy ssl_policy_resource = 274891848 [(google.api.field_behavior) = REQUIRED]; } -// A request message for ResourcePolicies.Insert. See the method description for details. -message InsertResourcePolicyRequest { +// A request message for RegionTargetHttpProxies.Insert. See the method description for details. +message InsertRegionTargetHttpProxyRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "project" ]; - // Name of the region for this request. + // Name of the region scoping this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -28403,18 +29274,24 @@ message InsertResourcePolicyRequest { optional string request_id = 37109963; // The body resource for this request - ResourcePolicy resource_policy_resource = 76826186 [(google.api.field_behavior) = REQUIRED]; + TargetHttpProxy target_http_proxy_resource = 24696744 [(google.api.field_behavior) = REQUIRED]; } -// A request message for Routes.Insert. See the method description for details. -message InsertRouteRequest { +// A request message for RegionTargetHttpsProxies.Insert. See the method description for details. +message InsertRegionTargetHttpsProxyRequest { // 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. @@ -28431,19 +29308,19 @@ message InsertRouteRequest { optional string request_id = 37109963; // The body resource for this request - Route route_resource = 225428804 [(google.api.field_behavior) = REQUIRED]; + TargetHttpsProxy target_https_proxy_resource = 433657473 [(google.api.field_behavior) = REQUIRED]; } -// A request message for Routers.Insert. See the method description for details. -message InsertRouterRequest { +// A request message for RegionTargetTcpProxies.Insert. See the method description for details. +message InsertRegionTargetTcpProxyRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "project" ]; - // Name of the region for this request. + // Name of the region scoping this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -28465,12 +29342,35 @@ message InsertRouterRequest { optional string request_id = 37109963; // The body resource for this request - Router router_resource = 155222084 [(google.api.field_behavior) = REQUIRED]; + TargetTcpProxy target_tcp_proxy_resource = 145913931 [(google.api.field_behavior) = REQUIRED]; } -// A request message for SecurityPolicies.Insert. See the method description for details. -message InsertSecurityPolicyRequest { +// A request message for RegionUrlMaps.Insert. See the method description for details. +message InsertRegionUrlMapRequest { + // 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" + ]; + + // begin_interface: MixerMutationRequestBuilder + // Request ID to support idempotency. + optional string request_id = 37109963; + + // The body resource for this request + UrlMap url_map_resource = 168675425 [(google.api.field_behavior) = REQUIRED]; + +} + +// A request message for Reservations.Insert. See the method description for details. +message InsertReservationRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, @@ -28493,22 +29393,25 @@ message InsertSecurityPolicyRequest { optional string request_id = 37109963; // The body resource for this request - SecurityPolicy security_policy_resource = 216159612 [(google.api.field_behavior) = REQUIRED]; + Reservation reservation_resource = 285030177 [(google.api.field_behavior) = REQUIRED]; - // If true, the request will not be committed. - optional bool validate_only = 242744629; + // Name of the zone for this request. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; } -// A request message for ServiceAttachments.Insert. See the method description for details. -message InsertServiceAttachmentRequest { +// A request message for ResourcePolicies.Insert. See the method description for details. +message InsertResourcePolicyRequest { // 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. + // Name of the region for this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -28530,12 +29433,139 @@ message InsertServiceAttachmentRequest { optional string request_id = 37109963; // The body resource for this request - ServiceAttachment service_attachment_resource = 472980256 [(google.api.field_behavior) = REQUIRED]; + ResourcePolicy resource_policy_resource = 76826186 [(google.api.field_behavior) = REQUIRED]; } -// A request message for Snapshots.Insert. See the method description for details. -message InsertSnapshotRequest { +// A request message for Routes.Insert. See the method description for details. +message InsertRouteRequest { + // 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 + Route route_resource = 225428804 [(google.api.field_behavior) = REQUIRED]; + +} + +// A request message for Routers.Insert. See the method description for details. +message InsertRouterRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region for 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; + + // The body resource for this request + Router router_resource = 155222084 [(google.api.field_behavior) = REQUIRED]; + +} + +// A request message for SecurityPolicies.Insert. See the method description for details. +message InsertSecurityPolicyRequest { + // 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 + SecurityPolicy security_policy_resource = 216159612 [(google.api.field_behavior) = REQUIRED]; + + // If true, the request will not be committed. + optional bool validate_only = 242744629; + +} + +// A request message for ServiceAttachments.Insert. See the method description for details. +message InsertServiceAttachmentRequest { + // 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; + + // The body resource for this request + ServiceAttachment service_attachment_resource = 472980256 [(google.api.field_behavior) = REQUIRED]; + +} + +// A request message for Snapshots.Insert. See the method description for details. +message InsertSnapshotRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, @@ -29058,6 +30088,40 @@ message InsertWireGroupRequest { } +// 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. @@ -29668,11 +30732,11 @@ message InstanceGroupManager { // [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. [Output Only] The creation timestamp for this managed instance group inRFC3339 + // Output only. The creation timestamp for this managed instance group inRFC3339 // text format. optional string creation_timestamp = 30525366; - // Output only. [Output Only] The list of instance actions and the number of instances + // 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; @@ -29693,7 +30757,7 @@ message InstanceGroupManager { // retrieve an InstanceGroupManager. optional string fingerprint = 234678500; - // Output only. [Output Only] A unique identifier for this resource type. The server + // Output only. A unique identifier for this resource type. The server // generates this identifier. optional uint64 id = 3355; @@ -29703,7 +30767,7 @@ message InstanceGroupManager { // template configuration. optional InstanceGroupManagerInstanceFlexibilityPolicy instance_flexibility_policy = 26937090; - // Output only. [Output Only] The URL of the Instance Group resource. + // Output only. The URL of the Instance Group resource. optional string instance_group = 81095253; // The repair policy for this managed instance group. @@ -29715,7 +30779,7 @@ message InstanceGroupManager { // group do not change unless you run recreateInstances, runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE. optional string instance_template = 309248228; - // Output only. [Output Only] The resource type, which is alwayscompute#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 @@ -29738,13 +30802,13 @@ message InstanceGroupManager { // Resource policies for this managed instance group. optional InstanceGroupManagerResourcePolicies resource_policies = 22220385; - // Output only. [Output Only] Reserved for future use. + // Output only. Reserved for future use. optional bool satisfies_pzi = 480964257; - // Output only. [Output Only] Reserved for future use. + // Output only. Reserved for future use. optional bool satisfies_pzs = 480964267; - // Output only. [Output Only] The URL for this managed instance group. The server defines + // Output only. The URL for this managed instance group. The server defines // this URL. optional string self_link = 456214797; @@ -29754,7 +30818,7 @@ message InstanceGroupManager { // Stateful configuration for this Instanced Group Manager optional StatefulPolicy stateful_policy = 47538565; - // Output only. [Output Only] The status of this managed instance group. + // Output only. The status of this managed instance group. optional InstanceGroupManagerStatus status = 181260274; // The URLs for all TargetPool resources to which instances in theinstanceGroup field are added. The target pools automatically @@ -29805,7 +30869,7 @@ message InstanceGroupManager { // updates. repeated InstanceGroupManagerVersion versions = 162430619; - // Output only. [Output Only] The URL of azone + // Output only. The URL of azone // where the managed instance group is located (for zonal resources). optional string zone = 3744684; @@ -29813,12 +30877,12 @@ message InstanceGroupManager { // message InstanceGroupManagerActionsSummary { - // Output only. [Output Only] The total number of instances in the managed instance group + // 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. [Output Only] The number of instances in the managed instance group that + // 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. @@ -29827,54 +30891,54 @@ message InstanceGroupManagerActionsSummary { // instead, the creatingWithoutRetries field will be populated. optional int32 creating = 209809081; - // Output only. [Output Only] The number of instances that the managed instance group + // 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. [Output Only] The number of instances in the managed instance group that + // 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. [Output Only] The number of instances in the managed instance group that + // 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. [Output Only] The number of instances in the managed instance group that + // 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. [Output Only] The number of instances in the managed instance group that + // 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. [Output Only] The number of instances in the managed instance group that + // 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. [Output Only] The number of instances in the managed instance group that + // 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. [Output Only] The number of instances in the managed instance group that + // 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. [Output Only] The number of instances in the managed instance group that + // 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. [Output Only] The number of instances in the managed instance group that + // 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. [Output Only] The number of instances in the managed instance group that + // 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; @@ -30108,7 +31172,7 @@ message InstanceGroupManagerList { // and the VMs created by this request are added to the owning // InstanceGroupManager. message InstanceGroupManagerResizeRequest { - // Output only. [Output only] Current state of the request. + // Output only. Current state of the request. enum State { // A value indicating that the enum field is not set. UNDEFINED_STATE = 0; @@ -30136,25 +31200,29 @@ message InstanceGroupManagerResizeRequest { } - // Output only. [Output Only] The creation timestamp for this resize request inRFC3339 + // 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. [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. [Output Only] The resource type, which is alwayscompute#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 withRFC1035. optional string name = 3373707; + // Output only. The URL of a region + // 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. optional Duration requested_run_duration = 232146425; @@ -30164,21 +31232,20 @@ message InstanceGroupManagerResizeRequest { // together with 'instances'. optional int32 resize_by = 533735362; - // Output only. [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. [Output Only] Server-defined URL for this resource with the resource id. + // Output only. Server-defined URL for this resource with the resource id. optional string self_link_with_id = 44520962; - // Output only. [Output only] Current state of the request. + // Output only. Current state of the request. // Check the State enum for the list of possible values. optional string state = 109757585; - // Output only. [Output only] Status of the request. + // Output only. Status of the request. optional InstanceGroupManagerResizeRequestStatus status = 181260274; - // Output only. [Output Only] The URL of azone + // Output only. The URL of a zone // where the resize request is located. Populated only for zonal resize // requests. optional string zone = 3744684; @@ -30187,21 +31254,20 @@ message InstanceGroupManagerResizeRequest { // message InstanceGroupManagerResizeRequestStatus { - // Output only. [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. [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 stored in the + // "error" field only. optional InstanceGroupManagerResizeRequestStatusLastAttempt last_attempt = 434771492; } @@ -30289,21 +31355,26 @@ message InstanceGroupManagerStandbyPolicy { // message InstanceGroupManagerStatus { - // Output only. [Output only] Status of all-instances configuration on the group. + // Output only. Status of all-instances configuration on the group. optional InstanceGroupManagerStatusAllInstancesConfig all_instances_config = 112596737; - // Output only. [Output Only] The accelerator topology applied to this MIG. + // Output only. The accelerator topology applied to this MIG. // Currently only one accelerator topology is supported. repeated InstanceGroupManagerStatusAcceleratorTopology applied_accelerator_topologies = 481392547; - // Output only. [Output Only] The URL of theAutoscaler + // Output only. The URL of theAutoscaler // that targets this instance group manager. optional string autoscaler = 517258967; - // Output only. [Output Only] The status of bulk instance operation. + // Output only. The status of bulk instance operation. optional InstanceGroupManagerStatusBulkInstanceOperation bulk_instance_operation = 501667466; - // Output only. [Output Only] A bit indicating whether the managed instance group is in a + // Output only. The list of instance statuses and the number of instances + // in this managed instance group that have the status. Currently only shown + // for TPU MIGs + optional InstanceGroupManagerStatusInstanceStatusSummary current_instance_statuses = 269432644; + + // 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 @@ -30311,10 +31382,10 @@ message InstanceGroupManagerStatus { // group itself is not being modified. optional bool is_stable = 108410864; - // Output only. [Output Only] Stateful status of the given Instance Group Manager. + // Output only. Stateful status of the given Instance Group Manager. optional InstanceGroupManagerStatusStateful stateful = 244462412; - // Output only. [Output Only] A status of consistency of Instances' versions with their + // 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; @@ -30323,7 +31394,7 @@ message InstanceGroupManagerStatus { // message InstanceGroupManagerStatusAcceleratorTopology { - // Output only. [Output Only] The state of the accelerator topology. + // Output only. The state of the accelerator topology. enum State { // A value indicating that the enum field is not set. UNDEFINED_STATE = 0; @@ -30349,15 +31420,15 @@ message InstanceGroupManagerStatusAcceleratorTopology { } - // Output only. [Output Only] Topology in the format of: "16x16", "4x4x4", etc. + // 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. [Output Only] The state of the accelerator topology. + // Output only. The state of the accelerator topology. // Check the State enum for the list of possible values. optional string state = 109757585; - // Output only. [Output Only] The result of the latest accelerator topology state + // Output only. The result of the latest accelerator topology state // check. optional InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails state_details = 95566996; @@ -30365,10 +31436,10 @@ message InstanceGroupManagerStatusAcceleratorTopology { // message InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails { - // Output only. [Output Only] Encountered errors. + // Output only. Encountered errors. optional Error error = 96784904; - // Output only. [Output Only] Timestamp is shown only if there is an error. The field + // Output only. Timestamp is shown only if there is an error. The field // has // RFC3339 // // text format. optional string timestamp = 55126294; @@ -30377,11 +31448,11 @@ message InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDet // message InstanceGroupManagerStatusAllInstancesConfig { - // Output only. [Output Only] Current all-instances configuration revision. + // Output only. Current all-instances configuration revision. // This value is in RFC3339 text format. optional string current_revision = 38355937; - // Output only. [Output Only] A bit indicating whether this configuration has + // Output only. A bit indicating whether this configuration has // been applied to all managed instances in the group. optional bool effective = 141961639; @@ -30390,10 +31461,10 @@ message InstanceGroupManagerStatusAllInstancesConfig { // Bulk instance operation is the creation of VMs in a MIG when the // targetSizePolicy.mode is set to BULK. message InstanceGroupManagerStatusBulkInstanceOperation { - // Output only. [Output Only] Informs whether bulk instance operation is in progress. + // Output only. Informs whether bulk instance operation is in progress. optional bool in_progress = 320200711; - // Output only. [Output Only] Information from the last progress check of bulk instance + // Output only. Information from the last progress check of bulk instance // operation. optional InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck last_progress_check = 208638271; @@ -30401,18 +31472,83 @@ message InstanceGroupManagerStatusBulkInstanceOperation { // message InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck { - // Output only. [Output Only] Errors encountered during bulk instance operation. + // Output only. Errors encountered during bulk instance operation. optional Error error = 96784904; - // Output only. [Output Only] Timestamp of the last progress check of bulk instance + // Output only. Timestamp of the last progress check of bulk instance // operation. Timestamp is in RFC3339 text format. optional string timestamp = 55126294; } +// The list of instance statuses and the number of instances in this managed +// instance group that have the status. For more information about how to +// interpret each status check the instance lifecycle documentation. +// Currently only shown for TPU MIGs. +message InstanceGroupManagerStatusInstanceStatusSummary { + // Output only. The number of instances in the managed instance group + // that have DEPROVISIONING status. + optional int32 deprovisioning = 462169582; + + // Output only. The number of instances that have not been created yet or + // have been deleted. Includes only instances that would be shown in the + // listManagedInstances method and not all instances that have been + // deleted in the lifetime of the MIG. + // Does not include FlexStart instances that are waiting for the resources + // availability, they are considered as 'pending'. + optional int32 non_existent = 468485062; + + // Output only. The number of instances in the managed instance group + // that have PENDING status, that is FlexStart instances that are waiting + // for resources. Instances that do not exist because of the other reasons + // are counted as 'non_existent'. + optional int32 pending = 391154071; + + // Output only. The number of instances in the managed instance group + // that have PENDING_STOP status. + optional int32 pending_stop = 163159466; + + // Output only. The number of instances in the managed instance group + // that have PROVISIONING status. + optional int32 provisioning = 121098989; + + // Output only. The number of instances in the managed instance group + // that have REPAIRING status. + optional int32 repairing = 311243061; + + // Output only. The number of instances in the managed instance group + // that have RUNNING status. + optional int32 running = 477042111; + + // Output only. The number of instances in the managed instance group + // that have STAGING status. + optional int32 staging = 249960507; + + // Output only. The number of instances in the managed instance group + // that have STOPPED status. + optional int32 stopped = 263164365; + + // Output only. The number of instances in the managed instance group + // that have STOPPING status. + optional int32 stopping = 105035892; + + // Output only. The number of instances in the managed instance group + // that have SUSPENDED status. + optional int32 suspended = 485854683; + + // Output only. The number of instances in the managed instance group + // that have SUSPENDING status. + optional int32 suspending = 29113894; + + // Output only. The number of instances in the managed instance group + // that have TERMINATED status. + optional int32 terminated = 301796899; + +} + // message InstanceGroupManagerStatusStateful { - // Output only. [Output Only] A bit indicating whether the managed instance group + // 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 @@ -30420,7 +31556,7 @@ message InstanceGroupManagerStatusStateful { // if you have deleted all PICs but not yet applied those deletions. optional bool has_stateful_config = 110474224; - // Output only. [Output Only] Status of per-instance configurations on the instances. + // Output only. Status of per-instance configurations on the instances. optional InstanceGroupManagerStatusStatefulPerInstanceConfigs per_instance_configs = 526265001; } @@ -30436,7 +31572,7 @@ message InstanceGroupManagerStatusStatefulPerInstanceConfigs { // message InstanceGroupManagerStatusVersionTarget { - // Output only. [Output Only] A bit indicating whether version target has been reached + // 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; @@ -32052,6 +33188,17 @@ message InstantSnapshot { // was taken from the current or a previous instance of a given disk name. optional string source_disk_id = 454190809; + // Output only. [Output Only] URL of the source instant snapshot this instant snapshot is + // part of. Note that the source instant snapshot group must be in the same + // zone/region as the instant snapshot to be created. This can be a full or + // valid partial URL. + optional string source_instant_snapshot_group = 525991686; + + // Output only. [Output Only] The ID value of the source instant snapshot group this + // InstantSnapshot is part of. This value may be used to determine whether the + // InstantSnapshot was created as part of an InstantSnapshotGroup creation. + optional string source_instant_snapshot_group_id = 167103732; + // Output only. [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; @@ -32093,6 +33240,113 @@ message InstantSnapshotAggregatedList { } +// Represents an InstantSnapshotGroup resource. +// +// An instant snapshot group is a set of instant snapshots that represents a +// point in time state of a consistency group. +message InstantSnapshotGroup { + // Output only. [Output Only] + enum Status { + // A value indicating that the enum field is not set. + UNDEFINED_STATUS = 0; + + CREATING = 455564985; + + DELETING = 528602024; + + FAILED = 455706685; + + INVALID = 530283991; + + READY = 77848963; + + UNKNOWN = 433141802; + + } + + // Output only. [Output Only] Creation timestamp inRFC3339 + // text format. + optional string creation_timestamp = 30525366; + + // Optional. An optional description of this resource. Provide this property when you + // create the resource. + optional string description = 422937596; + + // Output only. [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. + optional uint64 id = 3355; + + // Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for InstantSnapshotGroup + // resources. + optional string kind = 3292052; + + // Identifier. 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. [Output Only] URL of the region where the instant snapshot group 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; + + optional InstantSnapshotGroupResourceStatus resource_status = 249429315; + + // Output only. [Output Only] Server-defined URL for the resource. + optional string self_link = 456214797; + + // Output only. [Output Only] Server-defined URL for this resource's resource id. + optional string self_link_with_id = 44520962; + + optional string source_consistency_group = 531359348; + + // Output only. [Output Only] + // Check the Status enum for the list of possible values. + optional string status = 181260274; + + // Output only. [Output Only] URL of the zone where the instant snapshot group 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 InstantSnapshotGroupParameters { + // The source instant snapshot group used to create disks. 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/instantSnapshotGroups/instantSnapshotGroup + // - projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup + // - zones/zone/instantSnapshotGroups/instantSnapshotGroup + optional string source_instant_snapshot_group = 525991686; + +} + +// +message InstantSnapshotGroupResourceStatus { + // Output only. [Output Only] + optional string consistency_membership_resolution_time = 346675870; + + // Output only. [Output Only] + optional InstantSnapshotGroupSourceInfo source_info = 451907154; + +} + +// +message InstantSnapshotGroupSourceInfo { + optional string consistency_group = 508183960; + + optional string consistency_group_id = 85599522; + +} + // Contains a list of InstantSnapshot resources. message InstantSnapshotList { // [Output Only] Unique identifier for the resource; defined by the server. @@ -39297,8 +40551,40 @@ message ListInstancesRequest { } -// A request message for InstantSnapshots.List. See the method description for details. -message ListInstantSnapshotsRequest { +// Contains a list of InstantSnapshotGroup resources. +message ListInstantSnapshotGroups { + optional string etag = 3123477; + + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of InstantSnapshotGroup resources. + repeated InstantSnapshotGroup items = 100526016; + + // Output only. 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. [Output Only] Server-defined URL for this resource. + optional string self_link = 456214797; + + // Output only. [Output Only] Unreachable resources. + // end_interface: MixerListResponseWithEtagBuilder + repeated string unreachables = 243372063; + + // [Output Only] Informational warning message. + optional Warning warning = 50704284; + +} + +// A request message for InstantSnapshotGroups.List. See the method description for details. +message ListInstantSnapshotGroupsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -39400,8 +40686,8 @@ message ListInstantSnapshotsRequest { } -// A request message for InterconnectAttachmentGroups.List. See the method description for details. -message ListInterconnectAttachmentGroupsRequest { +// 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 @@ -39498,10 +40784,13 @@ message ListInterconnectAttachmentGroupsRequest { // with an error code. optional bool return_partial_success = 517198390; + // The name of the zone for this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for InterconnectAttachments.List. See the method description for details. -message ListInterconnectAttachmentsRequest { +// 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 @@ -39590,9 +40879,6 @@ message ListInterconnectAttachmentsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // 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. // @@ -39603,8 +40889,8 @@ message ListInterconnectAttachmentsRequest { } -// A request message for InterconnectGroups.List. See the method description for details. -message ListInterconnectGroupsRequest { +// 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 @@ -39693,6 +40979,9 @@ message ListInterconnectGroupsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + // 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. // @@ -39703,8 +40992,8 @@ message ListInterconnectGroupsRequest { } -// A request message for InterconnectLocations.List. See the method description for details. -message ListInterconnectLocationsRequest { +// 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 @@ -39803,8 +41092,8 @@ message ListInterconnectLocationsRequest { } -// A request message for InterconnectRemoteLocations.List. See the method description for details. -message ListInterconnectRemoteLocationsRequest { +// 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 @@ -39903,8 +41192,8 @@ message ListInterconnectRemoteLocationsRequest { } -// A request message for Interconnects.List. See the method description for details. -message ListInterconnectsRequest { +// 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 @@ -40003,8 +41292,8 @@ message ListInterconnectsRequest { } -// A request message for Licenses.List. See the method description for details. -message ListLicensesRequest { +// 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 @@ -40103,8 +41392,8 @@ message ListLicensesRequest { } -// A request message for MachineImages.List. See the method description for details. -message ListMachineImagesRequest { +// 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 @@ -40203,8 +41492,8 @@ message ListMachineImagesRequest { } -// A request message for MachineTypes.List. See the method description for details. -message ListMachineTypesRequest { +// 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 @@ -40301,13 +41590,10 @@ message ListMachineTypesRequest { // with an error code. optional bool return_partial_success = 517198390; - // The name of the zone for this request. - string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for InstanceGroupManagers.ListManagedInstances. See the method description for details. -message ListManagedInstancesInstanceGroupManagersRequest { +// 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 @@ -40368,9 +41654,6 @@ message ListManagedInstancesInstanceGroupManagersRequest { // 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 @@ -40407,14 +41690,13 @@ message ListManagedInstancesInstanceGroupManagersRequest { // with an error code. optional bool return_partial_success = 517198390; - // The name of thezone where the managed - // instance group is located. + // The name of the zone for this request. string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; } -// A request message for RegionInstanceGroupManagers.ListManagedInstances. See the method description for details. -message ListManagedInstancesRegionInstanceGroupManagersRequest { +// 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 @@ -40506,9 +41788,6 @@ message ListManagedInstancesRegionInstanceGroupManagersRequest { // 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. // @@ -40517,10 +41796,14 @@ message ListManagedInstancesRegionInstanceGroupManagersRequest { // with an error code. optional bool return_partial_success = 517198390; + // The name of thezone where the managed + // instance group is located. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for NetworkAttachments.List. See the method description for details. -message ListNetworkAttachmentsRequest { +// 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 @@ -40581,6 +41864,9 @@ message ListNetworkAttachmentsRequest { // 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 @@ -40609,7 +41895,7 @@ message ListNetworkAttachmentsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region of this request. + // 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 @@ -40622,8 +41908,8 @@ message ListNetworkAttachmentsRequest { } -// A request message for NetworkEndpointGroups.List. See the method description for details. -message ListNetworkEndpointGroupsRequest { +// 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 @@ -40712,6 +41998,9 @@ message ListNetworkEndpointGroupsRequest { // 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. // @@ -40720,14 +42009,10 @@ message ListNetworkEndpointGroupsRequest { // with an error code. optional bool return_partial_success = 517198390; - // 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 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 @@ -40795,10 +42080,6 @@ message ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest { // `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. - 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. // @@ -40828,10 +42109,14 @@ message ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest { // with an error code. optional bool return_partial_success = 517198390; + // 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 NetworkEndpointGroups.ListNetworkEndpoints. See the method description for details. -message ListNetworkEndpointsNetworkEndpointGroupsRequest { +// 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 @@ -40903,9 +42188,6 @@ message ListNetworkEndpointsNetworkEndpointGroupsRequest { // 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. // @@ -40935,14 +42217,10 @@ message ListNetworkEndpointsNetworkEndpointGroupsRequest { // 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. - string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for RegionNetworkEndpointGroups.ListNetworkEndpoints. See the method description for details. -message ListNetworkEndpointsRegionNetworkEndpointGroupsRequest { +// 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 @@ -41014,109 +42292,8 @@ message ListNetworkEndpointsRegionNetworkEndpointGroupsRequest { // 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. - 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]; - - // 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. - 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 onresource labels. - // - // To filter on multiple expressions, provide each separate expression within - // parentheses. For example: - // ``` - // (scheduling.automaticRestart = true) - // (cpuPlatform = "Intel Skylake") - // ``` - // By default, each expression is an `AND` expression. However, you - // can include `AND` and `OR` expressions explicitly. - // For example: - // ``` - // (cpuPlatform = "Intel Skylake") OR - // (cpuPlatform = "Intel Broadwell") AND - // (scheduling.automaticRestart = true) - // ``` - // - // If you want to use a regular expression, use the `eq` (equal) or `ne` - // (not equal) operator against a single un-parenthesized expression with or - // without quotes or against multiple parenthesized expressions. Examples: - // - // `fieldname eq unquoted literal` - // `fieldname eq 'single quoted literal'` - // `fieldname eq "double quoted literal"` - // `(fieldname1 eq literal) (fieldname2 ne "literal")` - // - // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - // The literal value must match the entire field. - // - // For example, to filter for 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; + // 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. @@ -41147,10 +42324,222 @@ message ListNetworkFirewallPoliciesRequest { // 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. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for NetworkProfiles.List. See the method description for details. -message ListNetworkProfilesRequest { +// 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 onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for 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; + + // 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. + 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]; + + // 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. + 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 onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for 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 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 @@ -43021,8 +44410,8 @@ message ListRegionAutoscalersRequest { } -// A request message for RegionBackendServices.List. See the method description for details. -message ListRegionBackendServicesRequest { +// 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 @@ -43111,7 +44500,7 @@ message ListRegionBackendServicesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. + // 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 @@ -43124,8 +44513,8 @@ message ListRegionBackendServicesRequest { } -// A request message for RegionCommitments.List. See the method description for details. -message ListRegionCommitmentsRequest { +// 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 @@ -43214,7 +44603,7 @@ message ListRegionCommitmentsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region for this request. + // 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 @@ -43227,8 +44616,8 @@ message ListRegionCommitmentsRequest { } -// A request message for RegionCompositeHealthChecks.List. See the method description for details. -message ListRegionCompositeHealthChecksRequest { +// 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 @@ -43317,7 +44706,7 @@ message ListRegionCompositeHealthChecksRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. + // 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 @@ -43330,8 +44719,8 @@ message ListRegionCompositeHealthChecksRequest { } -// A request message for RegionDiskTypes.List. See the method description for details. -message ListRegionDiskTypesRequest { +// 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 @@ -43420,7 +44809,7 @@ message ListRegionDiskTypesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // The name of the region for this request. + // 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 @@ -43433,8 +44822,8 @@ message ListRegionDiskTypesRequest { } -// A request message for RegionDisks.List. See the method description for details. -message ListRegionDisksRequest { +// 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 @@ -43523,7 +44912,7 @@ message ListRegionDisksRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region for this request. + // 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 @@ -43536,8 +44925,8 @@ message ListRegionDisksRequest { } -// A request message for RegionHealthAggregationPolicies.List. See the method description for details. -message ListRegionHealthAggregationPoliciesRequest { +// 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 @@ -43626,7 +45015,7 @@ message ListRegionHealthAggregationPoliciesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. + // 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 @@ -43639,8 +45028,8 @@ message ListRegionHealthAggregationPoliciesRequest { } -// A request message for RegionHealthCheckServices.List. See the method description for details. -message ListRegionHealthCheckServicesRequest { +// 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 @@ -43742,8 +45131,8 @@ message ListRegionHealthCheckServicesRequest { } -// A request message for RegionHealthChecks.List. See the method description for details. -message ListRegionHealthChecksRequest { +// 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 @@ -43845,8 +45234,8 @@ message ListRegionHealthChecksRequest { } -// A request message for RegionHealthSources.List. See the method description for details. -message ListRegionHealthSourcesRequest { +// 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 @@ -43948,8 +45337,8 @@ message ListRegionHealthSourcesRequest { } -// A request message for RegionInstanceGroupManagers.List. See the method description for details. -message ListRegionInstanceGroupManagersRequest { +// 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 @@ -44051,8 +45440,8 @@ message ListRegionInstanceGroupManagersRequest { } -// A request message for RegionInstanceGroups.List. See the method description for details. -message ListRegionInstanceGroupsRequest { +// 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 @@ -44113,211 +45502,8 @@ message ListRegionInstanceGroupsRequest { // 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 RegionInstanceTemplates.List. See the method description for details. -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 onresource labels. - // - // To filter on multiple expressions, provide each separate expression within - // parentheses. For example: - // ``` - // (scheduling.automaticRestart = true) - // (cpuPlatform = "Intel Skylake") - // ``` - // By default, each expression is an `AND` expression. However, you - // can include `AND` and `OR` expressions explicitly. - // For example: - // ``` - // (cpuPlatform = "Intel Skylake") OR - // (cpuPlatform = "Intel Broadwell") AND - // (scheduling.automaticRestart = true) - // ``` - // - // If you want to use a regular expression, use the `eq` (equal) or `ne` - // (not equal) operator against a single un-parenthesized expression with or - // without quotes or against multiple parenthesized expressions. Examples: - // - // `fieldname eq unquoted literal` - // `fieldname eq 'single quoted literal'` - // `fieldname eq "double quoted literal"` - // `(fieldname1 eq literal) (fieldname2 ne "literal")` - // - // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - // The literal value must match the entire field. - // - // For example, to filter for 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]; - - // 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. - optional bool return_partial_success = 517198390; - -} - -// 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 onresource labels. - // - // To filter on multiple expressions, provide each separate expression within - // parentheses. For example: - // ``` - // (scheduling.automaticRestart = true) - // (cpuPlatform = "Intel Skylake") - // ``` - // By default, each expression is an `AND` expression. However, you - // can include `AND` and `OR` expressions explicitly. - // For example: - // ``` - // (cpuPlatform = "Intel Skylake") OR - // (cpuPlatform = "Intel Broadwell") AND - // (scheduling.automaticRestart = true) - // ``` - // - // If you want to use a regular expression, use the `eq` (equal) or `ne` - // (not equal) operator against a single un-parenthesized expression with or - // without quotes or against multiple parenthesized expressions. Examples: - // - // `fieldname eq unquoted literal` - // `fieldname eq 'single quoted literal'` - // `fieldname eq "double quoted literal"` - // `(fieldname1 eq literal) (fieldname2 ne "literal")` - // - // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - // The literal value must match the entire field. - // - // For example, to filter for 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`, @@ -44347,7 +45533,8 @@ message ListRegionInstantSnapshotsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // The name of the region for this request. + // 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 @@ -44360,8 +45547,8 @@ message ListRegionInstantSnapshotsRequest { } -// A request message for RegionNetworkEndpointGroups.List. See the method description for details. -message ListRegionNetworkEndpointGroupsRequest { +// 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 @@ -44450,8 +45637,7 @@ message ListRegionNetworkEndpointGroupsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // The name of theregion - // where the network endpoint group is located. It should comply with RFC1035. + // 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 @@ -44464,8 +45650,8 @@ message ListRegionNetworkEndpointGroupsRequest { } -// A request message for RegionNetworkFirewallPolicies.List. See the method description for details. -message ListRegionNetworkFirewallPoliciesRequest { +// 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 @@ -44567,8 +45753,8 @@ message ListRegionNetworkFirewallPoliciesRequest { } -// A request message for RegionNotificationEndpoints.List. See the method description for details. -message ListRegionNotificationEndpointsRequest { +// A request message for RegionInstanceTemplates.List. See the method description for details. +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 @@ -44657,7 +45843,7 @@ message ListRegionNotificationEndpointsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. + // 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 @@ -44670,8 +45856,8 @@ message ListRegionNotificationEndpointsRequest { } -// A request message for RegionOperations.List. See the method description for details. -message ListRegionOperationsRequest { +// A request message for RegionInstantSnapshotGroups.List. See the method description for details. +message ListRegionInstantSnapshotGroupsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -44760,7 +45946,7 @@ message ListRegionOperationsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region for this request. + // 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 @@ -44773,8 +45959,8 @@ message ListRegionOperationsRequest { } -// A request message for RegionSecurityPolicies.List. See the method description for details. -message ListRegionSecurityPoliciesRequest { +// 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 @@ -44863,7 +46049,7 @@ message ListRegionSecurityPoliciesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. + // 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 @@ -44876,8 +46062,8 @@ message ListRegionSecurityPoliciesRequest { } -// A request message for RegionSslCertificates.List. See the method description for details. -message ListRegionSslCertificatesRequest { +// 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 @@ -44966,7 +46152,8 @@ message ListRegionSslCertificatesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. + // 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 @@ -44979,8 +46166,8 @@ message ListRegionSslCertificatesRequest { } -// A request message for RegionSslPolicies.List. See the method description for details. -message ListRegionSslPoliciesRequest { +// 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 @@ -45082,8 +46269,8 @@ message ListRegionSslPoliciesRequest { } -// A request message for RegionTargetHttpProxies.List. See the method description for details. -message ListRegionTargetHttpProxiesRequest { +// 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 @@ -45185,8 +46372,8 @@ message ListRegionTargetHttpProxiesRequest { } -// A request message for RegionTargetHttpsProxies.List. See the method description for details. -message ListRegionTargetHttpsProxiesRequest { +// 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 @@ -45275,7 +46462,7 @@ message ListRegionTargetHttpsProxiesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. + // 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 @@ -45288,8 +46475,8 @@ message ListRegionTargetHttpsProxiesRequest { } -// A request message for RegionTargetTcpProxies.List. See the method description for details. -message ListRegionTargetTcpProxiesRequest { +// 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 @@ -45391,8 +46578,8 @@ message ListRegionTargetTcpProxiesRequest { } -// A request message for RegionUrlMaps.List. See the method description for details. -message ListRegionUrlMapsRequest { +// 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 @@ -45481,7 +46668,7 @@ message ListRegionUrlMapsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. + // 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 @@ -45494,8 +46681,8 @@ message ListRegionUrlMapsRequest { } -// A request message for RegionZones.List. See the method description for details. -message ListRegionZonesRequest { +// 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 @@ -45584,7 +46771,7 @@ message ListRegionZonesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Region for this request. + // 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 @@ -45597,8 +46784,8 @@ message ListRegionZonesRequest { } -// A request message for Regions.List. See the method description for details. -message ListRegionsRequest { +// 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 @@ -45687,6 +46874,9 @@ message ListRegionsRequest { // 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. // @@ -45697,8 +46887,8 @@ message ListRegionsRequest { } -// A request message for ReservationBlocks.List. See the method description for details. -message ListReservationBlocksRequest { +// 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 @@ -45787,9 +46977,8 @@ message ListReservationBlocksRequest { // 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. - string reservation = 47530956 [(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. @@ -45799,13 +46988,10 @@ message ListReservationBlocksRequest { // with an error code. optional bool return_partial_success = 517198390; - // Name of the zone for this request. Zone name should conform to RFC1035. - string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for ReservationSlots.List. See the method description for details. -message ListReservationSlotsRequest { +// 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 @@ -45891,13 +47077,12 @@ message ListReservationSlotsRequest { // the next page of results. optional string page_token = 19994697; - // The name of the parent reservation and parent block, formatted as - // reservations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} - string parent_name = 478151936 [(google.api.field_behavior) = REQUIRED]; - - // The project ID for this request. + // 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. // @@ -45906,13 +47091,10 @@ message ListReservationSlotsRequest { // with an error code. optional bool return_partial_success = 517198390; - // The name of the zone for this request, formatted as RFC1035. - string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for ReservationSubBlocks.List. See the method description for details. -message ListReservationSubBlocksRequest { +// 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 @@ -45998,13 +47180,12 @@ message ListReservationSubBlocksRequest { // 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} - string parent_name = 478151936 [(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]; + // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -46013,13 +47194,10 @@ message ListReservationSubBlocksRequest { // with an error code. optional bool return_partial_success = 517198390; - // Name of the zone for this request. Zone name should conform to RFC1035. - string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for Reservations.List. See the method description for details. -message ListReservationsRequest { +// 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 @@ -46108,6 +47286,9 @@ message ListReservationsRequest { // 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. // @@ -46116,13 +47297,10 @@ message ListReservationsRequest { // 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 ResourcePolicies.List. See the method description for details. -message ListResourcePoliciesRequest { +// 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 @@ -46211,7 +47389,7 @@ message ListResourcePoliciesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region for this request. + // Region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -46224,8 +47402,8 @@ message ListResourcePoliciesRequest { } -// A request message for Routers.ListRoutePolicies. See the method description for details. -message ListRoutePoliciesRoutersRequest { +// 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 @@ -46314,9 +47492,6 @@ message ListRoutePoliciesRoutersRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // 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. // @@ -46325,14 +47500,10 @@ message ListRoutePoliciesRoutersRequest { // with an error code. optional bool return_partial_success = 517198390; - // 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 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 @@ -46421,8 +47592,9 @@ message ListRoutersRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region for this request. - string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + // 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. @@ -46432,10 +47604,13 @@ message ListRoutersRequest { // with an error code. optional bool return_partial_success = 517198390; + // Name of the zone for this request. Zone name should conform to RFC1035. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for Routes.List. See the method description for details. -message ListRoutesRequest { +// A request message for ReservationSlots.List. See the method description for details. +message ListReservationSlotsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -46521,6 +47696,117 @@ message ListRoutesRequest { // the next page of results. optional string page_token = 19994697; + // The name of the parent reservation and parent block, formatted as + // reservations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + string parent_name = 478151936 [(google.api.field_behavior) = REQUIRED]; + + // The 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; + + // The name of the zone for this request, formatted as RFC1035. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + +} + +// 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 onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for 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; + + // 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]; @@ -46532,10 +47818,13 @@ message ListRoutesRequest { // with an error code. optional bool return_partial_success = 517198390; + // Name of the zone for this request. Zone name should conform to RFC1035. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for SecurityPolicies.List. See the method description for details. -message ListSecurityPoliciesRequest { +// 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 @@ -46632,10 +47921,13 @@ message ListSecurityPoliciesRequest { // 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 ServiceAttachments.List. See the method description for details. -message ListServiceAttachmentsRequest { +// 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 @@ -46724,7 +48016,7 @@ message ListServiceAttachmentsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region of this request. + // 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 @@ -46737,8 +48029,8 @@ message ListServiceAttachmentsRequest { } -// A request message for Snapshots.List. See the method description for details. -message ListSnapshotsRequest { +// 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 @@ -46827,6 +48119,9 @@ message ListSnapshotsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + // 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. // @@ -46835,10 +48130,14 @@ message ListSnapshotsRequest { // with an error code. optional bool return_partial_success = 517198390; + // 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 SslCertificates.List. See the method description for details. -message ListSslCertificatesRequest { +// 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 @@ -46927,6 +48226,9 @@ message ListSslCertificatesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + // 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. // @@ -46937,8 +48239,8 @@ message ListSslCertificatesRequest { } -// A request message for SslPolicies.List. See the method description for details. -message ListSslPoliciesRequest { +// 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 @@ -47037,8 +48339,8 @@ message ListSslPoliciesRequest { } -// A request message for StoragePoolTypes.List. See the method description for details. -message ListStoragePoolTypesRequest { +// 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 @@ -47135,13 +48437,10 @@ message ListStoragePoolTypesRequest { // with an error code. optional bool return_partial_success = 517198390; - // The name of the zone for this request. - string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for StoragePools.List. See the method description for details. -message ListStoragePoolsRequest { +// 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 @@ -47230,6 +48529,9 @@ message ListStoragePoolsRequest { // 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. // @@ -47238,29 +48540,10 @@ message ListStoragePoolsRequest { // with an error code. optional bool return_partial_success = 517198390; - // The name of the zone for this request. - string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; - } -// 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. - 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 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 @@ -47349,9 +48632,6 @@ message ListSubnetworksRequest { // 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. // @@ -47360,18 +48640,10 @@ message ListSubnetworksRequest { // 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. - // Check the Views enum for the list of possible values. - optional string views = 112204398; - } -// A request message for TargetGrpcProxies.List. See the method description for details. -message ListTargetGrpcProxiesRequest { +// 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 @@ -47470,8 +48742,8 @@ message ListTargetGrpcProxiesRequest { } -// A request message for TargetHttpProxies.List. See the method description for details. -message ListTargetHttpProxiesRequest { +// 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 @@ -47570,8 +48842,8 @@ message ListTargetHttpProxiesRequest { } -// A request message for TargetHttpsProxies.List. See the method description for details. -message ListTargetHttpsProxiesRequest { +// 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 @@ -47668,10 +48940,13 @@ message ListTargetHttpsProxiesRequest { // with an error code. optional bool return_partial_success = 517198390; + // The name of the zone for this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for TargetInstances.List. See the method description for details. -message ListTargetInstancesRequest { +// 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 @@ -47768,13 +49043,29 @@ message ListTargetInstancesRequest { // with an error code. optional bool return_partial_success = 517198390; - // Name of the zone scoping this request. + // The name of the zone for this request. string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; } -// A request message for TargetPools.List. See the method description for details. -message ListTargetPoolsRequest { +// 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. + 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 @@ -47874,10 +49165,18 @@ message ListTargetPoolsRequest { // 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. + // Check the Views enum for the list of possible values. + optional string views = 112204398; + } -// A request message for TargetSslProxies.List. See the method description for details. -message ListTargetSslProxiesRequest { +// 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 @@ -47976,8 +49275,8 @@ message ListTargetSslProxiesRequest { } -// A request message for TargetTcpProxies.List. See the method description for details. -message ListTargetTcpProxiesRequest { +// 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 @@ -48076,8 +49375,8 @@ message ListTargetTcpProxiesRequest { } -// A request message for TargetVpnGateways.List. See the method description for details. -message ListTargetVpnGatewaysRequest { +// 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 @@ -48166,9 +49465,6 @@ message ListTargetVpnGatewaysRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // 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. // @@ -48179,8 +49475,8 @@ message ListTargetVpnGatewaysRequest { } -// A request message for UrlMaps.List. See the method description for details. -message ListUrlMapsRequest { +// 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 @@ -48277,10 +49573,13 @@ message ListUrlMapsRequest { // with an error code. optional bool return_partial_success = 517198390; + // Name of the zone scoping this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for BackendServices.ListUsable. See the method description for details. -message ListUsableBackendServicesRequest { +// 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 @@ -48369,6 +49668,9 @@ message ListUsableBackendServicesRequest { // 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. // @@ -48379,8 +49681,8 @@ message ListUsableBackendServicesRequest { } -// A request message for RegionBackendServices.ListUsable. See the method description for details. -message ListUsableRegionBackendServicesRequest { +// 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 @@ -48469,10 +49771,6 @@ message ListUsableRegionBackendServicesRequest { // 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. - 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. // @@ -48483,8 +49781,8 @@ message ListUsableRegionBackendServicesRequest { } -// A request message for Subnetworks.ListUsable. See the method description for details. -message ListUsableSubnetworksRequest { +// 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 @@ -48581,15 +49879,10 @@ message ListUsableSubnetworksRequest { // 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/) - optional string service_project = 530592655; - } -// A request message for VpnGateways.List. See the method description for details. -message ListVpnGatewaysRequest { +// 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 @@ -48691,8 +49984,8 @@ message ListVpnGatewaysRequest { } -// A request message for VpnTunnels.List. See the method description for details. -message ListVpnTunnelsRequest { +// 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 @@ -48781,9 +50074,6 @@ message ListVpnTunnelsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // 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. // @@ -48794,10 +50084,108 @@ message ListVpnTunnelsRequest { } -// A request message for WireGroups.List. See the method description for details. -message ListWireGroupsRequest { - string cross_site_network = 108192469 [(google.api.field_behavior) = REQUIRED]; +// 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 onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for 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 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 @@ -48896,8 +50284,629 @@ message ListWireGroupsRequest { } -// A request message for Projects.ListXpnHosts. See the method description for details. -message ListXpnHostsProjectsRequest { +// 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`) + 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. + // 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 onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for 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. + // 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 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 onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for 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; + + // 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 onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for 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 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. + 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 onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for 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 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. + optional bool return_partial_success = 517198390; + +} + +// A request message for WireGroups.List. See the method description for details. +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 onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for 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 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 @@ -49102,6 +51111,109 @@ 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 @@ -50560,6 +52672,10 @@ message NetworkAttachmentConnectedEndpoint { // Alias IP ranges from the same subnetwork. repeated string secondary_ip_cidr_ranges = 117184788; + // The service class id of the producer service to which the IP was + // assigned. + optional string service_class_id = 422763404; + // The status of a connected endpoint to this network attachment. // Check the Status enum for the list of possible values. optional string status = 181260274; @@ -51406,6 +53522,12 @@ message NetworkInterface { // if not specified by the users. optional int32 queue_count = 503708769; + // Optional. Producer Service's Service class Id for the region of this network + // interface. Can only be used with network_attachment. It is not possible to + // use on its own however, network_attachment can be used without + // service_class_id. + optional string service_class_id = 422763404; + // 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. // @@ -55311,6 +57433,44 @@ message PatchRegionAutoscalerRequest { } +// 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; + +} + // A request message for RegionBackendServices.Patch. See the method description for details. message PatchRegionBackendServiceRequest { // Name of the BackendService resource to patch. @@ -55537,14 +57697,82 @@ message PatchRegionHealthSourceRequest { } -// A request message for RegionInstanceGroupManagers.Patch. See the method description for details. -message PatchRegionInstanceGroupManagerRequest { - // The name of the instance group manager. - string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; - - // The body resource for this request - InstanceGroupManager instance_group_manager_resource = 261063946 [(google.api.field_behavior) = REQUIRED]; - +// A request message for RegionInstanceGroupManagers.Patch. See the method description for details. +message PatchRegionInstanceGroupManagerRequest { + // The name of the instance group manager. + string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + InstanceGroupManager instance_group_manager_resource = 261063946 [(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 RegionNetworkFirewallPolicies.Patch. See the method description for details. +message PatchRegionNetworkFirewallPolicyRequest { + // Name of the firewall policy to update. + string firewall_policy = 498173265 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + FirewallPolicy firewall_policy_resource = 495049532 [(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 RegionSecurityPolicies.Patch. See the method description for details. +message PatchRegionSecurityPolicyRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, @@ -55572,54 +57800,26 @@ message PatchRegionInstanceGroupManagerRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; -} - -// A request message for RegionNetworkFirewallPolicies.Patch. See the method description for details. -message PatchRegionNetworkFirewallPolicyRequest { - // Name of the firewall policy to update. - string firewall_policy = 498173265 [(google.api.field_behavior) = REQUIRED]; + // Name of the security policy to update. + string security_policy = 171082513 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request - FirewallPolicy firewall_policy_resource = 495049532 [(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" - ]; + SecurityPolicy security_policy_resource = 216159612 [(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). - optional string request_id = 37109963; + // Indicates fields to be cleared as part of this request. + optional string update_mask = 500079778; } -// A request message for RegionSecurityPolicies.Patch. See the method description for details. -message PatchRegionSecurityPolicyRequest { +// A request message for RegionSnapshotSettings.Patch. See the method description for details. +message PatchRegionSnapshotSettingRequest { // 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. + // Name of the region for this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -55640,13 +57840,10 @@ message PatchRegionSecurityPolicyRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // Name of the security policy to update. - string security_policy = 171082513 [(google.api.field_behavior) = REQUIRED]; - // The body resource for this request - SecurityPolicy security_policy_resource = 216159612 [(google.api.field_behavior) = REQUIRED]; + SnapshotSettings snapshot_settings_resource = 357664495 [(google.api.field_behavior) = REQUIRED]; - // Indicates fields to be cleared as part of this request. + // update_mask indicates fields to be updated as part of this request. optional string update_mask = 500079778; } @@ -58697,12 +60894,14 @@ message RawDisk { // 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: + // The full Google Cloud Storage URL or Artifact Registry path where the raw + // disk image archive is stored. + // The following are valid formats: // // - https://storage.googleapis.com/bucket_name/image_archive_name // - https://storage.googleapis.com/bucket_name/folder_name/image_archive_name + // - projects/project/locations/location/repositories/repo/packages/package/versions/version_id + // - projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value // // // @@ -58944,6 +61143,24 @@ message RegionDiskTypeList { } +// +message RegionDiskUpdateKmsKeyRequest { + // Optional. The new KMS key to replace the current one on the disk. If empty, the disk + // will be re-encrypted using the primary version of the disk's current KMS + // key. + // + // The KMS key can be provided in the following formats: + // + // + // - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key + // + // + // Where project is the project ID or + // project number. + optional string kms_key_name = 484373913; + +} + // message RegionDisksAddResourcePoliciesRequest { // Resource policies to be added to this disk. @@ -59063,6 +61280,39 @@ message RegionInstanceGroupManagerPatchInstanceConfigReq { } +// +message RegionInstanceGroupManagerResizeRequestsListResponse { + optional string etag = 3123477; + + // Output only. [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of Resize Request resources. + repeated InstanceGroupManagerResizeRequest items = 100526016; + + // Output only. [Output Only] Type of the resource. Alwayscompute#regionInstanceGroupManagerResizeRequestList for + // a list of Resize Requests. + optional string kind = 3292052; + + // Output only. [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. [Output Only] Server-defined URL for this resource. + optional string self_link = 456214797; + + // Output only. [Output Only] Unreachable resources. + // end_interface: MixerListResponseWithEtagBuilder + repeated string unreachables = 243372063; + + // Output only. [Output Only] Informational warning message. + optional Warning warning = 50704284; + +} + // RegionInstanceGroupManagers.updatePerInstanceConfigs message RegionInstanceGroupManagerUpdateInstanceConfigReq { // The list of per-instance configurations to insert or patch on this managed @@ -59523,6 +61773,20 @@ message RegionSetPolicyRequest { } +// +message RegionSnapshotUpdateKmsKeyRequest { + // Optional. The new KMS key to replace the current one on the snapshot. If empty, the + // snapshot will be re-encrypted using the primary version of the snapshot's + // current KMS key. + // + // The KMS key can be provided in the following formats: + // + // + // - projects/project_id/locations/region/keyRings/region/cryptoKeys/key + optional string kms_key_name = 484373913; + +} + // message RegionTargetHttpsProxiesSetSslCertificatesRequest { // New set of SslCertificate resources to associate @@ -60234,6 +62498,18 @@ message RequestRemovePeeringNetworkRequest { // information, read Reserving zonal // resources. message Reservation { + // + enum ConfidentialComputeType { + // A value indicating that the enum field is not set. + UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE = 0; + + // Intel Trust Domain Extensions. + CONFIDENTIAL_COMPUTE_TYPE_TDX = 301241954; + + CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED = 42227601; + + } + // Specifies the deployment strategy for this reservation. enum DeploymentType { // A value indicating that the enum field is not set. @@ -60348,6 +62624,10 @@ message Reservation { // displays for reservations that are tied to a commitment. optional string commitment = 482134805; + // + // Check the ConfidentialComputeType enum for the list of possible values. + optional string confidential_compute_type = 386447257; + // Output only. [Output Only] Creation timestamp inRFC3339 // text format. optional string creation_timestamp = 30525366; @@ -66679,6 +68959,22 @@ message SetIamPolicyInstanceTemplateRequest { } +// A request message for InstantSnapshotGroups.SetIamPolicy. See the method description for details. +message SetIamPolicyInstantSnapshotGroupRequest { + // 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 + ZoneSetPolicyRequest zone_set_policy_request_resource = 382082107 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for InstantSnapshots.SetIamPolicy. See the method description for details. message SetIamPolicyInstantSnapshotRequest { // Project ID for this request. @@ -66808,6 +69104,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. @@ -66840,6 +69152,22 @@ message SetIamPolicyRegionDiskRequest { } +// A request message for RegionInstantSnapshotGroups.SetIamPolicy. See the method description for details. +message SetIamPolicyRegionInstantSnapshotGroupRequest { + // 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 RegionInstantSnapshots.SetIamPolicy. See the method description for details. message SetIamPolicyRegionInstantSnapshotRequest { // Project ID for this request. @@ -66872,6 +69200,22 @@ message SetIamPolicyRegionNetworkFirewallPolicyRequest { } +// A request message for RegionSnapshots.SetIamPolicy. See the method description for details. +message SetIamPolicyRegionSnapshotRequest { + // 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 ReservationBlocks.SetIamPolicy. See the method description for details. message SetIamPolicyReservationBlockRequest { // Name or id of parent resource of the resource for this request. @@ -67507,6 +69851,43 @@ message SetLabelsRegionSecurityPolicyRequest { } +// A request message for RegionSnapshots.SetLabels. See the method description for details. +message SetLabelsRegionSnapshotRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // The region for this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // 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). + optional string request_id = 37109963; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for SecurityPolicies.SetLabels. See the method description for details. message SetLabelsSecurityPolicyRequest { // The body resource for this request @@ -69244,6 +71625,10 @@ message Snapshot { // as part of resource payload. optional SnapshotParams params = 78313862; + // Output only. [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. optional bool satisfies_pzi = 480964257; @@ -69269,6 +71654,14 @@ message Snapshot { // do not need to provide a key to use the snapshot later. optional CustomerEncryptionKey snapshot_encryption_key = 43334526; + // Output only. [Output Only] The unique ID of the snapshot group that this snapshot + // belongs to. The usage of snapshot group feature is restricted. + optional string snapshot_group_id = 255004406; + + // Output only. [Output only] The snapshot group that this snapshot belongs to. The usage + // of snapshot group feature is restricted. + optional string snapshot_group_name = 246247846; + // Indicates the type of the snapshot. // Check the SnapshotType enum for the list of possible values. optional string snapshot_type = 124349653; @@ -69343,6 +71736,29 @@ message Snapshot { } +// +message SnapshotGroupParameters { + // URLs of the zones where disks should be replicated to. Only applicable + // for regional resources. + repeated string replica_zones = 48438272; + + // The source snapshot group used to create disks. 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/snapshotGroups/snapshotGroup + // - projects/project/global/snapshotGroups/snapshotGroup + // - global/snapshotGroups/snapshotGroup + optional string source_snapshot_group = 225130728; + + // URL of the disk type resource describing which disk type to use to create + // disks. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk + // types. + optional string type = 3575610; + +} + // Contains a list of Snapshot resources. message SnapshotList { // [Output Only] Unique identifier for the resource; defined by the server. @@ -69384,12 +71800,51 @@ message SnapshotParams { // message SnapshotSettings { + // (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. optional SnapshotSettingsStorageLocationSettings storage_location = 460859641; } +// +message SnapshotSettingsAccessLocation { + // Policy of which location is allowed to access snapshot. + enum Policy { + // A value indicating that the enum field is not set. + UNDEFINED_POLICY = 0; + + // Any regions will be able to access the source location. + ALL_REGIONS = 273143585; + + POLICY_UNSPECIFIED = 197974922; + + // 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 + map locations = 413423454; + + // Policy of which location is allowed to access snapshot. + // Check the Policy enum for the list of possible values. + optional string policy = 91071794; + +} + +// A structure for specifying an allowed target region. +message SnapshotSettingsAccessLocationAccessLocationPreference { + // Accessible region name + optional string region = 138946292; + +} + // message SnapshotSettingsStorageLocationSettings { // The chosen location policy. @@ -69433,6 +71888,20 @@ message SnapshotSettingsStorageLocationSettingsStorageLocationPreference { } +// +message SnapshotUpdateKmsKeyRequest { + // Optional. The new KMS key to replace the current one on the snapshot. If empty, the + // snapshot will be re-encrypted using the primary version of the snapshot's + // current KMS key. + // + // The KMS key can be provided in the following formats: + // + // + // - projects/project_id/locations/region/keyRings/key_ring/cryptoKeys/key + optional string kms_key_name = 484373913; + +} + // message SourceDiskEncryptionKey { // Thecustomer-supplied @@ -73876,6 +76345,22 @@ message TestIamPermissionsInstanceTemplateRequest { } +// A request message for InstantSnapshotGroups.TestIamPermissions. See the method description for details. +message TestIamPermissionsInstantSnapshotGroupRequest { + // 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 InstantSnapshots.TestIamPermissions. See the method description for details. message TestIamPermissionsInstantSnapshotRequest { // Project ID for this request. @@ -74066,6 +76551,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. @@ -74194,6 +76695,22 @@ message TestIamPermissionsRegionInstanceGroupRequest { } +// A request message for RegionInstantSnapshotGroups.TestIamPermissions. See the method description for details. +message TestIamPermissionsRegionInstantSnapshotGroupRequest { + // 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 RegionInstantSnapshots.TestIamPermissions. See the method description for details. message TestIamPermissionsRegionInstantSnapshotRequest { // Project ID for this request. @@ -74242,6 +76759,22 @@ message TestIamPermissionsRegionNotificationEndpointRequest { } +// A request message for RegionSnapshots.TestIamPermissions. See the method description for details. +message TestIamPermissionsRegionSnapshotRequest { + // 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 ReservationBlocks.TestIamPermissions. See the method description for details. message TestIamPermissionsReservationBlockRequest { // Name or id of parent resource of the resource for this request. @@ -74947,92 +77480,234 @@ message UpdateHealthCheckRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; -} - -// 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. - // Additional supported values which may be not listed in the enum directly due to technical reasons: - // INVALID - // NO_EFFECT - // REFRESH - // RESTART - enum MinimalAction { - // A value indicating that the enum field is not set. - UNDEFINED_MINIMAL_ACTION = 0; - - } - - // 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 - // REFRESH - // RESTART - enum MostDisruptiveAllowedAction { - // A value indicating that the enum field is not set. - UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION = 0; - - } - - // Whether to discard local SSDs from the instance during restart - // default value is false. - optional bool discard_local_ssd = 319517903; - - // Name of the instance resource to update. - string instance = 18257045 [(google.api.field_behavior) = REQUIRED]; +} + +// 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. + // Additional supported values which may be not listed in the enum directly due to technical reasons: + // INVALID + // NO_EFFECT + // REFRESH + // RESTART + enum MinimalAction { + // A value indicating that the enum field is not set. + UNDEFINED_MINIMAL_ACTION = 0; + + } + + // 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 + // REFRESH + // RESTART + enum MostDisruptiveAllowedAction { + // A value indicating that the enum field is not set. + UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION = 0; + + } + + // Whether to discard local SSDs from the instance during restart + // default value is false. + optional bool discard_local_ssd = 319517903; + + // Name of the instance resource to update. + string instance = 18257045 [(google.api.field_behavior) = REQUIRED]; + + // 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. + // 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. + // Check the MostDisruptiveAllowedAction enum for the list of possible values. + optional string most_disruptive_allowed_action = 66103053; + + // 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 name of the zone for this request. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + +// A request message for Disks.UpdateKmsKey. See the method description for details. +message UpdateKmsKeyDiskRequest { + // Name of the Disk resource, should conform to RFC1035. + string disk = 3083677 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + DiskUpdateKmsKeyRequest disk_update_kms_key_request_resource = 178025952 [(google.api.field_behavior) = REQUIRED]; + + // 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 name of the zone for this request. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + +// A request message for RegionDisks.UpdateKmsKey. See the method description for details. +message UpdateKmsKeyRegionDiskRequest { + // Name of the Disk resource, should conform to RFC1035. + string disk = 3083677 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // The name of the region for this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // The body resource for this request + RegionDiskUpdateKmsKeyRequest region_disk_update_kms_key_request_resource = 10015819 [(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). + optional string request_id = 37109963; + +} + +// A request message for RegionSnapshots.UpdateKmsKey. See the method description for details. +message UpdateKmsKeyRegionSnapshotRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region for this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // The body resource for this request + RegionSnapshotUpdateKmsKeyRequest region_snapshot_update_kms_key_request_resource = 279384818 [(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). + optional string request_id = 37109963; + + // Name of the snapshot resource to update. Should conform to RFC1035. + string snapshot = 284874180 [(google.api.field_behavior) = REQUIRED]; + +} + +// A request message for Snapshots.UpdateKmsKey. See the method description for details. +message UpdateKmsKeySnapshotRequest { + // 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 snapshot resource to update. Should conform to RFC1035. + string snapshot = 284874180 [(google.api.field_behavior) = REQUIRED]; // 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. - // 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. - // Check the MostDisruptiveAllowedAction enum for the list of possible values. - optional string most_disruptive_allowed_action = 66103053; - - // 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 name of the zone for this request. - string zone = 3744684 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "zone" - ]; + SnapshotUpdateKmsKeyRequest snapshot_update_kms_key_request_resource = 103145991 [(google.api.field_behavior) = REQUIRED]; } @@ -75723,6 +78398,43 @@ message UpdateUrlMapRequest { } +// 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: @@ -76487,6 +79199,163 @@ message VmEndpointNatMappingsList { } +// Represents a VM extension policy. +message VmExtensionPolicy { + // Optional. Output only. [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. [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 (for example, "ops-agent") to their corresponding + // policy configurations. + map extension_policies = 227761488; + + // Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, if + // applicable. + optional string global_resource_link = 516569583; + + // Output only. [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. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy. + optional string kind = 3292052; + + // Optional. Output only. [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 most recent creation timestamp takes precedence. + optional int32 priority = 445151652; + + // Output only. [Output Only] Server-defined fully-qualified URL for this resource. + optional string self_link = 456214797; + + // Output only. [Output Only] Server-defined URL for this resource's resource id. + optional string self_link_with_id = 44520962; + + // Optional. Output only. [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. [Output Only] Update timestamp inRFC3339 + // text format. + optional string update_timestamp = 120894752; + +} + +// 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. [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. [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // Output only. [Output Only] A list of VM extension policy resources. + repeated VmExtensionPolicy items = 100526016; + + // Output only. Type of resource. + optional string kind = 3292052; + + // Output only. [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. [Output Only] Server-defined URL for this resource. + optional string self_link = 456214797; + + // Output only. [Output Only] Unreachable resources. + repeated string unreachables = 243372063; + + // Output only. [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 @@ -78354,6 +81223,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/v1/projects/{project}/aggregated/backendBuckets" + }; + option (google.api.method_signature) = "project"; + } + // Deletes the specified BackendBucket resource. rpc Delete(DeleteBackendBucketRequest) returns (Operation) { option (google.api.http) = { @@ -78410,6 +81291,14 @@ service BackendBuckets { option (google.api.method_signature) = "project"; } + // Retrieves a list of all usable backend buckets in the specified project. + rpc ListUsable(ListUsableBackendBucketsRequest) returns (BackendBucketListUsable) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/global/backendBuckets/listUsable" + }; + option (google.api.method_signature) = "project"; + } + // Updates the specified BackendBucket resource with the data included in the // request. This method supportsPATCH // semantics and uses theJSON merge @@ -78969,6 +81858,17 @@ service Disks { option (google.cloud.operation_service) = "ZoneOperations"; } + // Rotates the customer-managed + // encryption key to the latest version for the specified persistent disk. + rpc UpdateKmsKey(UpdateKmsKeyDiskRequest) returns (Operation) { + option (google.api.http) = { + body: "disk_update_kms_key_request_resource" + post: "/compute/v1/projects/{project}/zones/{zone}/disks/{disk}/updateKmsKey" + }; + option (google.api.method_signature) = "project,zone,disk,disk_update_kms_key_request_resource"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + } // The ExternalVpnGateways API. @@ -81453,6 +84353,81 @@ service Instances { } +// The InstantSnapshotGroups API. +service InstantSnapshotGroups { + 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 Zonal InstantSnapshotGroup resource + rpc Delete(DeleteInstantSnapshotGroupRequest) returns (Operation) { + option (google.api.http) = { + delete: "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups/{instant_snapshot_group}" + }; + option (google.api.method_signature) = "project,zone,instant_snapshot_group"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + + // returns the specified InstantSnapshotGroup resource in the specified zone. + rpc Get(GetInstantSnapshotGroupRequest) returns (InstantSnapshotGroup) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups/{instant_snapshot_group}" + }; + option (google.api.method_signature) = "project,zone,instant_snapshot_group"; + } + + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. + rpc GetIamPolicy(GetIamPolicyInstantSnapshotGroupRequest) returns (Policy) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/getIamPolicy" + }; + option (google.api.method_signature) = "project,zone,resource"; + } + + // inserts a Zonal InstantSnapshotGroup resource + rpc Insert(InsertInstantSnapshotGroupRequest) returns (Operation) { + option (google.api.http) = { + body: "instant_snapshot_group_resource" + post: "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups" + }; + option (google.api.method_signature) = "project,zone,instant_snapshot_group_resource"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + + // retrieves the list of InstantSnapshotGroup resources contained within + // the specified zone. + rpc List(ListInstantSnapshotGroupsRequest) returns (ListInstantSnapshotGroups) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups" + }; + option (google.api.method_signature) = "project,zone"; + } + + // Sets the access control policy on the specified resource. + // Replaces any existing policy. + rpc SetIamPolicy(SetIamPolicyInstantSnapshotGroupRequest) returns (Policy) { + option (google.api.http) = { + body: "zone_set_policy_request_resource" + post: "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/setIamPolicy" + }; + option (google.api.method_signature) = "project,zone,resource,zone_set_policy_request_resource"; + } + + // Returns permissions that a caller has on the specified resource. + rpc TestIamPermissions(TestIamPermissionsInstantSnapshotGroupRequest) returns (TestPermissionsResponse) { + option (google.api.http) = { + body: "test_permissions_request_resource" + post: "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/testIamPermissions" + }; + option (google.api.method_signature) = "project,zone,resource,test_permissions_request_resource"; + } + +} + // The InstantSnapshots API. service InstantSnapshots { option (google.api.default_host) = @@ -83990,6 +86965,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/v1/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/v1/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/v1/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/v1/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/v1/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/v1/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/v1/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/v1/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/v1/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) = @@ -84225,6 +87298,15 @@ service RegionCompositeHealthChecks { option (google.api.method_signature) = "project,region,composite_health_check"; } + // Gets the most recent health check results for this + // regional CompositeHealthCheck. + rpc GetHealth(GetHealthRegionCompositeHealthCheckRequest) returns (CompositeHealthCheckHealth) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/compositeHealthChecks/{composite_health_check}/getHealth" + }; + 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) { @@ -84482,6 +87564,17 @@ service RegionDisks { option (google.cloud.operation_service) = "RegionOperations"; } + // Rotates the customer-managed + // encryption key to the latest version for the specified persistent disk. + rpc UpdateKmsKey(UpdateKmsKeyRegionDiskRequest) returns (Operation) { + option (google.api.http) = { + body: "region_disk_update_kms_key_request_resource" + post: "/compute/v1/projects/{project}/regions/{region}/disks/{disk}/updateKmsKey" + }; + option (google.api.method_signature) = "project,region,disk,region_disk_update_kms_key_request_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + } // The RegionHealthAggregationPolicies API. @@ -84766,6 +87859,15 @@ service RegionHealthSources { option (google.api.method_signature) = "project,region,health_source"; } + // Gets the most recent health check results for this + // regional HealthSource. + rpc GetHealth(GetHealthRegionHealthSourceRequest) returns (HealthSourceHealth) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/healthSources/{health_source}/getHealth" + }; + 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. rpc Insert(InsertRegionHealthSourceRequest) returns (Operation) { @@ -84809,6 +87911,68 @@ service RegionHealthSources { } +// The RegionInstanceGroupManagerResizeRequests API. +service RegionInstanceGroupManagerResizeRequests { + 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"; + + // 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/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/resizeRequests/{resize_request}/cancel" + }; + option (google.api.method_signature) = "project,region,instance_group_manager,resize_request"; + 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. + rpc Delete(DeleteRegionInstanceGroupManagerResizeRequestRequest) returns (Operation) { + option (google.api.http) = { + delete: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/resizeRequests/{resize_request}" + }; + option (google.api.method_signature) = "project,region,instance_group_manager,resize_request"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Returns all of the details about the specified resize request. + rpc Get(GetRegionInstanceGroupManagerResizeRequestRequest) returns (InstanceGroupManagerResizeRequest) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/resizeRequests/{resize_request}" + }; + 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. + rpc Insert(InsertRegionInstanceGroupManagerResizeRequestRequest) returns (Operation) { + option (google.api.http) = { + body: "instance_group_manager_resize_request_resource" + post: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/resizeRequests" + }; + option (google.api.method_signature) = "project,region,instance_group_manager,instance_group_manager_resize_request_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // 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/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/resizeRequests" + }; + option (google.api.method_signature) = "project,region,instance_group_manager"; + } + +} + // The RegionInstanceGroupManagers API. service RegionInstanceGroupManagers { option (google.api.default_host) = @@ -85341,6 +88505,82 @@ service RegionInstances { } +// The RegionInstantSnapshotGroups API. +service RegionInstantSnapshotGroups { + 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 Regional InstantSnapshotGroup resource + rpc Delete(DeleteRegionInstantSnapshotGroupRequest) returns (Operation) { + option (google.api.http) = { + delete: "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups/{instant_snapshot_group}" + }; + option (google.api.method_signature) = "project,region,instant_snapshot_group"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // returns the specified InstantSnapshotGroup resource in the specified + // region. + rpc Get(GetRegionInstantSnapshotGroupRequest) returns (InstantSnapshotGroup) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups/{instant_snapshot_group}" + }; + option (google.api.method_signature) = "project,region,instant_snapshot_group"; + } + + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. + rpc GetIamPolicy(GetIamPolicyRegionInstantSnapshotGroupRequest) returns (Policy) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/getIamPolicy" + }; + option (google.api.method_signature) = "project,region,resource"; + } + + // creates a Regional InstantSnapshotGroup resource + rpc Insert(InsertRegionInstantSnapshotGroupRequest) returns (Operation) { + option (google.api.http) = { + body: "instant_snapshot_group_resource" + post: "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups" + }; + option (google.api.method_signature) = "project,region,instant_snapshot_group_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // retrieves the list of InstantSnapshotGroup resources contained within + // the specified region. + rpc List(ListRegionInstantSnapshotGroupsRequest) returns (ListInstantSnapshotGroups) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups" + }; + option (google.api.method_signature) = "project,region"; + } + + // Sets the access control policy on the specified resource. + // Replaces any existing policy. + rpc SetIamPolicy(SetIamPolicyRegionInstantSnapshotGroupRequest) returns (Policy) { + option (google.api.http) = { + body: "region_set_policy_request_resource" + post: "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups/{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(TestIamPermissionsRegionInstantSnapshotGroupRequest) returns (TestPermissionsResponse) { + option (google.api.http) = { + body: "test_permissions_request_resource" + post: "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/testIamPermissions" + }; + option (google.api.method_signature) = "project,region,resource,test_permissions_request_resource"; + } + +} + // The RegionInstantSnapshots API. service RegionInstantSnapshots { option (google.api.default_host) = @@ -85929,6 +89169,141 @@ service RegionSecurityPolicies { } +// The RegionSnapshotSettings API. +service RegionSnapshotSettings { + 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"; + + // Get region snapshot settings. + rpc Get(GetRegionSnapshotSettingRequest) returns (SnapshotSettings) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/snapshotSettings" + }; + option (google.api.method_signature) = "project,region"; + } + + // Patch region snapshot settings. + rpc Patch(PatchRegionSnapshotSettingRequest) returns (Operation) { + option (google.api.http) = { + body: "snapshot_settings_resource" + patch: "/compute/v1/projects/{project}/regions/{region}/snapshotSettings" + }; + option (google.api.method_signature) = "project,region,snapshot_settings_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + +} + +// The RegionSnapshots API. +service RegionSnapshots { + 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 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/v1/projects/{project}/regions/{region}/snapshots/{snapshot}" + }; + option (google.api.method_signature) = "project,region,snapshot"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Returns the specified Snapshot resource. + rpc Get(GetRegionSnapshotRequest) returns (Snapshot) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/snapshots/{snapshot}" + }; + 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. + rpc GetIamPolicy(GetIamPolicyRegionSnapshotRequest) returns (Policy) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/snapshots/{resource}/getIamPolicy" + }; + option (google.api.method_signature) = "project,region,resource"; + } + + // 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" + post: "/compute/v1/projects/{project}/regions/{region}/snapshots" + }; + option (google.api.method_signature) = "project,region,snapshot_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Retrieves the list of Snapshot resources contained within + // the specified region. + rpc List(ListRegionSnapshotsRequest) returns (SnapshotList) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/snapshots" + }; + option (google.api.method_signature) = "project,region"; + } + + // 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" + post: "/compute/v1/projects/{project}/regions/{region}/snapshots/{resource}/setIamPolicy" + }; + 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. + rpc SetLabels(SetLabelsRegionSnapshotRequest) returns (Operation) { + option (google.api.http) = { + body: "region_set_labels_request_resource" + post: "/compute/v1/projects/{project}/regions/{region}/snapshots/{resource}/setLabels" + }; + option (google.api.method_signature) = "project,region,resource,region_set_labels_request_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Returns permissions that a caller has on the specified resource. + rpc TestIamPermissions(TestIamPermissionsRegionSnapshotRequest) returns (TestPermissionsResponse) { + option (google.api.http) = { + body: "test_permissions_request_resource" + post: "/compute/v1/projects/{project}/regions/{region}/snapshots/{resource}/testIamPermissions" + }; + option (google.api.method_signature) = "project,region,resource,test_permissions_request_resource"; + } + + // Rotates the customer-managed + // encryption key to the latest version for the specified snapshot. + rpc UpdateKmsKey(UpdateKmsKeyRegionSnapshotRequest) returns (Operation) { + option (google.api.http) = { + body: "region_snapshot_update_kms_key_request_resource" + post: "/compute/v1/projects/{project}/regions/{region}/snapshots/{snapshot}/updateKmsKey" + }; + option (google.api.method_signature) = "project,region,snapshot,region_snapshot_update_kms_key_request_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + +} + // The RegionSslCertificates API. service RegionSslCertificates { option (google.api.default_host) = @@ -87397,6 +90772,17 @@ service Snapshots { option (google.api.method_signature) = "project,resource,test_permissions_request_resource"; } + // Rotates the customer-managed + // encryption key to the latest version for the specified snapshot. + rpc UpdateKmsKey(UpdateKmsKeySnapshotRequest) returns (Operation) { + option (google.api.http) = { + body: "snapshot_update_kms_key_request_resource" + post: "/compute/v1/projects/{project}/global/snapshots/{snapshot}/updateKmsKey" + }; + option (google.api.method_signature) = "project,snapshot,snapshot_update_kms_key_request_resource"; + option (google.cloud.operation_service) = "GlobalOperations"; + } + } // The SslCertificates API. @@ -88975,6 +92361,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/v1/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/v1/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/v1/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/v1/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/v1/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/google/cloud/compute/v1beta/compute.proto b/packages/google-cloud-compute/protos/google/cloud/compute/v1beta/compute.proto index bb6e9b3cd5ed..48a3b5976c0c 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: 20260227 +// Source file revision: 20260331 // API name: compute // API version: v1beta @@ -10149,6 +10149,15 @@ message Backend { // Check the Preference enum for the list of possible values. optional string preference = 150781147; + // Represents a service backend (e.g., Cloud Run service, PSC Service + // Attachment). + // e.g. + // "run.googleapis.com/projects/123456789/locations/us-central1/services/my-service" + // for Cloud Run service. + // "compute.googleapis.com/projects/123456789/regions/us-central1/serviceAttachments/my-service-attachment" + // for PSC Service Attachment. + optional string service = 373540533; + // // Check the TrafficDuration enum for the list of possible values. optional string traffic_duration = 11618710; @@ -10803,7 +10812,7 @@ message BackendService { // 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, + // - 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 @@ -11035,7 +11044,7 @@ message BackendService { // // This field is applicable to either: // - // - A regional backend service with the service_protocol set to HTTP, + // - 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 @@ -11270,7 +11279,7 @@ message BackendService { // 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, + // - 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 @@ -11376,7 +11385,7 @@ message BackendService { // - 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 + // service with the service protocol set to HTTP, HTTPS, HTTP2 or H2C, and // loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not // supported for Serverless NEGs. // @@ -13126,7 +13135,8 @@ message BulkInsertDiskResource { // The parameters for the instant snapshot group. optional InstantSnapshotGroupParameters instant_snapshot_group_parameters = 17051623; - // The parameters for the snapshot group. + // The parameters for the snapshot group. The usage of snapshot group feature + // is restricted. optional SnapshotGroupParameters snapshot_group_parameters = 42252485; // The URL of the DiskConsistencyGroupPolicy for the group of disks to clone. @@ -14289,6 +14299,10 @@ message Commitment { // cannot be a dash. optional string name = 3373707; + // Input only. Additional params passed with the request, but not persisted + // as part of resource payload. + optional CommitmentParams params = 78313862; + // 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 @@ -14415,6 +14429,19 @@ message CommitmentList { } +// Additional commitment params. +message CommitmentParams { + // Input only. Resource manager tags to be bound to the commitment. Tag keys and + // values have the same definition as resource + // manager tags. Keys and values can be either in numeric format, + // such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in + // namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and + // `{tag_value_short_name}`. The field is ignored (both PUT & + // PATCH) when empty. + map resource_manager_tags = 377671164; + +} + // [Output Only] Contains output only fields. message CommitmentResourceStatus { // Output only. [Output Only] Indicates the end time of customer's eligibility to send @@ -14528,6 +14555,34 @@ message CompositeHealthCheckAggregatedList { } +// Response message for RegionCompositeHealthChecks.GetHealth +message CompositeHealthCheckHealth { + // Health state of the CompositeHealthCheck. + enum HealthState { + // A value indicating that the enum field is not set. + UNDEFINED_HEALTH_STATE = 0; + + HEALTHY = 439801213; + + UNHEALTHY = 462118084; + + UNKNOWN = 433141802; + + } + + // Health sources and their corresponding health states. + repeated CompositeHealthChecksGetHealthResponseHealthSourceHealth health_sources = 397879509; + + // Health state of the CompositeHealthCheck. + // Check the HealthState enum for the list of possible values. + optional string health_state = 324007150; + + // Output only. [Output Only] Type of resource. Alwayscompute#compositeHealthCheckHealth for the health of + // composite health checks. + optional string kind = 3292052; + +} + // message CompositeHealthCheckList { // [Output Only] Unique identifier for the resource; defined by the server. @@ -14554,6 +14609,30 @@ message CompositeHealthCheckList { } +// +message CompositeHealthChecksGetHealthResponseHealthSourceHealth { + // Health state of the associated HealthSource resource. + enum HealthState { + // A value indicating that the enum field is not set. + UNDEFINED_HEALTH_STATE = 0; + + HEALTHY = 439801213; + + UNHEALTHY = 462118084; + + UNKNOWN = 433141802; + + } + + // Health state of the associated HealthSource resource. + // Check the HealthState enum for the list of possible values. + optional string health_state = 324007150; + + // Fully qualified URL of the associated HealthSource resource. + optional string source = 177235995; + +} + // message CompositeHealthChecksScopedList { // A list of CompositeHealthChecks contained in this scope. @@ -19966,6 +20045,24 @@ message DiskTypesScopedList { } +// +message DiskUpdateKmsKeyRequest { + // Optional. The new KMS key to replace the current one on the disk. If empty, the disk + // will be re-encrypted using the primary version of the disk's current KMS + // key. + // + // The KMS key can be provided in the following formats: + // + // + // - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key + // + // + // Where project is the project ID or + // project number. + optional string kms_key_name = 484373913; + +} + // message DisksAddResourcePoliciesRequest { // Full or relative path to the resource policy to be added to this disk. You @@ -20185,7 +20282,7 @@ message EnableXpnResourceProjectRequest { } -// Reason why the topology state change failed +// Output only. Encountered errors. message Error { // [Output Only] The array of errors encountered while processing this // operation. @@ -22179,6 +22276,18 @@ message ForwardingRulesScopedList { // message FutureReservation { + // + enum ConfidentialComputeType { + // A value indicating that the enum field is not set. + UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE = 0; + + // Intel Trust Domain Extensions. + CONFIDENTIAL_COMPUTE_TYPE_TDX = 301241954; + + CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED = 42227601; + + } + // Type of the deployment requested as part of future reservation. enum DeploymentType { // A value indicating that the enum field is not set. @@ -22303,6 +22412,10 @@ message FutureReservation { // existing commitment. optional FutureReservationCommitmentInfo commitment_info = 164362136; + // + // Check the ConfidentialComputeType enum for the list of possible values. + optional string confidential_compute_type = 386447257; + // Output only. [Output Only] The creation timestamp for this future reservation inRFC3339 // text format. optional string creation_timestamp = 30525366; @@ -22341,6 +22454,10 @@ message FutureReservation { // reservations name format will be -date-####. optional string name_prefix = 236409542; + // Input only. Additional params passed with the request, but not persisted + // as part of resource payload. + optional FutureReservationParams params = 78313862; + // Planning state before being submitted for evaluation // Check the PlanningStatus enum for the list of possible values. optional string planning_status = 19714836; @@ -22445,6 +22562,19 @@ message FutureReservationCommitmentInfo { } +// Additional future reservation params. +message FutureReservationParams { + // Input only. Resource manager tags to be bound to the future reservation. Tag keys and + // values have the same definition as resource + // manager tags. Keys and values can be either in numeric format, + // such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in + // namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and + // `{tag_value_short_name}`. The field is ignored (both PUT & + // PATCH) when empty. + map resource_manager_tags = 377671164; + +} + // message FutureReservationSpecificSKUProperties { // Properties of the SKU instances being reserved. @@ -23658,6 +23788,32 @@ message GetHealthRegionBackendServiceRequest { } +// A request message for RegionCompositeHealthChecks.GetHealth. See the method description for details. +message GetHealthRegionCompositeHealthCheckRequest { + // Name of the CompositeHealthCheck resource to get health for. + string composite_health_check = 466984989 [(google.api.field_behavior) = REQUIRED]; + + // Name of the project scoping 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 RegionHealthSources.GetHealth. See the method description for details. +message GetHealthRegionHealthSourceRequest { + // Name of the HealthSource resource to get health for. + string health_source = 376521566 [(google.api.field_behavior) = REQUIRED]; + + // Name of the project scoping 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 TargetPools.GetHealth. See the method description for details. message GetHealthTargetPoolRequest { // The body resource for this request @@ -26710,6 +26866,7 @@ message GuestOsFeature { // - TDX_CAPABLE // - IDPF // - SNP_SVSM_CAPABLE + // - CCA_CAPABLE // // // For more information, see @@ -26765,6 +26922,7 @@ message GuestOsFeature { // - TDX_CAPABLE // - IDPF // - SNP_SVSM_CAPABLE + // - CCA_CAPABLE // // // For more information, see @@ -27836,6 +27994,33 @@ message HealthSourceAggregatedList { } +// Response message for RegionHealthSources.GetHealth +message HealthSourceHealth { + // Health state of the HealthSource. + enum HealthState { + // A value indicating that the enum field is not set. + UNDEFINED_HEALTH_STATE = 0; + + HEALTHY = 439801213; + + UNHEALTHY = 462118084; + + UNKNOWN = 433141802; + + } + + // Health state of the HealthSource. + // Check the HealthState enum for the list of possible values. + optional string health_state = 324007150; + + // Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of health sources. + optional string kind = 3292052; + + // Health state details of the sources. + repeated HealthSourcesGetHealthResponseSourceInfo sources = 125606840; + +} + // message HealthSourceList { // [Output Only] Unique identifier for the resource; defined by the server. @@ -27862,6 +28047,39 @@ message HealthSourceList { } +// +message HealthSourcesGetHealthResponseSourceInfo { + // Represents an instance group or network endpoint group behind the source + // backend service. Only used if the sourceType of the regionHealthSource + // is BACKEND_SERVICE. + repeated HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903; + + // Fully qualified URL of the forwarding rule associated with the source + // resource if it is a L4ILB backend service. + optional string forwarding_rule = 269964030; + + // Fully qualified URL of the associated source resource. This is always a + // backend service URL. + optional string source = 177235995; + +} + +// +message HealthSourcesGetHealthResponseSourceInfoBackendInfo { + // Total number of endpoints when determining the health of the + // regionHealthSource. + optional int32 endpoint_count = 486641125; + + // Fully qualified URL of an instance group or network endpoint group + // behind the source backend service. + optional string group = 98629247; + + // Number of endpoints considered healthy when determining health of the + // regionHealthSource. + optional int32 healthy_endpoint_count = 291284167; + +} + // message HealthSourcesScopedList { // A list of HealthSources contained in this scope. @@ -32951,11 +33169,11 @@ message InstanceGroupManager { // [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. [Output Only] The creation timestamp for this managed instance group inRFC3339 + // Output only. The creation timestamp for this managed instance group inRFC3339 // text format. optional string creation_timestamp = 30525366; - // Output only. [Output Only] The list of instance actions and the number of instances + // 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; @@ -32980,7 +33198,7 @@ message InstanceGroupManager { // retrieve an InstanceGroupManager. optional string fingerprint = 234678500; - // Output only. [Output Only] A unique identifier for this resource type. The server + // Output only. A unique identifier for this resource type. The server // generates this identifier. optional uint64 id = 3355; @@ -32990,7 +33208,7 @@ message InstanceGroupManager { // template configuration. optional InstanceGroupManagerInstanceFlexibilityPolicy instance_flexibility_policy = 26937090; - // Output only. [Output Only] The URL of the Instance Group resource. + // Output only. The URL of the Instance Group resource. optional string instance_group = 81095253; // The repair policy for this managed instance group. @@ -33002,7 +33220,7 @@ message InstanceGroupManager { // group do not change unless you run recreateInstances, runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE. optional string instance_template = 309248228; - // Output only. [Output Only] The resource type, which is alwayscompute#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 @@ -33032,13 +33250,13 @@ message InstanceGroupManager { // Resource policies for this managed instance group. optional InstanceGroupManagerResourcePolicies resource_policies = 22220385; - // Output only. [Output Only] Reserved for future use. + // Output only. Reserved for future use. optional bool satisfies_pzi = 480964257; - // Output only. [Output Only] Reserved for future use. + // Output only. Reserved for future use. optional bool satisfies_pzs = 480964267; - // Output only. [Output Only] The URL for this managed instance group. The server defines + // Output only. The URL for this managed instance group. The server defines // this URL. optional string self_link = 456214797; @@ -33055,7 +33273,7 @@ message InstanceGroupManager { // Stateful configuration for this Instanced Group Manager optional StatefulPolicy stateful_policy = 47538565; - // Output only. [Output Only] The status of this managed instance group. + // Output only. The status of this managed instance group. optional InstanceGroupManagerStatus status = 181260274; // The URLs for all TargetPool resources to which instances in theinstanceGroup field are added. The target pools automatically @@ -33106,7 +33324,7 @@ message InstanceGroupManager { // updates. repeated InstanceGroupManagerVersion versions = 162430619; - // Output only. [Output Only] The URL of azone + // Output only. The URL of azone // where the managed instance group is located (for zonal resources). optional string zone = 3744684; @@ -33114,16 +33332,16 @@ message InstanceGroupManager { // message InstanceGroupManagerActionsSummary { - // Output only. [Output Only] The total number of instances in the managed instance group + // 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 + // Output only. The number of instances in the managed instance group that // are scheduled to be adopted or are currently being adopted. optional int32 adopting = 168537650; - // Output only. [Output Only] The number of instances in the managed instance group that + // 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. @@ -33132,54 +33350,54 @@ message InstanceGroupManagerActionsSummary { // instead, the creatingWithoutRetries field will be populated. optional int32 creating = 209809081; - // Output only. [Output Only] The number of instances that the managed instance group + // 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. [Output Only] The number of instances in the managed instance group that + // 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. [Output Only] The number of instances in the managed instance group that + // 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. [Output Only] The number of instances in the managed instance group that + // 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. [Output Only] The number of instances in the managed instance group that + // 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. [Output Only] The number of instances in the managed instance group that + // 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. [Output Only] The number of instances in the managed instance group that + // 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. [Output Only] The number of instances in the managed instance group that + // 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. [Output Only] The number of instances in the managed instance group that + // 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. [Output Only] The number of instances in the managed instance group that + // 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. [Output Only] The number of instances in the managed instance group that + // 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; @@ -33483,7 +33701,7 @@ message InstanceGroupManagerParams { // and the VMs created by this request are added to the owning // InstanceGroupManager. message InstanceGroupManagerResizeRequest { - // Output only. [Output only] Current state of the request. + // Output only. Current state of the request. enum State { // A value indicating that the enum field is not set. UNDEFINED_STATE = 0; @@ -33520,15 +33738,15 @@ message InstanceGroupManagerResizeRequest { // The count of instances to create as part of this resize request. optional int32 count = 94851343; - // Output only. [Output Only] The creation timestamp for this resize request inRFC3339 + // 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. [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 @@ -33537,15 +33755,14 @@ message InstanceGroupManagerResizeRequest { // together with 'resize_by'. repeated PerInstanceConfig instances = 29097598; - // Output only. [Output Only] The resource type, which is alwayscompute#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 withRFC1035. optional string name = 3373707; - // Output only. [Output Only] The URL of aregion + // Output only. The URL of a region // where the resize request is located. Populated only for regional resize // requests. optional string region = 138946292; @@ -33559,21 +33776,20 @@ message InstanceGroupManagerResizeRequest { // together with 'instances'. optional int32 resize_by = 533735362; - // Output only. [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. [Output Only] Server-defined URL for this resource with the resource id. + // Output only. Server-defined URL for this resource with the resource id. optional string self_link_with_id = 44520962; - // Output only. [Output only] Current state of the request. + // Output only. Current state of the request. // Check the State enum for the list of possible values. optional string state = 109757585; - // Output only. [Output only] Status of the request. + // Output only. Status of the request. optional InstanceGroupManagerResizeRequestStatus status = 181260274; - // Output only. [Output Only] The URL of azone + // Output only. The URL of a zone // where the resize request is located. Populated only for zonal resize // requests. optional string zone = 3744684; @@ -33582,21 +33798,20 @@ message InstanceGroupManagerResizeRequest { // message InstanceGroupManagerResizeRequestStatus { - // Output only. [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. [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 stored in the + // "error" field only. optional InstanceGroupManagerResizeRequestStatusLastAttempt last_attempt = 434771492; } @@ -33684,26 +33899,26 @@ message InstanceGroupManagerStandbyPolicy { // message InstanceGroupManagerStatus { - // Output only. [Output only] Status of all-instances configuration on the group. + // Output only. Status of all-instances configuration on the group. optional InstanceGroupManagerStatusAllInstancesConfig all_instances_config = 112596737; - // Output only. [Output Only] The accelerator topology applied to this MIG. + // Output only. The accelerator topology applied to this MIG. // Currently only one accelerator topology is supported. repeated InstanceGroupManagerStatusAcceleratorTopology applied_accelerator_topologies = 481392547; - // Output only. [Output Only] The URL of theAutoscaler + // Output only. The URL of theAutoscaler // that targets this instance group manager. optional string autoscaler = 517258967; - // Output only. [Output Only] The status of bulk instance operation. + // Output only. The status of bulk instance operation. optional InstanceGroupManagerStatusBulkInstanceOperation bulk_instance_operation = 501667466; - // Output only. [Output Only] The list of instance statuses and the number of instances + // Output only. The list of instance statuses and the number of instances // in this managed instance group that have the status. Currently only shown // for TPU MIGs optional InstanceGroupManagerStatusInstanceStatusSummary current_instance_statuses = 269432644; - // Output only. [Output Only] A bit indicating whether the managed instance group is in a + // 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 @@ -33711,10 +33926,10 @@ message InstanceGroupManagerStatus { // group itself is not being modified. optional bool is_stable = 108410864; - // Output only. [Output Only] Stateful status of the given Instance Group Manager. + // Output only. Stateful status of the given Instance Group Manager. optional InstanceGroupManagerStatusStateful stateful = 244462412; - // Output only. [Output Only] A status of consistency of Instances' versions with their + // 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; @@ -33723,7 +33938,7 @@ message InstanceGroupManagerStatus { // message InstanceGroupManagerStatusAcceleratorTopology { - // Output only. [Output Only] The state of the accelerator topology. + // Output only. The state of the accelerator topology. enum State { // A value indicating that the enum field is not set. UNDEFINED_STATE = 0; @@ -33749,15 +33964,15 @@ message InstanceGroupManagerStatusAcceleratorTopology { } - // Output only. [Output Only] Topology in the format of: "16x16", "4x4x4", etc. + // 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. [Output Only] The state of the accelerator topology. + // Output only. The state of the accelerator topology. // Check the State enum for the list of possible values. optional string state = 109757585; - // Output only. [Output Only] The result of the latest accelerator topology state + // Output only. The result of the latest accelerator topology state // check. optional InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails state_details = 95566996; @@ -33765,10 +33980,10 @@ message InstanceGroupManagerStatusAcceleratorTopology { // message InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails { - // Output only. [Output Only] Encountered errors. + // Output only. Encountered errors. optional Error error = 96784904; - // Output only. [Output Only] Timestamp is shown only if there is an error. The field + // Output only. Timestamp is shown only if there is an error. The field // has // RFC3339 // // text format. optional string timestamp = 55126294; @@ -33777,11 +33992,11 @@ message InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDet // message InstanceGroupManagerStatusAllInstancesConfig { - // Output only. [Output Only] Current all-instances configuration revision. + // Output only. Current all-instances configuration revision. // This value is in RFC3339 text format. optional string current_revision = 38355937; - // Output only. [Output Only] A bit indicating whether this configuration has + // Output only. A bit indicating whether this configuration has // been applied to all managed instances in the group. optional bool effective = 141961639; @@ -33790,10 +34005,10 @@ message InstanceGroupManagerStatusAllInstancesConfig { // Bulk instance operation is the creation of VMs in a MIG when the // targetSizePolicy.mode is set to BULK. message InstanceGroupManagerStatusBulkInstanceOperation { - // Output only. [Output Only] Informs whether bulk instance operation is in progress. + // Output only. Informs whether bulk instance operation is in progress. optional bool in_progress = 320200711; - // Output only. [Output Only] Information from the last progress check of bulk instance + // Output only. Information from the last progress check of bulk instance // operation. optional InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck last_progress_check = 208638271; @@ -33801,10 +34016,10 @@ message InstanceGroupManagerStatusBulkInstanceOperation { // message InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck { - // Output only. [Output Only] Errors encountered during bulk instance operation. + // Output only. Errors encountered during bulk instance operation. optional Error error = 96784904; - // Output only. [Output Only] Timestamp of the last progress check of bulk instance + // Output only. Timestamp of the last progress check of bulk instance // operation. Timestamp is in RFC3339 text format. optional string timestamp = 55126294; @@ -33815,11 +34030,11 @@ message InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck { // interpret each status check the instance lifecycle documentation. // Currently only shown for TPU MIGs. message InstanceGroupManagerStatusInstanceStatusSummary { - // Output only. [Output Only] The number of instances in the managed instance group + // Output only. The number of instances in the managed instance group // that have DEPROVISIONING status. optional int32 deprovisioning = 462169582; - // Output only. [Output Only] The number of instances that have not been created yet or + // Output only. The number of instances that have not been created yet or // have been deleted. Includes only instances that would be shown in the // listManagedInstances method and not all instances that have been // deleted in the lifetime of the MIG. @@ -33827,49 +34042,49 @@ message InstanceGroupManagerStatusInstanceStatusSummary { // availability, they are considered as 'pending'. optional int32 non_existent = 468485062; - // Output only. [Output Only] The number of instances in the managed instance group + // Output only. The number of instances in the managed instance group // that have PENDING status, that is FlexStart instances that are waiting // for resources. Instances that do not exist because of the other reasons // are counted as 'non_existent'. optional int32 pending = 391154071; - // Output only. [Output Only] The number of instances in the managed instance group + // Output only. The number of instances in the managed instance group // that have PENDING_STOP status. optional int32 pending_stop = 163159466; - // Output only. [Output Only] The number of instances in the managed instance group + // Output only. The number of instances in the managed instance group // that have PROVISIONING status. optional int32 provisioning = 121098989; - // Output only. [Output Only] The number of instances in the managed instance group + // Output only. The number of instances in the managed instance group // that have REPAIRING status. optional int32 repairing = 311243061; - // Output only. [Output Only] The number of instances in the managed instance group + // Output only. The number of instances in the managed instance group // that have RUNNING status. optional int32 running = 477042111; - // Output only. [Output Only] The number of instances in the managed instance group + // Output only. The number of instances in the managed instance group // that have STAGING status. optional int32 staging = 249960507; - // Output only. [Output Only] The number of instances in the managed instance group + // Output only. The number of instances in the managed instance group // that have STOPPED status. optional int32 stopped = 263164365; - // Output only. [Output Only] The number of instances in the managed instance group + // Output only. The number of instances in the managed instance group // that have STOPPING status. optional int32 stopping = 105035892; - // Output only. [Output Only] The number of instances in the managed instance group + // Output only. The number of instances in the managed instance group // that have SUSPENDED status. optional int32 suspended = 485854683; - // Output only. [Output Only] The number of instances in the managed instance group + // Output only. The number of instances in the managed instance group // that have SUSPENDING status. optional int32 suspending = 29113894; - // Output only. [Output Only] The number of instances in the managed instance group + // Output only. The number of instances in the managed instance group // that have TERMINATED status. optional int32 terminated = 301796899; @@ -33877,7 +34092,7 @@ message InstanceGroupManagerStatusInstanceStatusSummary { // message InstanceGroupManagerStatusStateful { - // Output only. [Output Only] A bit indicating whether the managed instance group + // 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 @@ -33885,7 +34100,7 @@ message InstanceGroupManagerStatusStateful { // if you have deleted all PICs but not yet applied those deletions. optional bool has_stateful_config = 110474224; - // Output only. [Output Only] A bit indicating whether the managed instance group + // 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 @@ -33894,7 +34109,7 @@ message InstanceGroupManagerStatusStateful { // field is deprecated in favor of has_stateful_config. optional bool is_stateful = 46302913; - // Output only. [Output Only] Status of per-instance configurations on the instances. + // Output only. Status of per-instance configurations on the instances. optional InstanceGroupManagerStatusStatefulPerInstanceConfigs per_instance_configs = 526265001; } @@ -33910,7 +34125,7 @@ message InstanceGroupManagerStatusStatefulPerInstanceConfigs { // message InstanceGroupManagerStatusVersionTarget { - // Output only. [Output Only] A bit indicating whether version target has been reached + // 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; @@ -34280,6 +34495,43 @@ message InstanceGroupManagersConfigureAcceleratorTopologiesRequest { // obtained from the GetAvailableAcceleratorTopologies rpc. map accelerator_topology_actions = 16520833; + // Map of accelerator topologies that should have their state changed to + // the specified configuration. The map key is the hashed topology locus id. + // It can be obtained from the GetAvailableAcceleratorTopologies rpc. + map accelerator_topology_configurations = 95019065; + +} + +// Configuration for a single accelerator topology. +message InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration { + // + enum Action { + // A value indicating that the enum field is not set. + UNDEFINED_ACTION = 0; + + // Default value. Should not be used. + ACCELERATOR_TOPOLOGY_ACTION_UNSPECIFIED = 78494314; + + // The accelerator topology is to be activated. + ACTIVATE = 200393971; + + // The accelerator topology is to be deactivated. + DEACTIVATE = 98942068; + + } + + // + // Check the Action enum for the list of possible values. + optional string action = 187661878; + + // Identifier of the accelerator topology assigned externally to + // differentiate who is the owner of the topology. The format needs to + // conform to RFC1035 and be unique. The uniqueness is guaranteed by the + // requestor. If it is provided on activating the sub-slice it will have to + // be provided on deactivating as well. This identifier is cleared on + // successful deform of a sub-slice. + optional string external_id = 457537039; + } // InstanceGroupManagers.createInstances @@ -34352,7 +34604,6 @@ message InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAccelerato // working inter-chip connected group. UNHEALTHY = 462118084; - // No signal available UNKNOWN = 433141802; } @@ -34425,6 +34676,13 @@ message InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAccelerato // Timestamp when the last error happened optional string error_timestamp = 219548575; + // Identifier of the accelerator topology assigned externally to + // differentiate who is the owner of the topology. This is set in + // ConfigureAcceleratorTopologies. If it is provided on activating the + // sub-slice it will have to be provided on deactivating as well. + // This identifier is cleared on successful deform of a sub-slice. + optional string external_id = 457537039; + } // @@ -56524,6 +56782,10 @@ message NetworkAttachmentConnectedEndpoint { // Alias IP ranges from the same subnetwork. repeated string secondary_ip_cidr_ranges = 117184788; + // The service class id of the producer service to which the IP was + // assigned. + optional string service_class_id = 422763404; + // The status of a connected endpoint to this network attachment. // Check the Status enum for the list of possible values. optional string status = 181260274; @@ -57472,6 +57734,12 @@ message NetworkInterface { // if not specified by the users. optional int32 queue_count = 503708769; + // Optional. Producer Service's Service class Id for the region of this network + // interface. Can only be used with network_attachment. It is not possible to + // use on its own however, network_attachment can be used without + // service_class_id. + optional string service_class_id = 422763404; + // 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. // @@ -65546,12 +65814,14 @@ message RawDisk { // 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: + // The full Google Cloud Storage URL or Artifact Registry path where the raw + // disk image archive is stored. + // The following are valid formats: // // - https://storage.googleapis.com/bucket_name/image_archive_name // - https://storage.googleapis.com/bucket_name/folder_name/image_archive_name + // - projects/project/locations/location/repositories/repo/packages/package/versions/version_id + // - projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value // // // @@ -65800,6 +66070,24 @@ message RegionDiskTypeList { } +// +message RegionDiskUpdateKmsKeyRequest { + // Optional. The new KMS key to replace the current one on the disk. If empty, the disk + // will be re-encrypted using the primary version of the disk's current KMS + // key. + // + // The KMS key can be provided in the following formats: + // + // + // - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key + // + // + // Where project is the project ID or + // project number. + optional string kms_key_name = 484373913; + +} + // message RegionDisksAddResourcePoliciesRequest { // Resource policies to be added to this disk. @@ -66455,6 +66743,20 @@ message RegionSetPolicyRequest { } +// +message RegionSnapshotUpdateKmsKeyRequest { + // Optional. The new KMS key to replace the current one on the snapshot. If empty, the + // snapshot will be re-encrypted using the primary version of the snapshot's + // current KMS key. + // + // The KMS key can be provided in the following formats: + // + // + // - projects/project_id/locations/region/keyRings/region/cryptoKeys/key + optional string kms_key_name = 484373913; + +} + // message RegionTargetHttpsProxiesSetSslCertificatesRequest { // New set of SslCertificate resources to associate @@ -67265,6 +67567,18 @@ message RequestRemovePeeringNetworkRequest { // information, read Reserving zonal // resources. message Reservation { + // + enum ConfidentialComputeType { + // A value indicating that the enum field is not set. + UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE = 0; + + // Intel Trust Domain Extensions. + CONFIDENTIAL_COMPUTE_TYPE_TDX = 301241954; + + CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED = 42227601; + + } + // Specifies the deployment strategy for this reservation. enum DeploymentType { // A value indicating that the enum field is not set. @@ -67402,6 +67716,10 @@ message Reservation { // displays for reservations that are tied to a commitment. optional string commitment = 482134805; + // + // Check the ConfidentialComputeType enum for the list of possible values. + optional string confidential_compute_type = 386447257; + // Output only. [Output Only] Creation timestamp inRFC3339 // text format. optional string creation_timestamp = 30525366; @@ -69929,6 +70247,43 @@ message RolloutWaveDetailsOrchestratedWaveDetails { // Output only. Resources failed. optional int64 failed_resources_count = 391795315; + // Output only. Status of each location in the wave. Map keys (locations) must be + // specified like "us-east1" or "asia-west1-a". + map location_status = 19007420; + +} + +// Represents the status of a location in a wave. +message RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus { + // Output only. Location state of the wave. + enum State { + // A value indicating that the enum field is not set. + UNDEFINED_STATE = 0; + + // Work on the wave failed. + STATE_FAILED = 50857931; + + // Work on the wave is in progress. + STATE_IN_PROGRESS = 413162809; + + // Work on the wave is pending. + STATE_PENDING = 369985449; + + // Work on the wave was canceled or skipped. + STATE_SKIPPED = 515663170; + + // Work on the wave succeeded. + STATE_SUCCEEDED = 466911219; + + // Undefined default state. Should never be exposed to users. + STATE_UNSPECIFIED = 470755401; + + } + + // Output only. Location state of the wave. + // Check the State enum for the list of possible values. + optional string state = 109757585; + } // @@ -77624,10 +77979,11 @@ message Snapshot { optional CustomerEncryptionKey snapshot_encryption_key = 43334526; // Output only. [Output Only] The unique ID of the snapshot group that this snapshot - // belongs to. + // belongs to. The usage of snapshot group feature is restricted. optional string snapshot_group_id = 255004406; - // Output only. [Output only] The snapshot group that this snapshot belongs to. + // Output only. [Output only] The snapshot group that this snapshot belongs to. The usage + // of snapshot group feature is restricted. optional string snapshot_group_name = 246247846; // Indicates the type of the snapshot. @@ -77978,6 +78334,20 @@ message SnapshotSettingsStorageLocationSettingsStorageLocationPreference { } +// +message SnapshotUpdateKmsKeyRequest { + // Optional. The new KMS key to replace the current one on the snapshot. If empty, the + // snapshot will be re-encrypted using the primary version of the snapshot's + // current KMS key. + // + // The KMS key can be provided in the following formats: + // + // + // - projects/project_id/locations/region/keyRings/key_ring/cryptoKeys/key + optional string kms_key_name = 484373913; + +} + // message SnapshotsScopedList { // [Output Only] A list of snapshots contained in this scope. @@ -84163,6 +84533,148 @@ message UpdateInstanceRequest { } +// A request message for Disks.UpdateKmsKey. See the method description for details. +message UpdateKmsKeyDiskRequest { + // Name of the Disk resource, should conform to RFC1035. + string disk = 3083677 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + DiskUpdateKmsKeyRequest disk_update_kms_key_request_resource = 178025952 [(google.api.field_behavior) = REQUIRED]; + + // 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 name of the zone for this request. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + +// A request message for RegionDisks.UpdateKmsKey. See the method description for details. +message UpdateKmsKeyRegionDiskRequest { + // Name of the Disk resource, should conform to RFC1035. + string disk = 3083677 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // The name of the region for this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // The body resource for this request + RegionDiskUpdateKmsKeyRequest region_disk_update_kms_key_request_resource = 10015819 [(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). + optional string request_id = 37109963; + +} + +// A request message for RegionSnapshots.UpdateKmsKey. See the method description for details. +message UpdateKmsKeyRegionSnapshotRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region for this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // The body resource for this request + RegionSnapshotUpdateKmsKeyRequest region_snapshot_update_kms_key_request_resource = 279384818 [(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). + optional string request_id = 37109963; + + // Name of the snapshot resource to update. Should conform to RFC1035. + string snapshot = 284874180 [(google.api.field_behavior) = REQUIRED]; + +} + +// A request message for Snapshots.UpdateKmsKey. See the method description for details. +message UpdateKmsKeySnapshotRequest { + // 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 snapshot resource to update. Should conform to RFC1035. + string snapshot = 284874180 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + SnapshotUpdateKmsKeyRequest snapshot_update_kms_key_request_resource = 103145991 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for Licenses.Update. See the method description for details. message UpdateLicenseRequest { // The license name for this request. @@ -85209,6 +85721,9 @@ message UrlMap { // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; + // Output only. [Output Only] The status of the URL map. + optional UrlMapStatus status = 181260274; + // 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. // @@ -85244,12 +85759,29 @@ message UrlMapList { } +// Message representing the quota usage for a UrlMap. +message UrlMapQuotaUsage { + // Output only. The number of forwarding rules that uses this UrlMap. + optional int32 forwarding_rules = 315821365; + + // Output only. The number of quota units calculated for this UrlMap. + optional int64 units = 111433583; + +} + // message UrlMapReference { optional string url_map = 367020684; } +// [Output Only] The status of the URL map. +message UrlMapStatus { + // Output only. Summary of quota usage for given UrlMap. + optional UrlMapQuotaUsage quota_usage = 238511386; + +} + // Message for the expected URL mappings. message UrlMapTest { // Description of this test case. @@ -85315,6 +85847,9 @@ message UrlMapValidationResult { // If false, 'loadErrors' indicates the reasons. optional bool load_succeeded = 128326216; + // Output only. Summary of quota usage for given UrlMap. + optional UrlMapQuotaUsage quota_usage = 238511386; + repeated TestFailure test_failures = 505934134; // If successfully loaded, this field indicates whether the test passed. @@ -88617,6 +89152,17 @@ service Disks { option (google.cloud.operation_service) = "ZoneOperations"; } + // Rotates the customer-managed + // encryption key to the latest version for the specified persistent disk. + rpc UpdateKmsKey(UpdateKmsKeyDiskRequest) returns (Operation) { + option (google.api.http) = { + body: "disk_update_kms_key_request_resource" + post: "/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/updateKmsKey" + }; + option (google.api.method_signature) = "project,zone,disk,disk_update_kms_key_request_resource"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + } // The ExternalVpnGateways API. @@ -94385,6 +94931,15 @@ service RegionCompositeHealthChecks { option (google.api.method_signature) = "project,region,composite_health_check"; } + // Gets the most recent health check results for this + // regional CompositeHealthCheck. + rpc GetHealth(GetHealthRegionCompositeHealthCheckRequest) returns (CompositeHealthCheckHealth) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/regions/{region}/compositeHealthChecks/{composite_health_check}/getHealth" + }; + 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) { @@ -94671,6 +95226,17 @@ service RegionDisks { option (google.cloud.operation_service) = "RegionOperations"; } + // Rotates the customer-managed + // encryption key to the latest version for the specified persistent disk. + rpc UpdateKmsKey(UpdateKmsKeyRegionDiskRequest) returns (Operation) { + option (google.api.http) = { + body: "region_disk_update_kms_key_request_resource" + post: "/compute/beta/projects/{project}/regions/{region}/disks/{disk}/updateKmsKey" + }; + option (google.api.method_signature) = "project,region,disk,region_disk_update_kms_key_request_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + } // The RegionHealthAggregationPolicies API. @@ -94955,6 +95521,15 @@ service RegionHealthSources { option (google.api.method_signature) = "project,region,health_source"; } + // Gets the most recent health check results for this + // regional HealthSource. + rpc GetHealth(GetHealthRegionHealthSourceRequest) returns (HealthSourceHealth) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/regions/{region}/healthSources/{health_source}/getHealth" + }; + 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. rpc Insert(InsertRegionHealthSourceRequest) returns (Operation) { @@ -96680,6 +97255,17 @@ service RegionSnapshots { option (google.api.method_signature) = "project,region,resource,test_permissions_request_resource"; } + // Rotates the customer-managed + // encryption key to the latest version for the specified snapshot. + rpc UpdateKmsKey(UpdateKmsKeyRegionSnapshotRequest) returns (Operation) { + option (google.api.http) = { + body: "region_snapshot_update_kms_key_request_resource" + post: "/compute/beta/projects/{project}/regions/{region}/snapshots/{snapshot}/updateKmsKey" + }; + option (google.api.method_signature) = "project,region,snapshot,region_snapshot_update_kms_key_request_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + } // The RegionSslCertificates API. @@ -98461,6 +99047,17 @@ service Snapshots { option (google.api.method_signature) = "project,resource,test_permissions_request_resource"; } + // Rotates the customer-managed + // encryption key to the latest version for the specified snapshot. + rpc UpdateKmsKey(UpdateKmsKeySnapshotRequest) returns (Operation) { + option (google.api.http) = { + body: "snapshot_update_kms_key_request_resource" + post: "/compute/beta/projects/{project}/global/snapshots/{snapshot}/updateKmsKey" + }; + option (google.api.method_signature) = "project,snapshot,snapshot_update_kms_key_request_resource"; + option (google.cloud.operation_service) = "GlobalOperations"; + } + } // The SslCertificates API. diff --git a/packages/google-cloud-compute/protos/protos.d.ts b/packages/google-cloud-compute/protos/protos.d.ts index 626487889896..47fdf819c00c 100644 --- a/packages/google-cloud-compute/protos/protos.d.ts +++ b/packages/google-cloud-compute/protos/protos.d.ts @@ -5534,6 +5534,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.v1.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.v1.IAggregatedListBackendBucketsRequest): google.cloud.compute.v1.AggregatedListBackendBucketsRequest; + + /** + * Encodes the specified AggregatedListBackendBucketsRequest message. Does not implicitly {@link google.cloud.compute.v1.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.v1.IAggregatedListBackendBucketsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AggregatedListBackendBucketsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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 { @@ -16638,6 +16777,15 @@ export namespace google { /** Backend maxConnectionsPerInstance */ maxConnectionsPerInstance?: (number|null); + /** Backend maxInFlightRequests */ + maxInFlightRequests?: (number|null); + + /** Backend maxInFlightRequestsPerEndpoint */ + maxInFlightRequestsPerEndpoint?: (number|null); + + /** Backend maxInFlightRequestsPerInstance */ + maxInFlightRequestsPerInstance?: (number|null); + /** Backend maxRate */ maxRate?: (number|null); @@ -16655,6 +16803,9 @@ export namespace google { /** Backend preference */ preference?: (string|null); + + /** Backend trafficDuration */ + trafficDuration?: (string|null); } /** Represents a Backend. */ @@ -16693,6 +16844,15 @@ export namespace google { /** Backend maxConnectionsPerInstance. */ public maxConnectionsPerInstance?: (number|null); + /** Backend maxInFlightRequests. */ + public maxInFlightRequests?: (number|null); + + /** Backend maxInFlightRequestsPerEndpoint. */ + public maxInFlightRequestsPerEndpoint?: (number|null); + + /** Backend maxInFlightRequestsPerInstance. */ + public maxInFlightRequestsPerInstance?: (number|null); + /** Backend maxRate. */ public maxRate?: (number|null); @@ -16711,6 +16871,9 @@ export namespace google { /** Backend preference. */ public preference?: (string|null); + /** Backend trafficDuration. */ + public trafficDuration?: (string|null); + /** * Creates a new Backend instance using the specified properties. * @param [properties] Properties to set @@ -16796,6 +16959,7 @@ export namespace google { UNDEFINED_BALANCING_MODE = 0, CONNECTION = 246311646, CUSTOM_METRICS = 331575765, + IN_FLIGHT = 190040266, RATE = 2508000, UTILIZATION = 157008386 } @@ -16807,6 +16971,14 @@ export namespace google { PREFERENCE_UNSPECIFIED = 496219571, PREFERRED = 418847841 } + + /** TrafficDuration enum. */ + enum TrafficDuration { + UNDEFINED_TRAFFIC_DURATION = 0, + LONG = 2342524, + SHORT = 78875740, + TRAFFIC_DURATION_UNSPECIFIED = 265201166 + } } /** Properties of a BackendBackendOrchestrationInfo. */ @@ -16948,6 +17120,9 @@ export namespace google { /** BackendBucket params */ params?: (google.cloud.compute.v1.IBackendBucketParams|null); + /** BackendBucket region */ + region?: (string|null); + /** BackendBucket selfLink */ selfLink?: (string|null); @@ -17003,6 +17178,9 @@ export namespace google { /** BackendBucket params. */ public params?: (google.cloud.compute.v1.IBackendBucketParams|null); + /** BackendBucket region. */ + public region?: (string|null); + /** BackendBucket selfLink. */ public selfLink?: (string|null); @@ -17099,10 +17277,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.v1.IBackendBucketsScopedList }|null); + + /** BackendBucketAggregatedList kind */ + kind?: (string|null); + + /** BackendBucketAggregatedList nextPageToken */ + nextPageToken?: (string|null); + + /** BackendBucketAggregatedList selfLink */ + selfLink?: (string|null); + + /** BackendBucketAggregatedList warning */ + warning?: (google.cloud.compute.v1.IWarning|null); + } + + /** Represents a BackendBucketAggregatedList. */ + class BackendBucketAggregatedList implements IBackendBucketAggregatedList { + + /** + * Constructs a new BackendBucketAggregatedList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IBackendBucketAggregatedList); + + /** BackendBucketAggregatedList id. */ + public id?: (string|null); + + /** BackendBucketAggregatedList items. */ + public items: { [k: string]: google.cloud.compute.v1.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.v1.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.v1.IBackendBucketAggregatedList): google.cloud.compute.v1.BackendBucketAggregatedList; + + /** + * Encodes the specified BackendBucketAggregatedList message. Does not implicitly {@link google.cloud.compute.v1.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.v1.IBackendBucketAggregatedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BackendBucketAggregatedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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 { @@ -17708,6 +18014,133 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a BackendBucketListUsable. */ + interface IBackendBucketListUsable { + + /** BackendBucketListUsable id */ + id?: (string|null); + + /** BackendBucketListUsable items */ + items?: (google.cloud.compute.v1.IBackendBucket[]|null); + + /** BackendBucketListUsable kind */ + kind?: (string|null); + + /** BackendBucketListUsable nextPageToken */ + nextPageToken?: (string|null); + + /** BackendBucketListUsable selfLink */ + selfLink?: (string|null); + + /** BackendBucketListUsable warning */ + warning?: (google.cloud.compute.v1.IWarning|null); + } + + /** Represents a BackendBucketListUsable. */ + class BackendBucketListUsable implements IBackendBucketListUsable { + + /** + * Constructs a new BackendBucketListUsable. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IBackendBucketListUsable); + + /** BackendBucketListUsable id. */ + public id?: (string|null); + + /** BackendBucketListUsable items. */ + public items: google.cloud.compute.v1.IBackendBucket[]; + + /** BackendBucketListUsable kind. */ + public kind?: (string|null); + + /** BackendBucketListUsable nextPageToken. */ + public nextPageToken?: (string|null); + + /** BackendBucketListUsable selfLink. */ + public selfLink?: (string|null); + + /** BackendBucketListUsable warning. */ + public warning?: (google.cloud.compute.v1.IWarning|null); + + /** + * Creates a new BackendBucketListUsable instance using the specified properties. + * @param [properties] Properties to set + * @returns BackendBucketListUsable instance + */ + public static create(properties?: google.cloud.compute.v1.IBackendBucketListUsable): google.cloud.compute.v1.BackendBucketListUsable; + + /** + * Encodes the specified BackendBucketListUsable message. Does not implicitly {@link google.cloud.compute.v1.BackendBucketListUsable.verify|verify} messages. + * @param message BackendBucketListUsable message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IBackendBucketListUsable, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BackendBucketListUsable message, length delimited. Does not implicitly {@link google.cloud.compute.v1.BackendBucketListUsable.verify|verify} messages. + * @param message BackendBucketListUsable message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IBackendBucketListUsable, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BackendBucketListUsable message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BackendBucketListUsable + * @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.v1.BackendBucketListUsable; + + /** + * Decodes a BackendBucketListUsable message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BackendBucketListUsable + * @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.v1.BackendBucketListUsable; + + /** + * Verifies a BackendBucketListUsable 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 BackendBucketListUsable message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BackendBucketListUsable + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.BackendBucketListUsable; + + /** + * Creates a plain object from a BackendBucketListUsable message. Also converts values to other types if specified. + * @param message BackendBucketListUsable + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.BackendBucketListUsable, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BackendBucketListUsable to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BackendBucketListUsable + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a BackendBucketParams. */ interface IBackendBucketParams { @@ -17902,6 +18335,109 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a BackendBucketsScopedList. */ + interface IBackendBucketsScopedList { + + /** BackendBucketsScopedList backendBuckets */ + backendBuckets?: (google.cloud.compute.v1.IBackendBucket[]|null); + + /** BackendBucketsScopedList warning */ + warning?: (google.cloud.compute.v1.IWarning|null); + } + + /** Represents a BackendBucketsScopedList. */ + class BackendBucketsScopedList implements IBackendBucketsScopedList { + + /** + * Constructs a new BackendBucketsScopedList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IBackendBucketsScopedList); + + /** BackendBucketsScopedList backendBuckets. */ + public backendBuckets: google.cloud.compute.v1.IBackendBucket[]; + + /** BackendBucketsScopedList warning. */ + public warning?: (google.cloud.compute.v1.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.v1.IBackendBucketsScopedList): google.cloud.compute.v1.BackendBucketsScopedList; + + /** + * Encodes the specified BackendBucketsScopedList message. Does not implicitly {@link google.cloud.compute.v1.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.v1.IBackendBucketsScopedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BackendBucketsScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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 { @@ -22714,6 +23250,12 @@ export namespace google { /** Properties of a BulkInsertDiskResource. */ interface IBulkInsertDiskResource { + /** BulkInsertDiskResource instantSnapshotGroupParameters */ + instantSnapshotGroupParameters?: (google.cloud.compute.v1.IInstantSnapshotGroupParameters|null); + + /** BulkInsertDiskResource snapshotGroupParameters */ + snapshotGroupParameters?: (google.cloud.compute.v1.ISnapshotGroupParameters|null); + /** BulkInsertDiskResource sourceConsistencyGroupPolicy */ sourceConsistencyGroupPolicy?: (string|null); } @@ -22727,6 +23269,12 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1.IBulkInsertDiskResource); + /** BulkInsertDiskResource instantSnapshotGroupParameters. */ + public instantSnapshotGroupParameters?: (google.cloud.compute.v1.IInstantSnapshotGroupParameters|null); + + /** BulkInsertDiskResource snapshotGroupParameters. */ + public snapshotGroupParameters?: (google.cloud.compute.v1.ISnapshotGroupParameters|null); + /** BulkInsertDiskResource sourceConsistencyGroupPolicy. */ public sourceConsistencyGroupPolicy?: (string|null); @@ -24830,6 +25378,127 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a CancelRegionInstanceGroupManagerResizeRequestRequest. */ + interface ICancelRegionInstanceGroupManagerResizeRequestRequest { + + /** CancelRegionInstanceGroupManagerResizeRequestRequest instanceGroupManager */ + instanceGroupManager?: (string|null); + + /** CancelRegionInstanceGroupManagerResizeRequestRequest project */ + project?: (string|null); + + /** CancelRegionInstanceGroupManagerResizeRequestRequest region */ + region?: (string|null); + + /** CancelRegionInstanceGroupManagerResizeRequestRequest requestId */ + requestId?: (string|null); + + /** CancelRegionInstanceGroupManagerResizeRequestRequest resizeRequest */ + resizeRequest?: (string|null); + } + + /** Represents a CancelRegionInstanceGroupManagerResizeRequestRequest. */ + class CancelRegionInstanceGroupManagerResizeRequestRequest implements ICancelRegionInstanceGroupManagerResizeRequestRequest { + + /** + * Constructs a new CancelRegionInstanceGroupManagerResizeRequestRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ICancelRegionInstanceGroupManagerResizeRequestRequest); + + /** CancelRegionInstanceGroupManagerResizeRequestRequest instanceGroupManager. */ + public instanceGroupManager: string; + + /** CancelRegionInstanceGroupManagerResizeRequestRequest project. */ + public project: string; + + /** CancelRegionInstanceGroupManagerResizeRequestRequest region. */ + public region: string; + + /** CancelRegionInstanceGroupManagerResizeRequestRequest requestId. */ + public requestId?: (string|null); + + /** CancelRegionInstanceGroupManagerResizeRequestRequest resizeRequest. */ + public resizeRequest: string; + + /** + * Creates a new CancelRegionInstanceGroupManagerResizeRequestRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CancelRegionInstanceGroupManagerResizeRequestRequest instance + */ + public static create(properties?: google.cloud.compute.v1.ICancelRegionInstanceGroupManagerResizeRequestRequest): google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest; + + /** + * Encodes the specified CancelRegionInstanceGroupManagerResizeRequestRequest message. Does not implicitly {@link google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest.verify|verify} messages. + * @param message CancelRegionInstanceGroupManagerResizeRequestRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ICancelRegionInstanceGroupManagerResizeRequestRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CancelRegionInstanceGroupManagerResizeRequestRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest.verify|verify} messages. + * @param message CancelRegionInstanceGroupManagerResizeRequestRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ICancelRegionInstanceGroupManagerResizeRequestRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CancelRegionInstanceGroupManagerResizeRequestRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CancelRegionInstanceGroupManagerResizeRequestRequest + * @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.v1.CancelRegionInstanceGroupManagerResizeRequestRequest; + + /** + * Decodes a CancelRegionInstanceGroupManagerResizeRequestRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CancelRegionInstanceGroupManagerResizeRequestRequest + * @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.v1.CancelRegionInstanceGroupManagerResizeRequestRequest; + + /** + * Verifies a CancelRegionInstanceGroupManagerResizeRequestRequest 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 CancelRegionInstanceGroupManagerResizeRequestRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CancelRegionInstanceGroupManagerResizeRequestRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest; + + /** + * Creates a plain object from a CancelRegionInstanceGroupManagerResizeRequestRequest message. Also converts values to other types if specified. + * @param message CancelRegionInstanceGroupManagerResizeRequestRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CancelRegionInstanceGroupManagerResizeRequestRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CancelRegionInstanceGroupManagerResizeRequestRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a CircuitBreakers. */ interface ICircuitBreakers { @@ -25335,6 +26004,9 @@ export namespace google { /** Commitment name */ name?: (string|null); + /** Commitment params */ + params?: (google.cloud.compute.v1.ICommitmentParams|null); + /** Commitment plan */ plan?: (string|null); @@ -25414,6 +26086,9 @@ export namespace google { /** Commitment name. */ public name?: (string|null); + /** Commitment params. */ + public params?: (google.cloud.compute.v1.ICommitmentParams|null); + /** Commitment plan. */ public plan?: (string|null); @@ -25858,6 +26533,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a CommitmentParams. */ + interface ICommitmentParams { + + /** CommitmentParams resourceManagerTags */ + resourceManagerTags?: ({ [k: string]: string }|null); + } + + /** Represents a CommitmentParams. */ + class CommitmentParams implements ICommitmentParams { + + /** + * Constructs a new CommitmentParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ICommitmentParams); + + /** CommitmentParams resourceManagerTags. */ + public resourceManagerTags: { [k: string]: string }; + + /** + * Creates a new CommitmentParams instance using the specified properties. + * @param [properties] Properties to set + * @returns CommitmentParams instance + */ + public static create(properties?: google.cloud.compute.v1.ICommitmentParams): google.cloud.compute.v1.CommitmentParams; + + /** + * Encodes the specified CommitmentParams message. Does not implicitly {@link google.cloud.compute.v1.CommitmentParams.verify|verify} messages. + * @param message CommitmentParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ICommitmentParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CommitmentParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1.CommitmentParams.verify|verify} messages. + * @param message CommitmentParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ICommitmentParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CommitmentParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CommitmentParams + * @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.v1.CommitmentParams; + + /** + * Decodes a CommitmentParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CommitmentParams + * @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.v1.CommitmentParams; + + /** + * Verifies a CommitmentParams 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 CommitmentParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CommitmentParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.CommitmentParams; + + /** + * Creates a plain object from a CommitmentParams message. Also converts values to other types if specified. + * @param message CommitmentParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.CommitmentParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CommitmentParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CommitmentParams + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a CommitmentResourceStatus. */ interface ICommitmentResourceStatus { @@ -26348,6 +27120,126 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a CompositeHealthCheckHealth. */ + interface ICompositeHealthCheckHealth { + + /** CompositeHealthCheckHealth healthSources */ + healthSources?: (google.cloud.compute.v1.ICompositeHealthChecksGetHealthResponseHealthSourceHealth[]|null); + + /** CompositeHealthCheckHealth healthState */ + healthState?: (string|null); + + /** CompositeHealthCheckHealth kind */ + kind?: (string|null); + } + + /** Represents a CompositeHealthCheckHealth. */ + class CompositeHealthCheckHealth implements ICompositeHealthCheckHealth { + + /** + * Constructs a new CompositeHealthCheckHealth. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ICompositeHealthCheckHealth); + + /** CompositeHealthCheckHealth healthSources. */ + public healthSources: google.cloud.compute.v1.ICompositeHealthChecksGetHealthResponseHealthSourceHealth[]; + + /** CompositeHealthCheckHealth healthState. */ + public healthState?: (string|null); + + /** CompositeHealthCheckHealth kind. */ + public kind?: (string|null); + + /** + * Creates a new CompositeHealthCheckHealth instance using the specified properties. + * @param [properties] Properties to set + * @returns CompositeHealthCheckHealth instance + */ + public static create(properties?: google.cloud.compute.v1.ICompositeHealthCheckHealth): google.cloud.compute.v1.CompositeHealthCheckHealth; + + /** + * Encodes the specified CompositeHealthCheckHealth message. Does not implicitly {@link google.cloud.compute.v1.CompositeHealthCheckHealth.verify|verify} messages. + * @param message CompositeHealthCheckHealth message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ICompositeHealthCheckHealth, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CompositeHealthCheckHealth message, length delimited. Does not implicitly {@link google.cloud.compute.v1.CompositeHealthCheckHealth.verify|verify} messages. + * @param message CompositeHealthCheckHealth message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ICompositeHealthCheckHealth, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompositeHealthCheckHealth message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompositeHealthCheckHealth + * @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.v1.CompositeHealthCheckHealth; + + /** + * Decodes a CompositeHealthCheckHealth message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CompositeHealthCheckHealth + * @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.v1.CompositeHealthCheckHealth; + + /** + * Verifies a CompositeHealthCheckHealth 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 CompositeHealthCheckHealth message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CompositeHealthCheckHealth + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.CompositeHealthCheckHealth; + + /** + * Creates a plain object from a CompositeHealthCheckHealth message. Also converts values to other types if specified. + * @param message CompositeHealthCheckHealth + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.CompositeHealthCheckHealth, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CompositeHealthCheckHealth to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CompositeHealthCheckHealth + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace CompositeHealthCheckHealth { + + /** HealthState enum. */ + enum HealthState { + UNDEFINED_HEALTH_STATE = 0, + HEALTHY = 439801213, + UNHEALTHY = 462118084, + UNKNOWN = 433141802 + } + } + /** Properties of a CompositeHealthCheckList. */ interface ICompositeHealthCheckList { @@ -26475,6 +27367,120 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a CompositeHealthChecksGetHealthResponseHealthSourceHealth. */ + interface ICompositeHealthChecksGetHealthResponseHealthSourceHealth { + + /** CompositeHealthChecksGetHealthResponseHealthSourceHealth healthState */ + healthState?: (string|null); + + /** CompositeHealthChecksGetHealthResponseHealthSourceHealth source */ + source?: (string|null); + } + + /** Represents a CompositeHealthChecksGetHealthResponseHealthSourceHealth. */ + class CompositeHealthChecksGetHealthResponseHealthSourceHealth implements ICompositeHealthChecksGetHealthResponseHealthSourceHealth { + + /** + * Constructs a new CompositeHealthChecksGetHealthResponseHealthSourceHealth. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ICompositeHealthChecksGetHealthResponseHealthSourceHealth); + + /** CompositeHealthChecksGetHealthResponseHealthSourceHealth healthState. */ + public healthState?: (string|null); + + /** CompositeHealthChecksGetHealthResponseHealthSourceHealth source. */ + public source?: (string|null); + + /** + * Creates a new CompositeHealthChecksGetHealthResponseHealthSourceHealth instance using the specified properties. + * @param [properties] Properties to set + * @returns CompositeHealthChecksGetHealthResponseHealthSourceHealth instance + */ + public static create(properties?: google.cloud.compute.v1.ICompositeHealthChecksGetHealthResponseHealthSourceHealth): google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth; + + /** + * Encodes the specified CompositeHealthChecksGetHealthResponseHealthSourceHealth message. Does not implicitly {@link google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth.verify|verify} messages. + * @param message CompositeHealthChecksGetHealthResponseHealthSourceHealth message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ICompositeHealthChecksGetHealthResponseHealthSourceHealth, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CompositeHealthChecksGetHealthResponseHealthSourceHealth message, length delimited. Does not implicitly {@link google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth.verify|verify} messages. + * @param message CompositeHealthChecksGetHealthResponseHealthSourceHealth message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ICompositeHealthChecksGetHealthResponseHealthSourceHealth, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompositeHealthChecksGetHealthResponseHealthSourceHealth message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @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.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth; + + /** + * Decodes a CompositeHealthChecksGetHealthResponseHealthSourceHealth message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @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.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth; + + /** + * Verifies a CompositeHealthChecksGetHealthResponseHealthSourceHealth 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 CompositeHealthChecksGetHealthResponseHealthSourceHealth message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CompositeHealthChecksGetHealthResponseHealthSourceHealth + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth; + + /** + * Creates a plain object from a CompositeHealthChecksGetHealthResponseHealthSourceHealth message. Also converts values to other types if specified. + * @param message CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CompositeHealthChecksGetHealthResponseHealthSourceHealth to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace CompositeHealthChecksGetHealthResponseHealthSourceHealth { + + /** HealthState enum. */ + enum HealthState { + UNDEFINED_HEALTH_STATE = 0, + HEALTHY = 439801213, + UNHEALTHY = 462118084, + UNKNOWN = 433141802 + } + } + /** Properties of a CompositeHealthChecksScopedList. */ interface ICompositeHealthChecksScopedList { @@ -31978,6 +32984,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a DeleteInstantSnapshotGroupRequest. */ + interface IDeleteInstantSnapshotGroupRequest { + + /** DeleteInstantSnapshotGroupRequest instantSnapshotGroup */ + instantSnapshotGroup?: (string|null); + + /** DeleteInstantSnapshotGroupRequest project */ + project?: (string|null); + + /** DeleteInstantSnapshotGroupRequest requestId */ + requestId?: (string|null); + + /** DeleteInstantSnapshotGroupRequest zone */ + zone?: (string|null); + } + + /** Represents a DeleteInstantSnapshotGroupRequest. */ + class DeleteInstantSnapshotGroupRequest implements IDeleteInstantSnapshotGroupRequest { + + /** + * Constructs a new DeleteInstantSnapshotGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IDeleteInstantSnapshotGroupRequest); + + /** DeleteInstantSnapshotGroupRequest instantSnapshotGroup. */ + public instantSnapshotGroup: string; + + /** DeleteInstantSnapshotGroupRequest project. */ + public project: string; + + /** DeleteInstantSnapshotGroupRequest requestId. */ + public requestId?: (string|null); + + /** DeleteInstantSnapshotGroupRequest zone. */ + public zone: string; + + /** + * Creates a new DeleteInstantSnapshotGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteInstantSnapshotGroupRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IDeleteInstantSnapshotGroupRequest): google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest; + + /** + * Encodes the specified DeleteInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest.verify|verify} messages. + * @param message DeleteInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IDeleteInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest.verify|verify} messages. + * @param message DeleteInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IDeleteInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteInstantSnapshotGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteInstantSnapshotGroupRequest + * @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.v1.DeleteInstantSnapshotGroupRequest; + + /** + * Decodes a DeleteInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteInstantSnapshotGroupRequest + * @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.v1.DeleteInstantSnapshotGroupRequest; + + /** + * Verifies a DeleteInstantSnapshotGroupRequest 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 DeleteInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteInstantSnapshotGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest; + + /** + * Creates a plain object from a DeleteInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @param message DeleteInstantSnapshotGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteInstantSnapshotGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteInstantSnapshotGroupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a DeleteInstantSnapshotRequest. */ interface IDeleteInstantSnapshotRequest { @@ -34575,6 +35696,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a DeleteRegionBackendBucketRequest. */ + interface IDeleteRegionBackendBucketRequest { + + /** DeleteRegionBackendBucketRequest backendBucket */ + backendBucket?: (string|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.v1.IDeleteRegionBackendBucketRequest); + + /** DeleteRegionBackendBucketRequest backendBucket. */ + public backendBucket: string; + + /** 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.v1.IDeleteRegionBackendBucketRequest): google.cloud.compute.v1.DeleteRegionBackendBucketRequest; + + /** + * Encodes the specified DeleteRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1.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.v1.IDeleteRegionBackendBucketRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteRegionBackendBucketRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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 { @@ -35495,6 +36731,127 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a DeleteRegionInstanceGroupManagerResizeRequestRequest. */ + interface IDeleteRegionInstanceGroupManagerResizeRequestRequest { + + /** DeleteRegionInstanceGroupManagerResizeRequestRequest instanceGroupManager */ + instanceGroupManager?: (string|null); + + /** DeleteRegionInstanceGroupManagerResizeRequestRequest project */ + project?: (string|null); + + /** DeleteRegionInstanceGroupManagerResizeRequestRequest region */ + region?: (string|null); + + /** DeleteRegionInstanceGroupManagerResizeRequestRequest requestId */ + requestId?: (string|null); + + /** DeleteRegionInstanceGroupManagerResizeRequestRequest resizeRequest */ + resizeRequest?: (string|null); + } + + /** Represents a DeleteRegionInstanceGroupManagerResizeRequestRequest. */ + class DeleteRegionInstanceGroupManagerResizeRequestRequest implements IDeleteRegionInstanceGroupManagerResizeRequestRequest { + + /** + * Constructs a new DeleteRegionInstanceGroupManagerResizeRequestRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IDeleteRegionInstanceGroupManagerResizeRequestRequest); + + /** DeleteRegionInstanceGroupManagerResizeRequestRequest instanceGroupManager. */ + public instanceGroupManager: string; + + /** DeleteRegionInstanceGroupManagerResizeRequestRequest project. */ + public project: string; + + /** DeleteRegionInstanceGroupManagerResizeRequestRequest region. */ + public region: string; + + /** DeleteRegionInstanceGroupManagerResizeRequestRequest requestId. */ + public requestId?: (string|null); + + /** DeleteRegionInstanceGroupManagerResizeRequestRequest resizeRequest. */ + public resizeRequest: string; + + /** + * Creates a new DeleteRegionInstanceGroupManagerResizeRequestRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteRegionInstanceGroupManagerResizeRequestRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IDeleteRegionInstanceGroupManagerResizeRequestRequest): google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest; + + /** + * Encodes the specified DeleteRegionInstanceGroupManagerResizeRequestRequest message. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest.verify|verify} messages. + * @param message DeleteRegionInstanceGroupManagerResizeRequestRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IDeleteRegionInstanceGroupManagerResizeRequestRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteRegionInstanceGroupManagerResizeRequestRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest.verify|verify} messages. + * @param message DeleteRegionInstanceGroupManagerResizeRequestRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IDeleteRegionInstanceGroupManagerResizeRequestRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteRegionInstanceGroupManagerResizeRequestRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteRegionInstanceGroupManagerResizeRequestRequest + * @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.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest; + + /** + * Decodes a DeleteRegionInstanceGroupManagerResizeRequestRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteRegionInstanceGroupManagerResizeRequestRequest + * @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.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest; + + /** + * Verifies a DeleteRegionInstanceGroupManagerResizeRequestRequest 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 DeleteRegionInstanceGroupManagerResizeRequestRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteRegionInstanceGroupManagerResizeRequestRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest; + + /** + * Creates a plain object from a DeleteRegionInstanceGroupManagerResizeRequestRequest message. Also converts values to other types if specified. + * @param message DeleteRegionInstanceGroupManagerResizeRequestRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteRegionInstanceGroupManagerResizeRequestRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteRegionInstanceGroupManagerResizeRequestRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a DeleteRegionInstanceTemplateRequest. */ interface IDeleteRegionInstanceTemplateRequest { @@ -35610,6 +36967,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a DeleteRegionInstantSnapshotGroupRequest. */ + interface IDeleteRegionInstantSnapshotGroupRequest { + + /** DeleteRegionInstantSnapshotGroupRequest instantSnapshotGroup */ + instantSnapshotGroup?: (string|null); + + /** DeleteRegionInstantSnapshotGroupRequest project */ + project?: (string|null); + + /** DeleteRegionInstantSnapshotGroupRequest region */ + region?: (string|null); + + /** DeleteRegionInstantSnapshotGroupRequest requestId */ + requestId?: (string|null); + } + + /** Represents a DeleteRegionInstantSnapshotGroupRequest. */ + class DeleteRegionInstantSnapshotGroupRequest implements IDeleteRegionInstantSnapshotGroupRequest { + + /** + * Constructs a new DeleteRegionInstantSnapshotGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IDeleteRegionInstantSnapshotGroupRequest); + + /** DeleteRegionInstantSnapshotGroupRequest instantSnapshotGroup. */ + public instantSnapshotGroup: string; + + /** DeleteRegionInstantSnapshotGroupRequest project. */ + public project: string; + + /** DeleteRegionInstantSnapshotGroupRequest region. */ + public region: string; + + /** DeleteRegionInstantSnapshotGroupRequest requestId. */ + public requestId?: (string|null); + + /** + * Creates a new DeleteRegionInstantSnapshotGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteRegionInstantSnapshotGroupRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IDeleteRegionInstantSnapshotGroupRequest): google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest; + + /** + * Encodes the specified DeleteRegionInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @param message DeleteRegionInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IDeleteRegionInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteRegionInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @param message DeleteRegionInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IDeleteRegionInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteRegionInstantSnapshotGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteRegionInstantSnapshotGroupRequest + * @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.v1.DeleteRegionInstantSnapshotGroupRequest; + + /** + * Decodes a DeleteRegionInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteRegionInstantSnapshotGroupRequest + * @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.v1.DeleteRegionInstantSnapshotGroupRequest; + + /** + * Verifies a DeleteRegionInstantSnapshotGroupRequest 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 DeleteRegionInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteRegionInstantSnapshotGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest; + + /** + * Creates a plain object from a DeleteRegionInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @param message DeleteRegionInstantSnapshotGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteRegionInstantSnapshotGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteRegionInstantSnapshotGroupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a DeleteRegionInstantSnapshotRequest. */ interface IDeleteRegionInstantSnapshotRequest { @@ -36385,6 +37857,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a DeleteRegionSnapshotRequest. */ + interface IDeleteRegionSnapshotRequest { + + /** DeleteRegionSnapshotRequest project */ + project?: (string|null); + + /** DeleteRegionSnapshotRequest region */ + region?: (string|null); + + /** DeleteRegionSnapshotRequest requestId */ + requestId?: (string|null); + + /** DeleteRegionSnapshotRequest snapshot */ + snapshot?: (string|null); + } + + /** Represents a DeleteRegionSnapshotRequest. */ + class DeleteRegionSnapshotRequest implements IDeleteRegionSnapshotRequest { + + /** + * Constructs a new DeleteRegionSnapshotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IDeleteRegionSnapshotRequest); + + /** DeleteRegionSnapshotRequest project. */ + public project: string; + + /** DeleteRegionSnapshotRequest region. */ + public region: string; + + /** DeleteRegionSnapshotRequest requestId. */ + public requestId?: (string|null); + + /** DeleteRegionSnapshotRequest snapshot. */ + public snapshot: string; + + /** + * Creates a new DeleteRegionSnapshotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteRegionSnapshotRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IDeleteRegionSnapshotRequest): google.cloud.compute.v1.DeleteRegionSnapshotRequest; + + /** + * Encodes the specified DeleteRegionSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionSnapshotRequest.verify|verify} messages. + * @param message DeleteRegionSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IDeleteRegionSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteRegionSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionSnapshotRequest.verify|verify} messages. + * @param message DeleteRegionSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IDeleteRegionSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteRegionSnapshotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteRegionSnapshotRequest + * @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.v1.DeleteRegionSnapshotRequest; + + /** + * Decodes a DeleteRegionSnapshotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteRegionSnapshotRequest + * @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.v1.DeleteRegionSnapshotRequest; + + /** + * Verifies a DeleteRegionSnapshotRequest 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 DeleteRegionSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteRegionSnapshotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.DeleteRegionSnapshotRequest; + + /** + * Creates a plain object from a DeleteRegionSnapshotRequest message. Also converts values to other types if specified. + * @param message DeleteRegionSnapshotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.DeleteRegionSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteRegionSnapshotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteRegionSnapshotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a DeleteRegionSslCertificateRequest. */ interface IDeleteRegionSslCertificateRequest { @@ -40205,6 +41792,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.v1.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.v1.IDeleteZoneVmExtensionPolicyRequest): google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest; + + /** + * Encodes the specified DeleteZoneVmExtensionPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1.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.v1.IDeleteZoneVmExtensionPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteZoneVmExtensionPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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 { @@ -43203,6 +44905,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a DiskUpdateKmsKeyRequest. */ + interface IDiskUpdateKmsKeyRequest { + + /** DiskUpdateKmsKeyRequest kmsKeyName */ + kmsKeyName?: (string|null); + } + + /** Represents a DiskUpdateKmsKeyRequest. */ + class DiskUpdateKmsKeyRequest implements IDiskUpdateKmsKeyRequest { + + /** + * Constructs a new DiskUpdateKmsKeyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IDiskUpdateKmsKeyRequest); + + /** DiskUpdateKmsKeyRequest kmsKeyName. */ + public kmsKeyName?: (string|null); + + /** + * Creates a new DiskUpdateKmsKeyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DiskUpdateKmsKeyRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IDiskUpdateKmsKeyRequest): google.cloud.compute.v1.DiskUpdateKmsKeyRequest; + + /** + * Encodes the specified DiskUpdateKmsKeyRequest message. Does not implicitly {@link google.cloud.compute.v1.DiskUpdateKmsKeyRequest.verify|verify} messages. + * @param message DiskUpdateKmsKeyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IDiskUpdateKmsKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DiskUpdateKmsKeyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.DiskUpdateKmsKeyRequest.verify|verify} messages. + * @param message DiskUpdateKmsKeyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IDiskUpdateKmsKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DiskUpdateKmsKeyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DiskUpdateKmsKeyRequest + * @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.v1.DiskUpdateKmsKeyRequest; + + /** + * Decodes a DiskUpdateKmsKeyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DiskUpdateKmsKeyRequest + * @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.v1.DiskUpdateKmsKeyRequest; + + /** + * Verifies a DiskUpdateKmsKeyRequest 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 DiskUpdateKmsKeyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DiskUpdateKmsKeyRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.DiskUpdateKmsKeyRequest; + + /** + * Creates a plain object from a DiskUpdateKmsKeyRequest message. Also converts values to other types if specified. + * @param message DiskUpdateKmsKeyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.DiskUpdateKmsKeyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DiskUpdateKmsKeyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DiskUpdateKmsKeyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a DisksAddResourcePoliciesRequest. */ interface IDisksAddResourcePoliciesRequest { @@ -48991,6 +50790,9 @@ export namespace google { /** FutureReservation commitmentInfo */ commitmentInfo?: (google.cloud.compute.v1.IFutureReservationCommitmentInfo|null); + /** FutureReservation confidentialComputeType */ + confidentialComputeType?: (string|null); + /** FutureReservation creationTimestamp */ creationTimestamp?: (string|null); @@ -49015,6 +50817,9 @@ export namespace google { /** FutureReservation namePrefix */ namePrefix?: (string|null); + /** FutureReservation params */ + params?: (google.cloud.compute.v1.IFutureReservationParams|null); + /** FutureReservation planningStatus */ planningStatus?: (string|null); @@ -49076,6 +50881,9 @@ export namespace google { /** FutureReservation commitmentInfo. */ public commitmentInfo?: (google.cloud.compute.v1.IFutureReservationCommitmentInfo|null); + /** FutureReservation confidentialComputeType. */ + public confidentialComputeType?: (string|null); + /** FutureReservation creationTimestamp. */ public creationTimestamp?: (string|null); @@ -49100,6 +50908,9 @@ export namespace google { /** FutureReservation namePrefix. */ public namePrefix?: (string|null); + /** FutureReservation params. */ + public params?: (google.cloud.compute.v1.IFutureReservationParams|null); + /** FutureReservation planningStatus. */ public planningStatus?: (string|null); @@ -49216,6 +51027,13 @@ export namespace google { namespace FutureReservation { + /** ConfidentialComputeType enum. */ + enum ConfidentialComputeType { + UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE = 0, + CONFIDENTIAL_COMPUTE_TYPE_TDX = 301241954, + CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED = 42227601 + } + /** DeploymentType enum. */ enum DeploymentType { UNDEFINED_DEPLOYMENT_TYPE = 0, @@ -49375,6 +51193,103 @@ export namespace google { } } + /** Properties of a FutureReservationParams. */ + interface IFutureReservationParams { + + /** FutureReservationParams resourceManagerTags */ + resourceManagerTags?: ({ [k: string]: string }|null); + } + + /** Represents a FutureReservationParams. */ + class FutureReservationParams implements IFutureReservationParams { + + /** + * Constructs a new FutureReservationParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IFutureReservationParams); + + /** FutureReservationParams resourceManagerTags. */ + public resourceManagerTags: { [k: string]: string }; + + /** + * Creates a new FutureReservationParams instance using the specified properties. + * @param [properties] Properties to set + * @returns FutureReservationParams instance + */ + public static create(properties?: google.cloud.compute.v1.IFutureReservationParams): google.cloud.compute.v1.FutureReservationParams; + + /** + * Encodes the specified FutureReservationParams message. Does not implicitly {@link google.cloud.compute.v1.FutureReservationParams.verify|verify} messages. + * @param message FutureReservationParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IFutureReservationParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FutureReservationParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1.FutureReservationParams.verify|verify} messages. + * @param message FutureReservationParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IFutureReservationParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FutureReservationParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FutureReservationParams + * @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.v1.FutureReservationParams; + + /** + * Decodes a FutureReservationParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FutureReservationParams + * @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.v1.FutureReservationParams; + + /** + * Verifies a FutureReservationParams 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 FutureReservationParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FutureReservationParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.FutureReservationParams; + + /** + * Creates a plain object from a FutureReservationParams message. Also converts values to other types if specified. + * @param message FutureReservationParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.FutureReservationParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FutureReservationParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FutureReservationParams + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a FutureReservationSpecificSKUProperties. */ interface IFutureReservationSpecificSKUProperties { @@ -55485,6 +57400,224 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetHealthRegionCompositeHealthCheckRequest. */ + interface IGetHealthRegionCompositeHealthCheckRequest { + + /** GetHealthRegionCompositeHealthCheckRequest compositeHealthCheck */ + compositeHealthCheck?: (string|null); + + /** GetHealthRegionCompositeHealthCheckRequest project */ + project?: (string|null); + + /** GetHealthRegionCompositeHealthCheckRequest region */ + region?: (string|null); + } + + /** Represents a GetHealthRegionCompositeHealthCheckRequest. */ + class GetHealthRegionCompositeHealthCheckRequest implements IGetHealthRegionCompositeHealthCheckRequest { + + /** + * Constructs a new GetHealthRegionCompositeHealthCheckRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IGetHealthRegionCompositeHealthCheckRequest); + + /** GetHealthRegionCompositeHealthCheckRequest compositeHealthCheck. */ + public compositeHealthCheck: string; + + /** GetHealthRegionCompositeHealthCheckRequest project. */ + public project: string; + + /** GetHealthRegionCompositeHealthCheckRequest region. */ + public region: string; + + /** + * Creates a new GetHealthRegionCompositeHealthCheckRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetHealthRegionCompositeHealthCheckRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IGetHealthRegionCompositeHealthCheckRequest): google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest; + + /** + * Encodes the specified GetHealthRegionCompositeHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest.verify|verify} messages. + * @param message GetHealthRegionCompositeHealthCheckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IGetHealthRegionCompositeHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetHealthRegionCompositeHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest.verify|verify} messages. + * @param message GetHealthRegionCompositeHealthCheckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IGetHealthRegionCompositeHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetHealthRegionCompositeHealthCheckRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetHealthRegionCompositeHealthCheckRequest + * @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.v1.GetHealthRegionCompositeHealthCheckRequest; + + /** + * Decodes a GetHealthRegionCompositeHealthCheckRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetHealthRegionCompositeHealthCheckRequest + * @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.v1.GetHealthRegionCompositeHealthCheckRequest; + + /** + * Verifies a GetHealthRegionCompositeHealthCheckRequest 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 GetHealthRegionCompositeHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetHealthRegionCompositeHealthCheckRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest; + + /** + * Creates a plain object from a GetHealthRegionCompositeHealthCheckRequest message. Also converts values to other types if specified. + * @param message GetHealthRegionCompositeHealthCheckRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetHealthRegionCompositeHealthCheckRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetHealthRegionCompositeHealthCheckRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetHealthRegionHealthSourceRequest. */ + interface IGetHealthRegionHealthSourceRequest { + + /** GetHealthRegionHealthSourceRequest healthSource */ + healthSource?: (string|null); + + /** GetHealthRegionHealthSourceRequest project */ + project?: (string|null); + + /** GetHealthRegionHealthSourceRequest region */ + region?: (string|null); + } + + /** Represents a GetHealthRegionHealthSourceRequest. */ + class GetHealthRegionHealthSourceRequest implements IGetHealthRegionHealthSourceRequest { + + /** + * Constructs a new GetHealthRegionHealthSourceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IGetHealthRegionHealthSourceRequest); + + /** GetHealthRegionHealthSourceRequest healthSource. */ + public healthSource: string; + + /** GetHealthRegionHealthSourceRequest project. */ + public project: string; + + /** GetHealthRegionHealthSourceRequest region. */ + public region: string; + + /** + * Creates a new GetHealthRegionHealthSourceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetHealthRegionHealthSourceRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IGetHealthRegionHealthSourceRequest): google.cloud.compute.v1.GetHealthRegionHealthSourceRequest; + + /** + * Encodes the specified GetHealthRegionHealthSourceRequest message. Does not implicitly {@link google.cloud.compute.v1.GetHealthRegionHealthSourceRequest.verify|verify} messages. + * @param message GetHealthRegionHealthSourceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IGetHealthRegionHealthSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetHealthRegionHealthSourceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetHealthRegionHealthSourceRequest.verify|verify} messages. + * @param message GetHealthRegionHealthSourceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IGetHealthRegionHealthSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetHealthRegionHealthSourceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetHealthRegionHealthSourceRequest + * @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.v1.GetHealthRegionHealthSourceRequest; + + /** + * Decodes a GetHealthRegionHealthSourceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetHealthRegionHealthSourceRequest + * @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.v1.GetHealthRegionHealthSourceRequest; + + /** + * Verifies a GetHealthRegionHealthSourceRequest 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 GetHealthRegionHealthSourceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetHealthRegionHealthSourceRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.GetHealthRegionHealthSourceRequest; + + /** + * Creates a plain object from a GetHealthRegionHealthSourceRequest message. Also converts values to other types if specified. + * @param message GetHealthRegionHealthSourceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.GetHealthRegionHealthSourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetHealthRegionHealthSourceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetHealthRegionHealthSourceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetHealthTargetPoolRequest. */ interface IGetHealthTargetPoolRequest { @@ -56369,6 +58502,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetIamPolicyInstantSnapshotGroupRequest. */ + interface IGetIamPolicyInstantSnapshotGroupRequest { + + /** GetIamPolicyInstantSnapshotGroupRequest optionsRequestedPolicyVersion */ + optionsRequestedPolicyVersion?: (number|null); + + /** GetIamPolicyInstantSnapshotGroupRequest project */ + project?: (string|null); + + /** GetIamPolicyInstantSnapshotGroupRequest resource */ + resource?: (string|null); + + /** GetIamPolicyInstantSnapshotGroupRequest zone */ + zone?: (string|null); + } + + /** Represents a GetIamPolicyInstantSnapshotGroupRequest. */ + class GetIamPolicyInstantSnapshotGroupRequest implements IGetIamPolicyInstantSnapshotGroupRequest { + + /** + * Constructs a new GetIamPolicyInstantSnapshotGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IGetIamPolicyInstantSnapshotGroupRequest); + + /** GetIamPolicyInstantSnapshotGroupRequest optionsRequestedPolicyVersion. */ + public optionsRequestedPolicyVersion?: (number|null); + + /** GetIamPolicyInstantSnapshotGroupRequest project. */ + public project: string; + + /** GetIamPolicyInstantSnapshotGroupRequest resource. */ + public resource: string; + + /** GetIamPolicyInstantSnapshotGroupRequest zone. */ + public zone: string; + + /** + * Creates a new GetIamPolicyInstantSnapshotGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetIamPolicyInstantSnapshotGroupRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IGetIamPolicyInstantSnapshotGroupRequest): google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest; + + /** + * Encodes the specified GetIamPolicyInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest.verify|verify} messages. + * @param message GetIamPolicyInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IGetIamPolicyInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetIamPolicyInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest.verify|verify} messages. + * @param message GetIamPolicyInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IGetIamPolicyInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetIamPolicyInstantSnapshotGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetIamPolicyInstantSnapshotGroupRequest + * @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.v1.GetIamPolicyInstantSnapshotGroupRequest; + + /** + * Decodes a GetIamPolicyInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetIamPolicyInstantSnapshotGroupRequest + * @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.v1.GetIamPolicyInstantSnapshotGroupRequest; + + /** + * Verifies a GetIamPolicyInstantSnapshotGroupRequest 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 GetIamPolicyInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetIamPolicyInstantSnapshotGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest; + + /** + * Creates a plain object from a GetIamPolicyInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @param message GetIamPolicyInstantSnapshotGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetIamPolicyInstantSnapshotGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetIamPolicyInstantSnapshotGroupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetIamPolicyInstantSnapshotRequest. */ interface IGetIamPolicyInstantSnapshotRequest { @@ -57374,6 +59622,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.v1.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.v1.IGetIamPolicyRegionBackendBucketRequest): google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest; + + /** + * Encodes the specified GetIamPolicyRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1.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.v1.IGetIamPolicyRegionBackendBucketRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetIamPolicyRegionBackendBucketRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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 { @@ -57604,6 +59967,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetIamPolicyRegionInstantSnapshotGroupRequest. */ + interface IGetIamPolicyRegionInstantSnapshotGroupRequest { + + /** GetIamPolicyRegionInstantSnapshotGroupRequest optionsRequestedPolicyVersion */ + optionsRequestedPolicyVersion?: (number|null); + + /** GetIamPolicyRegionInstantSnapshotGroupRequest project */ + project?: (string|null); + + /** GetIamPolicyRegionInstantSnapshotGroupRequest region */ + region?: (string|null); + + /** GetIamPolicyRegionInstantSnapshotGroupRequest resource */ + resource?: (string|null); + } + + /** Represents a GetIamPolicyRegionInstantSnapshotGroupRequest. */ + class GetIamPolicyRegionInstantSnapshotGroupRequest implements IGetIamPolicyRegionInstantSnapshotGroupRequest { + + /** + * Constructs a new GetIamPolicyRegionInstantSnapshotGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotGroupRequest); + + /** GetIamPolicyRegionInstantSnapshotGroupRequest optionsRequestedPolicyVersion. */ + public optionsRequestedPolicyVersion?: (number|null); + + /** GetIamPolicyRegionInstantSnapshotGroupRequest project. */ + public project: string; + + /** GetIamPolicyRegionInstantSnapshotGroupRequest region. */ + public region: string; + + /** GetIamPolicyRegionInstantSnapshotGroupRequest resource. */ + public resource: string; + + /** + * Creates a new GetIamPolicyRegionInstantSnapshotGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetIamPolicyRegionInstantSnapshotGroupRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotGroupRequest): google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest; + + /** + * Encodes the specified GetIamPolicyRegionInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @param message GetIamPolicyRegionInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetIamPolicyRegionInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @param message GetIamPolicyRegionInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetIamPolicyRegionInstantSnapshotGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetIamPolicyRegionInstantSnapshotGroupRequest + * @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.v1.GetIamPolicyRegionInstantSnapshotGroupRequest; + + /** + * Decodes a GetIamPolicyRegionInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetIamPolicyRegionInstantSnapshotGroupRequest + * @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.v1.GetIamPolicyRegionInstantSnapshotGroupRequest; + + /** + * Verifies a GetIamPolicyRegionInstantSnapshotGroupRequest 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 GetIamPolicyRegionInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetIamPolicyRegionInstantSnapshotGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest; + + /** + * Creates a plain object from a GetIamPolicyRegionInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @param message GetIamPolicyRegionInstantSnapshotGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetIamPolicyRegionInstantSnapshotGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetIamPolicyRegionInstantSnapshotGroupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetIamPolicyRegionInstantSnapshotRequest. */ interface IGetIamPolicyRegionInstantSnapshotRequest { @@ -57834,6 +60312,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetIamPolicyRegionSnapshotRequest. */ + interface IGetIamPolicyRegionSnapshotRequest { + + /** GetIamPolicyRegionSnapshotRequest optionsRequestedPolicyVersion */ + optionsRequestedPolicyVersion?: (number|null); + + /** GetIamPolicyRegionSnapshotRequest project */ + project?: (string|null); + + /** GetIamPolicyRegionSnapshotRequest region */ + region?: (string|null); + + /** GetIamPolicyRegionSnapshotRequest resource */ + resource?: (string|null); + } + + /** Represents a GetIamPolicyRegionSnapshotRequest. */ + class GetIamPolicyRegionSnapshotRequest implements IGetIamPolicyRegionSnapshotRequest { + + /** + * Constructs a new GetIamPolicyRegionSnapshotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IGetIamPolicyRegionSnapshotRequest); + + /** GetIamPolicyRegionSnapshotRequest optionsRequestedPolicyVersion. */ + public optionsRequestedPolicyVersion?: (number|null); + + /** GetIamPolicyRegionSnapshotRequest project. */ + public project: string; + + /** GetIamPolicyRegionSnapshotRequest region. */ + public region: string; + + /** GetIamPolicyRegionSnapshotRequest resource. */ + public resource: string; + + /** + * Creates a new GetIamPolicyRegionSnapshotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetIamPolicyRegionSnapshotRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IGetIamPolicyRegionSnapshotRequest): google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest; + + /** + * Encodes the specified GetIamPolicyRegionSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest.verify|verify} messages. + * @param message GetIamPolicyRegionSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IGetIamPolicyRegionSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetIamPolicyRegionSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest.verify|verify} messages. + * @param message GetIamPolicyRegionSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IGetIamPolicyRegionSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetIamPolicyRegionSnapshotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetIamPolicyRegionSnapshotRequest + * @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.v1.GetIamPolicyRegionSnapshotRequest; + + /** + * Decodes a GetIamPolicyRegionSnapshotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetIamPolicyRegionSnapshotRequest + * @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.v1.GetIamPolicyRegionSnapshotRequest; + + /** + * Verifies a GetIamPolicyRegionSnapshotRequest 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 GetIamPolicyRegionSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetIamPolicyRegionSnapshotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest; + + /** + * Creates a plain object from a GetIamPolicyRegionSnapshotRequest message. Also converts values to other types if specified. + * @param message GetIamPolicyRegionSnapshotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetIamPolicyRegionSnapshotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetIamPolicyRegionSnapshotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetIamPolicyReservationBlockRequest. */ interface IGetIamPolicyReservationBlockRequest { @@ -59620,6 +62213,115 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetInstantSnapshotGroupRequest. */ + interface IGetInstantSnapshotGroupRequest { + + /** GetInstantSnapshotGroupRequest instantSnapshotGroup */ + instantSnapshotGroup?: (string|null); + + /** GetInstantSnapshotGroupRequest project */ + project?: (string|null); + + /** GetInstantSnapshotGroupRequest zone */ + zone?: (string|null); + } + + /** Represents a GetInstantSnapshotGroupRequest. */ + class GetInstantSnapshotGroupRequest implements IGetInstantSnapshotGroupRequest { + + /** + * Constructs a new GetInstantSnapshotGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IGetInstantSnapshotGroupRequest); + + /** GetInstantSnapshotGroupRequest instantSnapshotGroup. */ + public instantSnapshotGroup: string; + + /** GetInstantSnapshotGroupRequest project. */ + public project: string; + + /** GetInstantSnapshotGroupRequest zone. */ + public zone: string; + + /** + * Creates a new GetInstantSnapshotGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetInstantSnapshotGroupRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IGetInstantSnapshotGroupRequest): google.cloud.compute.v1.GetInstantSnapshotGroupRequest; + + /** + * Encodes the specified GetInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1.GetInstantSnapshotGroupRequest.verify|verify} messages. + * @param message GetInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IGetInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetInstantSnapshotGroupRequest.verify|verify} messages. + * @param message GetInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IGetInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetInstantSnapshotGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetInstantSnapshotGroupRequest + * @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.v1.GetInstantSnapshotGroupRequest; + + /** + * Decodes a GetInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetInstantSnapshotGroupRequest + * @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.v1.GetInstantSnapshotGroupRequest; + + /** + * Verifies a GetInstantSnapshotGroupRequest 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 GetInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetInstantSnapshotGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.GetInstantSnapshotGroupRequest; + + /** + * Creates a plain object from a GetInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @param message GetInstantSnapshotGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.GetInstantSnapshotGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetInstantSnapshotGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetInstantSnapshotGroupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetInstantSnapshotRequest. */ interface IGetInstantSnapshotRequest { @@ -63139,6 +65841,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.v1.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.v1.IGetRegionBackendBucketRequest): google.cloud.compute.v1.GetRegionBackendBucketRequest; + + /** + * Encodes the specified GetRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1.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.v1.IGetRegionBackendBucketRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetRegionBackendBucketRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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 { @@ -64229,6 +67040,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetRegionInstanceGroupManagerResizeRequestRequest. */ + interface IGetRegionInstanceGroupManagerResizeRequestRequest { + + /** GetRegionInstanceGroupManagerResizeRequestRequest instanceGroupManager */ + instanceGroupManager?: (string|null); + + /** GetRegionInstanceGroupManagerResizeRequestRequest project */ + project?: (string|null); + + /** GetRegionInstanceGroupManagerResizeRequestRequest region */ + region?: (string|null); + + /** GetRegionInstanceGroupManagerResizeRequestRequest resizeRequest */ + resizeRequest?: (string|null); + } + + /** Represents a GetRegionInstanceGroupManagerResizeRequestRequest. */ + class GetRegionInstanceGroupManagerResizeRequestRequest implements IGetRegionInstanceGroupManagerResizeRequestRequest { + + /** + * Constructs a new GetRegionInstanceGroupManagerResizeRequestRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IGetRegionInstanceGroupManagerResizeRequestRequest); + + /** GetRegionInstanceGroupManagerResizeRequestRequest instanceGroupManager. */ + public instanceGroupManager: string; + + /** GetRegionInstanceGroupManagerResizeRequestRequest project. */ + public project: string; + + /** GetRegionInstanceGroupManagerResizeRequestRequest region. */ + public region: string; + + /** GetRegionInstanceGroupManagerResizeRequestRequest resizeRequest. */ + public resizeRequest: string; + + /** + * Creates a new GetRegionInstanceGroupManagerResizeRequestRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetRegionInstanceGroupManagerResizeRequestRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IGetRegionInstanceGroupManagerResizeRequestRequest): google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest; + + /** + * Encodes the specified GetRegionInstanceGroupManagerResizeRequestRequest message. Does not implicitly {@link google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest.verify|verify} messages. + * @param message GetRegionInstanceGroupManagerResizeRequestRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IGetRegionInstanceGroupManagerResizeRequestRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetRegionInstanceGroupManagerResizeRequestRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest.verify|verify} messages. + * @param message GetRegionInstanceGroupManagerResizeRequestRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IGetRegionInstanceGroupManagerResizeRequestRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetRegionInstanceGroupManagerResizeRequestRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetRegionInstanceGroupManagerResizeRequestRequest + * @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.v1.GetRegionInstanceGroupManagerResizeRequestRequest; + + /** + * Decodes a GetRegionInstanceGroupManagerResizeRequestRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetRegionInstanceGroupManagerResizeRequestRequest + * @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.v1.GetRegionInstanceGroupManagerResizeRequestRequest; + + /** + * Verifies a GetRegionInstanceGroupManagerResizeRequestRequest 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 GetRegionInstanceGroupManagerResizeRequestRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetRegionInstanceGroupManagerResizeRequestRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest; + + /** + * Creates a plain object from a GetRegionInstanceGroupManagerResizeRequestRequest message. Also converts values to other types if specified. + * @param message GetRegionInstanceGroupManagerResizeRequestRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetRegionInstanceGroupManagerResizeRequestRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetRegionInstanceGroupManagerResizeRequestRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetRegionInstanceGroupRequest. */ interface IGetRegionInstanceGroupRequest { @@ -64447,6 +67373,115 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetRegionInstantSnapshotGroupRequest. */ + interface IGetRegionInstantSnapshotGroupRequest { + + /** GetRegionInstantSnapshotGroupRequest instantSnapshotGroup */ + instantSnapshotGroup?: (string|null); + + /** GetRegionInstantSnapshotGroupRequest project */ + project?: (string|null); + + /** GetRegionInstantSnapshotGroupRequest region */ + region?: (string|null); + } + + /** Represents a GetRegionInstantSnapshotGroupRequest. */ + class GetRegionInstantSnapshotGroupRequest implements IGetRegionInstantSnapshotGroupRequest { + + /** + * Constructs a new GetRegionInstantSnapshotGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IGetRegionInstantSnapshotGroupRequest); + + /** GetRegionInstantSnapshotGroupRequest instantSnapshotGroup. */ + public instantSnapshotGroup: string; + + /** GetRegionInstantSnapshotGroupRequest project. */ + public project: string; + + /** GetRegionInstantSnapshotGroupRequest region. */ + public region: string; + + /** + * Creates a new GetRegionInstantSnapshotGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetRegionInstantSnapshotGroupRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IGetRegionInstantSnapshotGroupRequest): google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest; + + /** + * Encodes the specified GetRegionInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @param message GetRegionInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IGetRegionInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetRegionInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @param message GetRegionInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IGetRegionInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetRegionInstantSnapshotGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetRegionInstantSnapshotGroupRequest + * @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.v1.GetRegionInstantSnapshotGroupRequest; + + /** + * Decodes a GetRegionInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetRegionInstantSnapshotGroupRequest + * @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.v1.GetRegionInstantSnapshotGroupRequest; + + /** + * Verifies a GetRegionInstantSnapshotGroupRequest 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 GetRegionInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetRegionInstantSnapshotGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest; + + /** + * Creates a plain object from a GetRegionInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @param message GetRegionInstantSnapshotGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetRegionInstantSnapshotGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetRegionInstantSnapshotGroupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetRegionInstantSnapshotRequest. */ interface IGetRegionInstantSnapshotRequest { @@ -65204,6 +68239,218 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetRegionSnapshotRequest. */ + interface IGetRegionSnapshotRequest { + + /** GetRegionSnapshotRequest project */ + project?: (string|null); + + /** GetRegionSnapshotRequest region */ + region?: (string|null); + + /** GetRegionSnapshotRequest snapshot */ + snapshot?: (string|null); + } + + /** Represents a GetRegionSnapshotRequest. */ + class GetRegionSnapshotRequest implements IGetRegionSnapshotRequest { + + /** + * Constructs a new GetRegionSnapshotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IGetRegionSnapshotRequest); + + /** GetRegionSnapshotRequest project. */ + public project: string; + + /** GetRegionSnapshotRequest region. */ + public region: string; + + /** GetRegionSnapshotRequest snapshot. */ + public snapshot: string; + + /** + * Creates a new GetRegionSnapshotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetRegionSnapshotRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IGetRegionSnapshotRequest): google.cloud.compute.v1.GetRegionSnapshotRequest; + + /** + * Encodes the specified GetRegionSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.GetRegionSnapshotRequest.verify|verify} messages. + * @param message GetRegionSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IGetRegionSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetRegionSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetRegionSnapshotRequest.verify|verify} messages. + * @param message GetRegionSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IGetRegionSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetRegionSnapshotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetRegionSnapshotRequest + * @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.v1.GetRegionSnapshotRequest; + + /** + * Decodes a GetRegionSnapshotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetRegionSnapshotRequest + * @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.v1.GetRegionSnapshotRequest; + + /** + * Verifies a GetRegionSnapshotRequest 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 GetRegionSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetRegionSnapshotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.GetRegionSnapshotRequest; + + /** + * Creates a plain object from a GetRegionSnapshotRequest message. Also converts values to other types if specified. + * @param message GetRegionSnapshotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.GetRegionSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetRegionSnapshotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetRegionSnapshotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetRegionSnapshotSettingRequest. */ + interface IGetRegionSnapshotSettingRequest { + + /** GetRegionSnapshotSettingRequest project */ + project?: (string|null); + + /** GetRegionSnapshotSettingRequest region */ + region?: (string|null); + } + + /** Represents a GetRegionSnapshotSettingRequest. */ + class GetRegionSnapshotSettingRequest implements IGetRegionSnapshotSettingRequest { + + /** + * Constructs a new GetRegionSnapshotSettingRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IGetRegionSnapshotSettingRequest); + + /** GetRegionSnapshotSettingRequest project. */ + public project: string; + + /** GetRegionSnapshotSettingRequest region. */ + public region: string; + + /** + * Creates a new GetRegionSnapshotSettingRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetRegionSnapshotSettingRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IGetRegionSnapshotSettingRequest): google.cloud.compute.v1.GetRegionSnapshotSettingRequest; + + /** + * Encodes the specified GetRegionSnapshotSettingRequest message. Does not implicitly {@link google.cloud.compute.v1.GetRegionSnapshotSettingRequest.verify|verify} messages. + * @param message GetRegionSnapshotSettingRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IGetRegionSnapshotSettingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetRegionSnapshotSettingRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetRegionSnapshotSettingRequest.verify|verify} messages. + * @param message GetRegionSnapshotSettingRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IGetRegionSnapshotSettingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetRegionSnapshotSettingRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetRegionSnapshotSettingRequest + * @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.v1.GetRegionSnapshotSettingRequest; + + /** + * Decodes a GetRegionSnapshotSettingRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetRegionSnapshotSettingRequest + * @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.v1.GetRegionSnapshotSettingRequest; + + /** + * Verifies a GetRegionSnapshotSettingRequest 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 GetRegionSnapshotSettingRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetRegionSnapshotSettingRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.GetRegionSnapshotSettingRequest; + + /** + * Creates a plain object from a GetRegionSnapshotSettingRequest message. Also converts values to other types if specified. + * @param message GetRegionSnapshotSettingRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.GetRegionSnapshotSettingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetRegionSnapshotSettingRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetRegionSnapshotSettingRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetRegionSslCertificateRequest. */ interface IGetRegionSslCertificateRequest { @@ -71122,6 +74369,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.v1.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.v1.IGetZoneVmExtensionPolicyRequest): google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest; + + /** + * Encodes the specified GetZoneVmExtensionPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1.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.v1.IGetZoneVmExtensionPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetZoneVmExtensionPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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 { @@ -75060,6 +78416,126 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a HealthSourceHealth. */ + interface IHealthSourceHealth { + + /** HealthSourceHealth healthState */ + healthState?: (string|null); + + /** HealthSourceHealth kind */ + kind?: (string|null); + + /** HealthSourceHealth sources */ + sources?: (google.cloud.compute.v1.IHealthSourcesGetHealthResponseSourceInfo[]|null); + } + + /** Represents a HealthSourceHealth. */ + class HealthSourceHealth implements IHealthSourceHealth { + + /** + * Constructs a new HealthSourceHealth. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IHealthSourceHealth); + + /** HealthSourceHealth healthState. */ + public healthState?: (string|null); + + /** HealthSourceHealth kind. */ + public kind?: (string|null); + + /** HealthSourceHealth sources. */ + public sources: google.cloud.compute.v1.IHealthSourcesGetHealthResponseSourceInfo[]; + + /** + * Creates a new HealthSourceHealth instance using the specified properties. + * @param [properties] Properties to set + * @returns HealthSourceHealth instance + */ + public static create(properties?: google.cloud.compute.v1.IHealthSourceHealth): google.cloud.compute.v1.HealthSourceHealth; + + /** + * Encodes the specified HealthSourceHealth message. Does not implicitly {@link google.cloud.compute.v1.HealthSourceHealth.verify|verify} messages. + * @param message HealthSourceHealth message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IHealthSourceHealth, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HealthSourceHealth message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthSourceHealth.verify|verify} messages. + * @param message HealthSourceHealth message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IHealthSourceHealth, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HealthSourceHealth message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HealthSourceHealth + * @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.v1.HealthSourceHealth; + + /** + * Decodes a HealthSourceHealth message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HealthSourceHealth + * @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.v1.HealthSourceHealth; + + /** + * Verifies a HealthSourceHealth 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 HealthSourceHealth message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HealthSourceHealth + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.HealthSourceHealth; + + /** + * Creates a plain object from a HealthSourceHealth message. Also converts values to other types if specified. + * @param message HealthSourceHealth + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.HealthSourceHealth, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HealthSourceHealth to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HealthSourceHealth + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace HealthSourceHealth { + + /** HealthState enum. */ + enum HealthState { + UNDEFINED_HEALTH_STATE = 0, + HEALTHY = 439801213, + UNHEALTHY = 462118084, + UNKNOWN = 433141802 + } + } + /** Properties of a HealthSourceList. */ interface IHealthSourceList { @@ -75187,6 +78663,224 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a HealthSourcesGetHealthResponseSourceInfo. */ + interface IHealthSourcesGetHealthResponseSourceInfo { + + /** HealthSourcesGetHealthResponseSourceInfo backends */ + backends?: (google.cloud.compute.v1.IHealthSourcesGetHealthResponseSourceInfoBackendInfo[]|null); + + /** HealthSourcesGetHealthResponseSourceInfo forwardingRule */ + forwardingRule?: (string|null); + + /** HealthSourcesGetHealthResponseSourceInfo source */ + source?: (string|null); + } + + /** Represents a HealthSourcesGetHealthResponseSourceInfo. */ + class HealthSourcesGetHealthResponseSourceInfo implements IHealthSourcesGetHealthResponseSourceInfo { + + /** + * Constructs a new HealthSourcesGetHealthResponseSourceInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IHealthSourcesGetHealthResponseSourceInfo); + + /** HealthSourcesGetHealthResponseSourceInfo backends. */ + public backends: google.cloud.compute.v1.IHealthSourcesGetHealthResponseSourceInfoBackendInfo[]; + + /** HealthSourcesGetHealthResponseSourceInfo forwardingRule. */ + public forwardingRule?: (string|null); + + /** HealthSourcesGetHealthResponseSourceInfo source. */ + public source?: (string|null); + + /** + * Creates a new HealthSourcesGetHealthResponseSourceInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns HealthSourcesGetHealthResponseSourceInfo instance + */ + public static create(properties?: google.cloud.compute.v1.IHealthSourcesGetHealthResponseSourceInfo): google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo; + + /** + * Encodes the specified HealthSourcesGetHealthResponseSourceInfo message. Does not implicitly {@link google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo.verify|verify} messages. + * @param message HealthSourcesGetHealthResponseSourceInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IHealthSourcesGetHealthResponseSourceInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HealthSourcesGetHealthResponseSourceInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo.verify|verify} messages. + * @param message HealthSourcesGetHealthResponseSourceInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IHealthSourcesGetHealthResponseSourceInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HealthSourcesGetHealthResponseSourceInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HealthSourcesGetHealthResponseSourceInfo + * @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.v1.HealthSourcesGetHealthResponseSourceInfo; + + /** + * Decodes a HealthSourcesGetHealthResponseSourceInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HealthSourcesGetHealthResponseSourceInfo + * @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.v1.HealthSourcesGetHealthResponseSourceInfo; + + /** + * Verifies a HealthSourcesGetHealthResponseSourceInfo 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 HealthSourcesGetHealthResponseSourceInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HealthSourcesGetHealthResponseSourceInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo; + + /** + * Creates a plain object from a HealthSourcesGetHealthResponseSourceInfo message. Also converts values to other types if specified. + * @param message HealthSourcesGetHealthResponseSourceInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HealthSourcesGetHealthResponseSourceInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HealthSourcesGetHealthResponseSourceInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a HealthSourcesGetHealthResponseSourceInfoBackendInfo. */ + interface IHealthSourcesGetHealthResponseSourceInfoBackendInfo { + + /** HealthSourcesGetHealthResponseSourceInfoBackendInfo endpointCount */ + endpointCount?: (number|null); + + /** HealthSourcesGetHealthResponseSourceInfoBackendInfo group */ + group?: (string|null); + + /** HealthSourcesGetHealthResponseSourceInfoBackendInfo healthyEndpointCount */ + healthyEndpointCount?: (number|null); + } + + /** Represents a HealthSourcesGetHealthResponseSourceInfoBackendInfo. */ + class HealthSourcesGetHealthResponseSourceInfoBackendInfo implements IHealthSourcesGetHealthResponseSourceInfoBackendInfo { + + /** + * Constructs a new HealthSourcesGetHealthResponseSourceInfoBackendInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IHealthSourcesGetHealthResponseSourceInfoBackendInfo); + + /** HealthSourcesGetHealthResponseSourceInfoBackendInfo endpointCount. */ + public endpointCount?: (number|null); + + /** HealthSourcesGetHealthResponseSourceInfoBackendInfo group. */ + public group?: (string|null); + + /** HealthSourcesGetHealthResponseSourceInfoBackendInfo healthyEndpointCount. */ + public healthyEndpointCount?: (number|null); + + /** + * Creates a new HealthSourcesGetHealthResponseSourceInfoBackendInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns HealthSourcesGetHealthResponseSourceInfoBackendInfo instance + */ + public static create(properties?: google.cloud.compute.v1.IHealthSourcesGetHealthResponseSourceInfoBackendInfo): google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo; + + /** + * Encodes the specified HealthSourcesGetHealthResponseSourceInfoBackendInfo message. Does not implicitly {@link google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo.verify|verify} messages. + * @param message HealthSourcesGetHealthResponseSourceInfoBackendInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IHealthSourcesGetHealthResponseSourceInfoBackendInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HealthSourcesGetHealthResponseSourceInfoBackendInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo.verify|verify} messages. + * @param message HealthSourcesGetHealthResponseSourceInfoBackendInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IHealthSourcesGetHealthResponseSourceInfoBackendInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HealthSourcesGetHealthResponseSourceInfoBackendInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @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.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo; + + /** + * Decodes a HealthSourcesGetHealthResponseSourceInfoBackendInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @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.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo; + + /** + * Verifies a HealthSourcesGetHealthResponseSourceInfoBackendInfo 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 HealthSourcesGetHealthResponseSourceInfoBackendInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HealthSourcesGetHealthResponseSourceInfoBackendInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo; + + /** + * Creates a plain object from a HealthSourcesGetHealthResponseSourceInfoBackendInfo message. Also converts values to other types if specified. + * @param message HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HealthSourcesGetHealthResponseSourceInfoBackendInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a HealthSourcesScopedList. */ interface IHealthSourcesScopedList { @@ -80628,6 +84322,127 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InsertInstantSnapshotGroupRequest. */ + interface IInsertInstantSnapshotGroupRequest { + + /** InsertInstantSnapshotGroupRequest instantSnapshotGroupResource */ + instantSnapshotGroupResource?: (google.cloud.compute.v1.IInstantSnapshotGroup|null); + + /** InsertInstantSnapshotGroupRequest project */ + project?: (string|null); + + /** InsertInstantSnapshotGroupRequest requestId */ + requestId?: (string|null); + + /** InsertInstantSnapshotGroupRequest sourceConsistencyGroup */ + sourceConsistencyGroup?: (string|null); + + /** InsertInstantSnapshotGroupRequest zone */ + zone?: (string|null); + } + + /** Represents an InsertInstantSnapshotGroupRequest. */ + class InsertInstantSnapshotGroupRequest implements IInsertInstantSnapshotGroupRequest { + + /** + * Constructs a new InsertInstantSnapshotGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInsertInstantSnapshotGroupRequest); + + /** InsertInstantSnapshotGroupRequest instantSnapshotGroupResource. */ + public instantSnapshotGroupResource?: (google.cloud.compute.v1.IInstantSnapshotGroup|null); + + /** InsertInstantSnapshotGroupRequest project. */ + public project: string; + + /** InsertInstantSnapshotGroupRequest requestId. */ + public requestId?: (string|null); + + /** InsertInstantSnapshotGroupRequest sourceConsistencyGroup. */ + public sourceConsistencyGroup?: (string|null); + + /** InsertInstantSnapshotGroupRequest zone. */ + public zone: string; + + /** + * Creates a new InsertInstantSnapshotGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns InsertInstantSnapshotGroupRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IInsertInstantSnapshotGroupRequest): google.cloud.compute.v1.InsertInstantSnapshotGroupRequest; + + /** + * Encodes the specified InsertInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertInstantSnapshotGroupRequest.verify|verify} messages. + * @param message InsertInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInsertInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InsertInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InsertInstantSnapshotGroupRequest.verify|verify} messages. + * @param message InsertInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInsertInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InsertInstantSnapshotGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InsertInstantSnapshotGroupRequest + * @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.v1.InsertInstantSnapshotGroupRequest; + + /** + * Decodes an InsertInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InsertInstantSnapshotGroupRequest + * @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.v1.InsertInstantSnapshotGroupRequest; + + /** + * Verifies an InsertInstantSnapshotGroupRequest 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 InsertInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InsertInstantSnapshotGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InsertInstantSnapshotGroupRequest; + + /** + * Creates a plain object from an InsertInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @param message InsertInstantSnapshotGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InsertInstantSnapshotGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InsertInstantSnapshotGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InsertInstantSnapshotGroupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InsertInstantSnapshotRequest. */ interface IInsertInstantSnapshotRequest { @@ -82783,6 +86598,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InsertRegionBackendBucketRequest. */ + interface IInsertRegionBackendBucketRequest { + + /** InsertRegionBackendBucketRequest backendBucketResource */ + backendBucketResource?: (google.cloud.compute.v1.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.v1.IInsertRegionBackendBucketRequest); + + /** InsertRegionBackendBucketRequest backendBucketResource. */ + public backendBucketResource?: (google.cloud.compute.v1.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.v1.IInsertRegionBackendBucketRequest): google.cloud.compute.v1.InsertRegionBackendBucketRequest; + + /** + * Encodes the specified InsertRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1.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.v1.IInsertRegionBackendBucketRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InsertRegionBackendBucketRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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 { @@ -83824,6 +87754,127 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InsertRegionInstanceGroupManagerResizeRequestRequest. */ + interface IInsertRegionInstanceGroupManagerResizeRequestRequest { + + /** InsertRegionInstanceGroupManagerResizeRequestRequest instanceGroupManager */ + instanceGroupManager?: (string|null); + + /** InsertRegionInstanceGroupManagerResizeRequestRequest instanceGroupManagerResizeRequestResource */ + instanceGroupManagerResizeRequestResource?: (google.cloud.compute.v1.IInstanceGroupManagerResizeRequest|null); + + /** InsertRegionInstanceGroupManagerResizeRequestRequest project */ + project?: (string|null); + + /** InsertRegionInstanceGroupManagerResizeRequestRequest region */ + region?: (string|null); + + /** InsertRegionInstanceGroupManagerResizeRequestRequest requestId */ + requestId?: (string|null); + } + + /** Represents an InsertRegionInstanceGroupManagerResizeRequestRequest. */ + class InsertRegionInstanceGroupManagerResizeRequestRequest implements IInsertRegionInstanceGroupManagerResizeRequestRequest { + + /** + * Constructs a new InsertRegionInstanceGroupManagerResizeRequestRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInsertRegionInstanceGroupManagerResizeRequestRequest); + + /** InsertRegionInstanceGroupManagerResizeRequestRequest instanceGroupManager. */ + public instanceGroupManager: string; + + /** InsertRegionInstanceGroupManagerResizeRequestRequest instanceGroupManagerResizeRequestResource. */ + public instanceGroupManagerResizeRequestResource?: (google.cloud.compute.v1.IInstanceGroupManagerResizeRequest|null); + + /** InsertRegionInstanceGroupManagerResizeRequestRequest project. */ + public project: string; + + /** InsertRegionInstanceGroupManagerResizeRequestRequest region. */ + public region: string; + + /** InsertRegionInstanceGroupManagerResizeRequestRequest requestId. */ + public requestId?: (string|null); + + /** + * Creates a new InsertRegionInstanceGroupManagerResizeRequestRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns InsertRegionInstanceGroupManagerResizeRequestRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IInsertRegionInstanceGroupManagerResizeRequestRequest): google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest; + + /** + * Encodes the specified InsertRegionInstanceGroupManagerResizeRequestRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest.verify|verify} messages. + * @param message InsertRegionInstanceGroupManagerResizeRequestRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInsertRegionInstanceGroupManagerResizeRequestRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InsertRegionInstanceGroupManagerResizeRequestRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest.verify|verify} messages. + * @param message InsertRegionInstanceGroupManagerResizeRequestRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInsertRegionInstanceGroupManagerResizeRequestRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InsertRegionInstanceGroupManagerResizeRequestRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InsertRegionInstanceGroupManagerResizeRequestRequest + * @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.v1.InsertRegionInstanceGroupManagerResizeRequestRequest; + + /** + * Decodes an InsertRegionInstanceGroupManagerResizeRequestRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InsertRegionInstanceGroupManagerResizeRequestRequest + * @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.v1.InsertRegionInstanceGroupManagerResizeRequestRequest; + + /** + * Verifies an InsertRegionInstanceGroupManagerResizeRequestRequest 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 InsertRegionInstanceGroupManagerResizeRequestRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InsertRegionInstanceGroupManagerResizeRequestRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest; + + /** + * Creates a plain object from an InsertRegionInstanceGroupManagerResizeRequestRequest message. Also converts values to other types if specified. + * @param message InsertRegionInstanceGroupManagerResizeRequestRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InsertRegionInstanceGroupManagerResizeRequestRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InsertRegionInstanceGroupManagerResizeRequestRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InsertRegionInstanceTemplateRequest. */ interface IInsertRegionInstanceTemplateRequest { @@ -83939,6 +87990,127 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InsertRegionInstantSnapshotGroupRequest. */ + interface IInsertRegionInstantSnapshotGroupRequest { + + /** InsertRegionInstantSnapshotGroupRequest instantSnapshotGroupResource */ + instantSnapshotGroupResource?: (google.cloud.compute.v1.IInstantSnapshotGroup|null); + + /** InsertRegionInstantSnapshotGroupRequest project */ + project?: (string|null); + + /** InsertRegionInstantSnapshotGroupRequest region */ + region?: (string|null); + + /** InsertRegionInstantSnapshotGroupRequest requestId */ + requestId?: (string|null); + + /** InsertRegionInstantSnapshotGroupRequest sourceConsistencyGroup */ + sourceConsistencyGroup?: (string|null); + } + + /** Represents an InsertRegionInstantSnapshotGroupRequest. */ + class InsertRegionInstantSnapshotGroupRequest implements IInsertRegionInstantSnapshotGroupRequest { + + /** + * Constructs a new InsertRegionInstantSnapshotGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInsertRegionInstantSnapshotGroupRequest); + + /** InsertRegionInstantSnapshotGroupRequest instantSnapshotGroupResource. */ + public instantSnapshotGroupResource?: (google.cloud.compute.v1.IInstantSnapshotGroup|null); + + /** InsertRegionInstantSnapshotGroupRequest project. */ + public project: string; + + /** InsertRegionInstantSnapshotGroupRequest region. */ + public region: string; + + /** InsertRegionInstantSnapshotGroupRequest requestId. */ + public requestId?: (string|null); + + /** InsertRegionInstantSnapshotGroupRequest sourceConsistencyGroup. */ + public sourceConsistencyGroup?: (string|null); + + /** + * Creates a new InsertRegionInstantSnapshotGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns InsertRegionInstantSnapshotGroupRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IInsertRegionInstantSnapshotGroupRequest): google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest; + + /** + * Encodes the specified InsertRegionInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @param message InsertRegionInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInsertRegionInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InsertRegionInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @param message InsertRegionInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInsertRegionInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InsertRegionInstantSnapshotGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InsertRegionInstantSnapshotGroupRequest + * @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.v1.InsertRegionInstantSnapshotGroupRequest; + + /** + * Decodes an InsertRegionInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InsertRegionInstantSnapshotGroupRequest + * @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.v1.InsertRegionInstantSnapshotGroupRequest; + + /** + * Verifies an InsertRegionInstantSnapshotGroupRequest 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 InsertRegionInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InsertRegionInstantSnapshotGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest; + + /** + * Creates a plain object from an InsertRegionInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @param message InsertRegionInstantSnapshotGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InsertRegionInstantSnapshotGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InsertRegionInstantSnapshotGroupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InsertRegionInstantSnapshotRequest. */ interface IInsertRegionInstantSnapshotRequest { @@ -84520,6 +88692,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InsertRegionSnapshotRequest. */ + interface IInsertRegionSnapshotRequest { + + /** InsertRegionSnapshotRequest project */ + project?: (string|null); + + /** InsertRegionSnapshotRequest region */ + region?: (string|null); + + /** InsertRegionSnapshotRequest requestId */ + requestId?: (string|null); + + /** InsertRegionSnapshotRequest snapshotResource */ + snapshotResource?: (google.cloud.compute.v1.ISnapshot|null); + } + + /** Represents an InsertRegionSnapshotRequest. */ + class InsertRegionSnapshotRequest implements IInsertRegionSnapshotRequest { + + /** + * Constructs a new InsertRegionSnapshotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInsertRegionSnapshotRequest); + + /** InsertRegionSnapshotRequest project. */ + public project: string; + + /** InsertRegionSnapshotRequest region. */ + public region: string; + + /** InsertRegionSnapshotRequest requestId. */ + public requestId?: (string|null); + + /** InsertRegionSnapshotRequest snapshotResource. */ + public snapshotResource?: (google.cloud.compute.v1.ISnapshot|null); + + /** + * Creates a new InsertRegionSnapshotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns InsertRegionSnapshotRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IInsertRegionSnapshotRequest): google.cloud.compute.v1.InsertRegionSnapshotRequest; + + /** + * Encodes the specified InsertRegionSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertRegionSnapshotRequest.verify|verify} messages. + * @param message InsertRegionSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInsertRegionSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InsertRegionSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InsertRegionSnapshotRequest.verify|verify} messages. + * @param message InsertRegionSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInsertRegionSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InsertRegionSnapshotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InsertRegionSnapshotRequest + * @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.v1.InsertRegionSnapshotRequest; + + /** + * Decodes an InsertRegionSnapshotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InsertRegionSnapshotRequest + * @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.v1.InsertRegionSnapshotRequest; + + /** + * Verifies an InsertRegionSnapshotRequest 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 InsertRegionSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InsertRegionSnapshotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InsertRegionSnapshotRequest; + + /** + * Creates a plain object from an InsertRegionSnapshotRequest message. Also converts values to other types if specified. + * @param message InsertRegionSnapshotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InsertRegionSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InsertRegionSnapshotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InsertRegionSnapshotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InsertRegionSslCertificateRequest. */ interface IInsertRegionSslCertificateRequest { @@ -87801,6 +92088,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.v1.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.v1.IInsertZoneVmExtensionPolicyRequest); + + /** InsertZoneVmExtensionPolicyRequest project. */ + public project: string; + + /** InsertZoneVmExtensionPolicyRequest requestId. */ + public requestId?: (string|null); + + /** InsertZoneVmExtensionPolicyRequest vmExtensionPolicyResource. */ + public vmExtensionPolicyResource?: (google.cloud.compute.v1.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.v1.IInsertZoneVmExtensionPolicyRequest): google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest; + + /** + * Encodes the specified InsertZoneVmExtensionPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1.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.v1.IInsertZoneVmExtensionPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InsertZoneVmExtensionPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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 { @@ -90473,6 +94875,9 @@ export namespace google { /** InstanceGroupManagerResizeRequest name */ name?: (string|null); + /** InstanceGroupManagerResizeRequest region */ + region?: (string|null); + /** InstanceGroupManagerResizeRequest requestedRunDuration */ requestedRunDuration?: (google.cloud.compute.v1.IDuration|null); @@ -90519,6 +94924,9 @@ export namespace google { /** InstanceGroupManagerResizeRequest name. */ public name?: (string|null); + /** InstanceGroupManagerResizeRequest region. */ + public region?: (string|null); + /** InstanceGroupManagerResizeRequest requestedRunDuration. */ public requestedRunDuration?: (google.cloud.compute.v1.IDuration|null); @@ -91184,6 +95592,9 @@ export namespace google { /** InstanceGroupManagerStatus bulkInstanceOperation */ bulkInstanceOperation?: (google.cloud.compute.v1.IInstanceGroupManagerStatusBulkInstanceOperation|null); + /** InstanceGroupManagerStatus currentInstanceStatuses */ + currentInstanceStatuses?: (google.cloud.compute.v1.IInstanceGroupManagerStatusInstanceStatusSummary|null); + /** InstanceGroupManagerStatus isStable */ isStable?: (boolean|null); @@ -91215,6 +95626,9 @@ export namespace google { /** InstanceGroupManagerStatus bulkInstanceOperation. */ public bulkInstanceOperation?: (google.cloud.compute.v1.IInstanceGroupManagerStatusBulkInstanceOperation|null); + /** InstanceGroupManagerStatus currentInstanceStatuses. */ + public currentInstanceStatuses?: (google.cloud.compute.v1.IInstanceGroupManagerStatusInstanceStatusSummary|null); + /** InstanceGroupManagerStatus isStable. */ public isStable?: (boolean|null); @@ -91837,6 +96251,175 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InstanceGroupManagerStatusInstanceStatusSummary. */ + interface IInstanceGroupManagerStatusInstanceStatusSummary { + + /** InstanceGroupManagerStatusInstanceStatusSummary deprovisioning */ + deprovisioning?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary nonExistent */ + nonExistent?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary pending */ + pending?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary pendingStop */ + pendingStop?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary provisioning */ + provisioning?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary repairing */ + repairing?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary running */ + running?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary staging */ + staging?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary stopped */ + stopped?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary stopping */ + stopping?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary suspended */ + suspended?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary suspending */ + suspending?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary terminated */ + terminated?: (number|null); + } + + /** Represents an InstanceGroupManagerStatusInstanceStatusSummary. */ + class InstanceGroupManagerStatusInstanceStatusSummary implements IInstanceGroupManagerStatusInstanceStatusSummary { + + /** + * Constructs a new InstanceGroupManagerStatusInstanceStatusSummary. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInstanceGroupManagerStatusInstanceStatusSummary); + + /** InstanceGroupManagerStatusInstanceStatusSummary deprovisioning. */ + public deprovisioning?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary nonExistent. */ + public nonExistent?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary pending. */ + public pending?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary pendingStop. */ + public pendingStop?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary provisioning. */ + public provisioning?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary repairing. */ + public repairing?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary running. */ + public running?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary staging. */ + public staging?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary stopped. */ + public stopped?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary stopping. */ + public stopping?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary suspended. */ + public suspended?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary suspending. */ + public suspending?: (number|null); + + /** InstanceGroupManagerStatusInstanceStatusSummary terminated. */ + public terminated?: (number|null); + + /** + * Creates a new InstanceGroupManagerStatusInstanceStatusSummary instance using the specified properties. + * @param [properties] Properties to set + * @returns InstanceGroupManagerStatusInstanceStatusSummary instance + */ + public static create(properties?: google.cloud.compute.v1.IInstanceGroupManagerStatusInstanceStatusSummary): google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary; + + /** + * Encodes the specified InstanceGroupManagerStatusInstanceStatusSummary message. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary.verify|verify} messages. + * @param message InstanceGroupManagerStatusInstanceStatusSummary message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInstanceGroupManagerStatusInstanceStatusSummary, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstanceGroupManagerStatusInstanceStatusSummary message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary.verify|verify} messages. + * @param message InstanceGroupManagerStatusInstanceStatusSummary message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInstanceGroupManagerStatusInstanceStatusSummary, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstanceGroupManagerStatusInstanceStatusSummary message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstanceGroupManagerStatusInstanceStatusSummary + * @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.v1.InstanceGroupManagerStatusInstanceStatusSummary; + + /** + * Decodes an InstanceGroupManagerStatusInstanceStatusSummary message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstanceGroupManagerStatusInstanceStatusSummary + * @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.v1.InstanceGroupManagerStatusInstanceStatusSummary; + + /** + * Verifies an InstanceGroupManagerStatusInstanceStatusSummary 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 InstanceGroupManagerStatusInstanceStatusSummary message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstanceGroupManagerStatusInstanceStatusSummary + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary; + + /** + * Creates a plain object from an InstanceGroupManagerStatusInstanceStatusSummary message. Also converts values to other types if specified. + * @param message InstanceGroupManagerStatusInstanceStatusSummary + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstanceGroupManagerStatusInstanceStatusSummary to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstanceGroupManagerStatusInstanceStatusSummary + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InstanceGroupManagerStatusStateful. */ interface IInstanceGroupManagerStatusStateful { @@ -98809,6 +103392,12 @@ export namespace google { /** InstantSnapshot sourceDiskId */ sourceDiskId?: (string|null); + /** InstantSnapshot sourceInstantSnapshotGroup */ + sourceInstantSnapshotGroup?: (string|null); + + /** InstantSnapshot sourceInstantSnapshotGroupId */ + sourceInstantSnapshotGroupId?: (string|null); + /** InstantSnapshot status */ status?: (string|null); @@ -98879,6 +103468,12 @@ export namespace google { /** InstantSnapshot sourceDiskId. */ public sourceDiskId?: (string|null); + /** InstantSnapshot sourceInstantSnapshotGroup. */ + public sourceInstantSnapshotGroup?: (string|null); + + /** InstantSnapshot sourceInstantSnapshotGroupId. */ + public sourceInstantSnapshotGroupId?: (string|null); + /** InstantSnapshot status. */ public status?: (string|null); @@ -99117,6 +103712,486 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InstantSnapshotGroup. */ + interface IInstantSnapshotGroup { + + /** InstantSnapshotGroup creationTimestamp */ + creationTimestamp?: (string|null); + + /** InstantSnapshotGroup description */ + description?: (string|null); + + /** InstantSnapshotGroup id */ + id?: (number|Long|string|null); + + /** InstantSnapshotGroup kind */ + kind?: (string|null); + + /** InstantSnapshotGroup name */ + name?: (string|null); + + /** InstantSnapshotGroup region */ + region?: (string|null); + + /** InstantSnapshotGroup resourceStatus */ + resourceStatus?: (google.cloud.compute.v1.IInstantSnapshotGroupResourceStatus|null); + + /** InstantSnapshotGroup selfLink */ + selfLink?: (string|null); + + /** InstantSnapshotGroup selfLinkWithId */ + selfLinkWithId?: (string|null); + + /** InstantSnapshotGroup sourceConsistencyGroup */ + sourceConsistencyGroup?: (string|null); + + /** InstantSnapshotGroup status */ + status?: (string|null); + + /** InstantSnapshotGroup zone */ + zone?: (string|null); + } + + /** Represents an InstantSnapshotGroup. */ + class InstantSnapshotGroup implements IInstantSnapshotGroup { + + /** + * Constructs a new InstantSnapshotGroup. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInstantSnapshotGroup); + + /** InstantSnapshotGroup creationTimestamp. */ + public creationTimestamp?: (string|null); + + /** InstantSnapshotGroup description. */ + public description?: (string|null); + + /** InstantSnapshotGroup id. */ + public id?: (number|Long|string|null); + + /** InstantSnapshotGroup kind. */ + public kind?: (string|null); + + /** InstantSnapshotGroup name. */ + public name?: (string|null); + + /** InstantSnapshotGroup region. */ + public region?: (string|null); + + /** InstantSnapshotGroup resourceStatus. */ + public resourceStatus?: (google.cloud.compute.v1.IInstantSnapshotGroupResourceStatus|null); + + /** InstantSnapshotGroup selfLink. */ + public selfLink?: (string|null); + + /** InstantSnapshotGroup selfLinkWithId. */ + public selfLinkWithId?: (string|null); + + /** InstantSnapshotGroup sourceConsistencyGroup. */ + public sourceConsistencyGroup?: (string|null); + + /** InstantSnapshotGroup status. */ + public status?: (string|null); + + /** InstantSnapshotGroup zone. */ + public zone?: (string|null); + + /** + * Creates a new InstantSnapshotGroup instance using the specified properties. + * @param [properties] Properties to set + * @returns InstantSnapshotGroup instance + */ + public static create(properties?: google.cloud.compute.v1.IInstantSnapshotGroup): google.cloud.compute.v1.InstantSnapshotGroup; + + /** + * Encodes the specified InstantSnapshotGroup message. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotGroup.verify|verify} messages. + * @param message InstantSnapshotGroup message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInstantSnapshotGroup, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstantSnapshotGroup message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotGroup.verify|verify} messages. + * @param message InstantSnapshotGroup message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInstantSnapshotGroup, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstantSnapshotGroup message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstantSnapshotGroup + * @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.v1.InstantSnapshotGroup; + + /** + * Decodes an InstantSnapshotGroup message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstantSnapshotGroup + * @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.v1.InstantSnapshotGroup; + + /** + * Verifies an InstantSnapshotGroup 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 InstantSnapshotGroup message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstantSnapshotGroup + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InstantSnapshotGroup; + + /** + * Creates a plain object from an InstantSnapshotGroup message. Also converts values to other types if specified. + * @param message InstantSnapshotGroup + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InstantSnapshotGroup, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstantSnapshotGroup to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstantSnapshotGroup + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace InstantSnapshotGroup { + + /** Status enum. */ + enum Status { + UNDEFINED_STATUS = 0, + CREATING = 455564985, + DELETING = 528602024, + FAILED = 455706685, + INVALID = 530283991, + READY = 77848963, + UNKNOWN = 433141802 + } + } + + /** Properties of an InstantSnapshotGroupParameters. */ + interface IInstantSnapshotGroupParameters { + + /** InstantSnapshotGroupParameters sourceInstantSnapshotGroup */ + sourceInstantSnapshotGroup?: (string|null); + } + + /** Represents an InstantSnapshotGroupParameters. */ + class InstantSnapshotGroupParameters implements IInstantSnapshotGroupParameters { + + /** + * Constructs a new InstantSnapshotGroupParameters. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInstantSnapshotGroupParameters); + + /** InstantSnapshotGroupParameters sourceInstantSnapshotGroup. */ + public sourceInstantSnapshotGroup?: (string|null); + + /** + * Creates a new InstantSnapshotGroupParameters instance using the specified properties. + * @param [properties] Properties to set + * @returns InstantSnapshotGroupParameters instance + */ + public static create(properties?: google.cloud.compute.v1.IInstantSnapshotGroupParameters): google.cloud.compute.v1.InstantSnapshotGroupParameters; + + /** + * Encodes the specified InstantSnapshotGroupParameters message. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotGroupParameters.verify|verify} messages. + * @param message InstantSnapshotGroupParameters message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInstantSnapshotGroupParameters, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstantSnapshotGroupParameters message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotGroupParameters.verify|verify} messages. + * @param message InstantSnapshotGroupParameters message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInstantSnapshotGroupParameters, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstantSnapshotGroupParameters message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstantSnapshotGroupParameters + * @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.v1.InstantSnapshotGroupParameters; + + /** + * Decodes an InstantSnapshotGroupParameters message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstantSnapshotGroupParameters + * @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.v1.InstantSnapshotGroupParameters; + + /** + * Verifies an InstantSnapshotGroupParameters 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 InstantSnapshotGroupParameters message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstantSnapshotGroupParameters + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InstantSnapshotGroupParameters; + + /** + * Creates a plain object from an InstantSnapshotGroupParameters message. Also converts values to other types if specified. + * @param message InstantSnapshotGroupParameters + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InstantSnapshotGroupParameters, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstantSnapshotGroupParameters to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstantSnapshotGroupParameters + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an InstantSnapshotGroupResourceStatus. */ + interface IInstantSnapshotGroupResourceStatus { + + /** InstantSnapshotGroupResourceStatus consistencyMembershipResolutionTime */ + consistencyMembershipResolutionTime?: (string|null); + + /** InstantSnapshotGroupResourceStatus sourceInfo */ + sourceInfo?: (google.cloud.compute.v1.IInstantSnapshotGroupSourceInfo|null); + } + + /** Represents an InstantSnapshotGroupResourceStatus. */ + class InstantSnapshotGroupResourceStatus implements IInstantSnapshotGroupResourceStatus { + + /** + * Constructs a new InstantSnapshotGroupResourceStatus. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInstantSnapshotGroupResourceStatus); + + /** InstantSnapshotGroupResourceStatus consistencyMembershipResolutionTime. */ + public consistencyMembershipResolutionTime?: (string|null); + + /** InstantSnapshotGroupResourceStatus sourceInfo. */ + public sourceInfo?: (google.cloud.compute.v1.IInstantSnapshotGroupSourceInfo|null); + + /** + * Creates a new InstantSnapshotGroupResourceStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns InstantSnapshotGroupResourceStatus instance + */ + public static create(properties?: google.cloud.compute.v1.IInstantSnapshotGroupResourceStatus): google.cloud.compute.v1.InstantSnapshotGroupResourceStatus; + + /** + * Encodes the specified InstantSnapshotGroupResourceStatus message. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotGroupResourceStatus.verify|verify} messages. + * @param message InstantSnapshotGroupResourceStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInstantSnapshotGroupResourceStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstantSnapshotGroupResourceStatus message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotGroupResourceStatus.verify|verify} messages. + * @param message InstantSnapshotGroupResourceStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInstantSnapshotGroupResourceStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstantSnapshotGroupResourceStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstantSnapshotGroupResourceStatus + * @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.v1.InstantSnapshotGroupResourceStatus; + + /** + * Decodes an InstantSnapshotGroupResourceStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstantSnapshotGroupResourceStatus + * @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.v1.InstantSnapshotGroupResourceStatus; + + /** + * Verifies an InstantSnapshotGroupResourceStatus 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 InstantSnapshotGroupResourceStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstantSnapshotGroupResourceStatus + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InstantSnapshotGroupResourceStatus; + + /** + * Creates a plain object from an InstantSnapshotGroupResourceStatus message. Also converts values to other types if specified. + * @param message InstantSnapshotGroupResourceStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InstantSnapshotGroupResourceStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstantSnapshotGroupResourceStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstantSnapshotGroupResourceStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an InstantSnapshotGroupSourceInfo. */ + interface IInstantSnapshotGroupSourceInfo { + + /** InstantSnapshotGroupSourceInfo consistencyGroup */ + consistencyGroup?: (string|null); + + /** InstantSnapshotGroupSourceInfo consistencyGroupId */ + consistencyGroupId?: (string|null); + } + + /** Represents an InstantSnapshotGroupSourceInfo. */ + class InstantSnapshotGroupSourceInfo implements IInstantSnapshotGroupSourceInfo { + + /** + * Constructs a new InstantSnapshotGroupSourceInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInstantSnapshotGroupSourceInfo); + + /** InstantSnapshotGroupSourceInfo consistencyGroup. */ + public consistencyGroup?: (string|null); + + /** InstantSnapshotGroupSourceInfo consistencyGroupId. */ + public consistencyGroupId?: (string|null); + + /** + * Creates a new InstantSnapshotGroupSourceInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns InstantSnapshotGroupSourceInfo instance + */ + public static create(properties?: google.cloud.compute.v1.IInstantSnapshotGroupSourceInfo): google.cloud.compute.v1.InstantSnapshotGroupSourceInfo; + + /** + * Encodes the specified InstantSnapshotGroupSourceInfo message. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotGroupSourceInfo.verify|verify} messages. + * @param message InstantSnapshotGroupSourceInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInstantSnapshotGroupSourceInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstantSnapshotGroupSourceInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotGroupSourceInfo.verify|verify} messages. + * @param message InstantSnapshotGroupSourceInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInstantSnapshotGroupSourceInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstantSnapshotGroupSourceInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstantSnapshotGroupSourceInfo + * @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.v1.InstantSnapshotGroupSourceInfo; + + /** + * Decodes an InstantSnapshotGroupSourceInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstantSnapshotGroupSourceInfo + * @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.v1.InstantSnapshotGroupSourceInfo; + + /** + * Verifies an InstantSnapshotGroupSourceInfo 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 InstantSnapshotGroupSourceInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstantSnapshotGroupSourceInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InstantSnapshotGroupSourceInfo; + + /** + * Creates a plain object from an InstantSnapshotGroupSourceInfo message. Also converts values to other types if specified. + * @param message InstantSnapshotGroupSourceInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InstantSnapshotGroupSourceInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstantSnapshotGroupSourceInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstantSnapshotGroupSourceInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InstantSnapshotList. */ interface IInstantSnapshotList { @@ -114976,6 +120051,278 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ListInstantSnapshotGroups. */ + interface IListInstantSnapshotGroups { + + /** ListInstantSnapshotGroups etag */ + etag?: (string|null); + + /** ListInstantSnapshotGroups id */ + id?: (string|null); + + /** ListInstantSnapshotGroups items */ + items?: (google.cloud.compute.v1.IInstantSnapshotGroup[]|null); + + /** ListInstantSnapshotGroups kind */ + kind?: (string|null); + + /** ListInstantSnapshotGroups nextPageToken */ + nextPageToken?: (string|null); + + /** ListInstantSnapshotGroups selfLink */ + selfLink?: (string|null); + + /** ListInstantSnapshotGroups unreachables */ + unreachables?: (string[]|null); + + /** ListInstantSnapshotGroups warning */ + warning?: (google.cloud.compute.v1.IWarning|null); + } + + /** Represents a ListInstantSnapshotGroups. */ + class ListInstantSnapshotGroups implements IListInstantSnapshotGroups { + + /** + * Constructs a new ListInstantSnapshotGroups. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IListInstantSnapshotGroups); + + /** ListInstantSnapshotGroups etag. */ + public etag?: (string|null); + + /** ListInstantSnapshotGroups id. */ + public id?: (string|null); + + /** ListInstantSnapshotGroups items. */ + public items: google.cloud.compute.v1.IInstantSnapshotGroup[]; + + /** ListInstantSnapshotGroups kind. */ + public kind?: (string|null); + + /** ListInstantSnapshotGroups nextPageToken. */ + public nextPageToken?: (string|null); + + /** ListInstantSnapshotGroups selfLink. */ + public selfLink?: (string|null); + + /** ListInstantSnapshotGroups unreachables. */ + public unreachables: string[]; + + /** ListInstantSnapshotGroups warning. */ + public warning?: (google.cloud.compute.v1.IWarning|null); + + /** + * Creates a new ListInstantSnapshotGroups instance using the specified properties. + * @param [properties] Properties to set + * @returns ListInstantSnapshotGroups instance + */ + public static create(properties?: google.cloud.compute.v1.IListInstantSnapshotGroups): google.cloud.compute.v1.ListInstantSnapshotGroups; + + /** + * Encodes the specified ListInstantSnapshotGroups message. Does not implicitly {@link google.cloud.compute.v1.ListInstantSnapshotGroups.verify|verify} messages. + * @param message ListInstantSnapshotGroups message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IListInstantSnapshotGroups, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListInstantSnapshotGroups message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListInstantSnapshotGroups.verify|verify} messages. + * @param message ListInstantSnapshotGroups message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IListInstantSnapshotGroups, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListInstantSnapshotGroups message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListInstantSnapshotGroups + * @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.v1.ListInstantSnapshotGroups; + + /** + * Decodes a ListInstantSnapshotGroups message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListInstantSnapshotGroups + * @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.v1.ListInstantSnapshotGroups; + + /** + * Verifies a ListInstantSnapshotGroups 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 ListInstantSnapshotGroups message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListInstantSnapshotGroups + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ListInstantSnapshotGroups; + + /** + * Creates a plain object from a ListInstantSnapshotGroups message. Also converts values to other types if specified. + * @param message ListInstantSnapshotGroups + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ListInstantSnapshotGroups, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListInstantSnapshotGroups to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListInstantSnapshotGroups + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListInstantSnapshotGroupsRequest. */ + interface IListInstantSnapshotGroupsRequest { + + /** ListInstantSnapshotGroupsRequest filter */ + filter?: (string|null); + + /** ListInstantSnapshotGroupsRequest maxResults */ + maxResults?: (number|null); + + /** ListInstantSnapshotGroupsRequest orderBy */ + orderBy?: (string|null); + + /** ListInstantSnapshotGroupsRequest pageToken */ + pageToken?: (string|null); + + /** ListInstantSnapshotGroupsRequest project */ + project?: (string|null); + + /** ListInstantSnapshotGroupsRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + + /** ListInstantSnapshotGroupsRequest zone */ + zone?: (string|null); + } + + /** Represents a ListInstantSnapshotGroupsRequest. */ + class ListInstantSnapshotGroupsRequest implements IListInstantSnapshotGroupsRequest { + + /** + * Constructs a new ListInstantSnapshotGroupsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IListInstantSnapshotGroupsRequest); + + /** ListInstantSnapshotGroupsRequest filter. */ + public filter?: (string|null); + + /** ListInstantSnapshotGroupsRequest maxResults. */ + public maxResults?: (number|null); + + /** ListInstantSnapshotGroupsRequest orderBy. */ + public orderBy?: (string|null); + + /** ListInstantSnapshotGroupsRequest pageToken. */ + public pageToken?: (string|null); + + /** ListInstantSnapshotGroupsRequest project. */ + public project: string; + + /** ListInstantSnapshotGroupsRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** ListInstantSnapshotGroupsRequest zone. */ + public zone: string; + + /** + * Creates a new ListInstantSnapshotGroupsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListInstantSnapshotGroupsRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IListInstantSnapshotGroupsRequest): google.cloud.compute.v1.ListInstantSnapshotGroupsRequest; + + /** + * Encodes the specified ListInstantSnapshotGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListInstantSnapshotGroupsRequest.verify|verify} messages. + * @param message ListInstantSnapshotGroupsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IListInstantSnapshotGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListInstantSnapshotGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListInstantSnapshotGroupsRequest.verify|verify} messages. + * @param message ListInstantSnapshotGroupsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IListInstantSnapshotGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListInstantSnapshotGroupsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListInstantSnapshotGroupsRequest + * @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.v1.ListInstantSnapshotGroupsRequest; + + /** + * Decodes a ListInstantSnapshotGroupsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListInstantSnapshotGroupsRequest + * @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.v1.ListInstantSnapshotGroupsRequest; + + /** + * Verifies a ListInstantSnapshotGroupsRequest 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 ListInstantSnapshotGroupsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListInstantSnapshotGroupsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ListInstantSnapshotGroupsRequest; + + /** + * Creates a plain object from a ListInstantSnapshotGroupsRequest message. Also converts values to other types if specified. + * @param message ListInstantSnapshotGroupsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ListInstantSnapshotGroupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListInstantSnapshotGroupsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListInstantSnapshotGroupsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ListInstantSnapshotsRequest. */ interface IListInstantSnapshotsRequest { @@ -119756,6 +125103,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.v1.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.v1.IListRegionBackendBucketsRequest): google.cloud.compute.v1.ListRegionBackendBucketsRequest; + + /** + * Encodes the specified ListRegionBackendBucketsRequest message. Does not implicitly {@link google.cloud.compute.v1.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.v1.IListRegionBackendBucketsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListRegionBackendBucketsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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 { @@ -120953,6 +126433,145 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ListRegionInstanceGroupManagerResizeRequestsRequest. */ + interface IListRegionInstanceGroupManagerResizeRequestsRequest { + + /** ListRegionInstanceGroupManagerResizeRequestsRequest filter */ + filter?: (string|null); + + /** ListRegionInstanceGroupManagerResizeRequestsRequest instanceGroupManager */ + instanceGroupManager?: (string|null); + + /** ListRegionInstanceGroupManagerResizeRequestsRequest maxResults */ + maxResults?: (number|null); + + /** ListRegionInstanceGroupManagerResizeRequestsRequest orderBy */ + orderBy?: (string|null); + + /** ListRegionInstanceGroupManagerResizeRequestsRequest pageToken */ + pageToken?: (string|null); + + /** ListRegionInstanceGroupManagerResizeRequestsRequest project */ + project?: (string|null); + + /** ListRegionInstanceGroupManagerResizeRequestsRequest region */ + region?: (string|null); + + /** ListRegionInstanceGroupManagerResizeRequestsRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + } + + /** Represents a ListRegionInstanceGroupManagerResizeRequestsRequest. */ + class ListRegionInstanceGroupManagerResizeRequestsRequest implements IListRegionInstanceGroupManagerResizeRequestsRequest { + + /** + * Constructs a new ListRegionInstanceGroupManagerResizeRequestsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IListRegionInstanceGroupManagerResizeRequestsRequest); + + /** ListRegionInstanceGroupManagerResizeRequestsRequest filter. */ + public filter?: (string|null); + + /** ListRegionInstanceGroupManagerResizeRequestsRequest instanceGroupManager. */ + public instanceGroupManager: string; + + /** ListRegionInstanceGroupManagerResizeRequestsRequest maxResults. */ + public maxResults?: (number|null); + + /** ListRegionInstanceGroupManagerResizeRequestsRequest orderBy. */ + public orderBy?: (string|null); + + /** ListRegionInstanceGroupManagerResizeRequestsRequest pageToken. */ + public pageToken?: (string|null); + + /** ListRegionInstanceGroupManagerResizeRequestsRequest project. */ + public project: string; + + /** ListRegionInstanceGroupManagerResizeRequestsRequest region. */ + public region: string; + + /** ListRegionInstanceGroupManagerResizeRequestsRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** + * Creates a new ListRegionInstanceGroupManagerResizeRequestsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListRegionInstanceGroupManagerResizeRequestsRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IListRegionInstanceGroupManagerResizeRequestsRequest): google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest; + + /** + * Encodes the specified ListRegionInstanceGroupManagerResizeRequestsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest.verify|verify} messages. + * @param message ListRegionInstanceGroupManagerResizeRequestsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IListRegionInstanceGroupManagerResizeRequestsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListRegionInstanceGroupManagerResizeRequestsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest.verify|verify} messages. + * @param message ListRegionInstanceGroupManagerResizeRequestsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IListRegionInstanceGroupManagerResizeRequestsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListRegionInstanceGroupManagerResizeRequestsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListRegionInstanceGroupManagerResizeRequestsRequest + * @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.v1.ListRegionInstanceGroupManagerResizeRequestsRequest; + + /** + * Decodes a ListRegionInstanceGroupManagerResizeRequestsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListRegionInstanceGroupManagerResizeRequestsRequest + * @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.v1.ListRegionInstanceGroupManagerResizeRequestsRequest; + + /** + * Verifies a ListRegionInstanceGroupManagerResizeRequestsRequest 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 ListRegionInstanceGroupManagerResizeRequestsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListRegionInstanceGroupManagerResizeRequestsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest; + + /** + * Creates a plain object from a ListRegionInstanceGroupManagerResizeRequestsRequest message. Also converts values to other types if specified. + * @param message ListRegionInstanceGroupManagerResizeRequestsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListRegionInstanceGroupManagerResizeRequestsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListRegionInstanceGroupManagerResizeRequestsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ListRegionInstanceGroupManagersRequest. */ interface IListRegionInstanceGroupManagersRequest { @@ -121352,6 +126971,139 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ListRegionInstantSnapshotGroupsRequest. */ + interface IListRegionInstantSnapshotGroupsRequest { + + /** ListRegionInstantSnapshotGroupsRequest filter */ + filter?: (string|null); + + /** ListRegionInstantSnapshotGroupsRequest maxResults */ + maxResults?: (number|null); + + /** ListRegionInstantSnapshotGroupsRequest orderBy */ + orderBy?: (string|null); + + /** ListRegionInstantSnapshotGroupsRequest pageToken */ + pageToken?: (string|null); + + /** ListRegionInstantSnapshotGroupsRequest project */ + project?: (string|null); + + /** ListRegionInstantSnapshotGroupsRequest region */ + region?: (string|null); + + /** ListRegionInstantSnapshotGroupsRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + } + + /** Represents a ListRegionInstantSnapshotGroupsRequest. */ + class ListRegionInstantSnapshotGroupsRequest implements IListRegionInstantSnapshotGroupsRequest { + + /** + * Constructs a new ListRegionInstantSnapshotGroupsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IListRegionInstantSnapshotGroupsRequest); + + /** ListRegionInstantSnapshotGroupsRequest filter. */ + public filter?: (string|null); + + /** ListRegionInstantSnapshotGroupsRequest maxResults. */ + public maxResults?: (number|null); + + /** ListRegionInstantSnapshotGroupsRequest orderBy. */ + public orderBy?: (string|null); + + /** ListRegionInstantSnapshotGroupsRequest pageToken. */ + public pageToken?: (string|null); + + /** ListRegionInstantSnapshotGroupsRequest project. */ + public project: string; + + /** ListRegionInstantSnapshotGroupsRequest region. */ + public region: string; + + /** ListRegionInstantSnapshotGroupsRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** + * Creates a new ListRegionInstantSnapshotGroupsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListRegionInstantSnapshotGroupsRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IListRegionInstantSnapshotGroupsRequest): google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest; + + /** + * Encodes the specified ListRegionInstantSnapshotGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest.verify|verify} messages. + * @param message ListRegionInstantSnapshotGroupsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IListRegionInstantSnapshotGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListRegionInstantSnapshotGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest.verify|verify} messages. + * @param message ListRegionInstantSnapshotGroupsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IListRegionInstantSnapshotGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListRegionInstantSnapshotGroupsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListRegionInstantSnapshotGroupsRequest + * @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.v1.ListRegionInstantSnapshotGroupsRequest; + + /** + * Decodes a ListRegionInstantSnapshotGroupsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListRegionInstantSnapshotGroupsRequest + * @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.v1.ListRegionInstantSnapshotGroupsRequest; + + /** + * Verifies a ListRegionInstantSnapshotGroupsRequest 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 ListRegionInstantSnapshotGroupsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListRegionInstantSnapshotGroupsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest; + + /** + * Creates a plain object from a ListRegionInstantSnapshotGroupsRequest message. Also converts values to other types if specified. + * @param message ListRegionInstantSnapshotGroupsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListRegionInstantSnapshotGroupsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListRegionInstantSnapshotGroupsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ListRegionInstantSnapshotsRequest. */ interface IListRegionInstantSnapshotsRequest { @@ -122150,6 +127902,139 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ListRegionSnapshotsRequest. */ + interface IListRegionSnapshotsRequest { + + /** ListRegionSnapshotsRequest filter */ + filter?: (string|null); + + /** ListRegionSnapshotsRequest maxResults */ + maxResults?: (number|null); + + /** ListRegionSnapshotsRequest orderBy */ + orderBy?: (string|null); + + /** ListRegionSnapshotsRequest pageToken */ + pageToken?: (string|null); + + /** ListRegionSnapshotsRequest project */ + project?: (string|null); + + /** ListRegionSnapshotsRequest region */ + region?: (string|null); + + /** ListRegionSnapshotsRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + } + + /** Represents a ListRegionSnapshotsRequest. */ + class ListRegionSnapshotsRequest implements IListRegionSnapshotsRequest { + + /** + * Constructs a new ListRegionSnapshotsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IListRegionSnapshotsRequest); + + /** ListRegionSnapshotsRequest filter. */ + public filter?: (string|null); + + /** ListRegionSnapshotsRequest maxResults. */ + public maxResults?: (number|null); + + /** ListRegionSnapshotsRequest orderBy. */ + public orderBy?: (string|null); + + /** ListRegionSnapshotsRequest pageToken. */ + public pageToken?: (string|null); + + /** ListRegionSnapshotsRequest project. */ + public project: string; + + /** ListRegionSnapshotsRequest region. */ + public region: string; + + /** ListRegionSnapshotsRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** + * Creates a new ListRegionSnapshotsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListRegionSnapshotsRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IListRegionSnapshotsRequest): google.cloud.compute.v1.ListRegionSnapshotsRequest; + + /** + * Encodes the specified ListRegionSnapshotsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionSnapshotsRequest.verify|verify} messages. + * @param message ListRegionSnapshotsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IListRegionSnapshotsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListRegionSnapshotsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionSnapshotsRequest.verify|verify} messages. + * @param message ListRegionSnapshotsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IListRegionSnapshotsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListRegionSnapshotsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListRegionSnapshotsRequest + * @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.v1.ListRegionSnapshotsRequest; + + /** + * Decodes a ListRegionSnapshotsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListRegionSnapshotsRequest + * @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.v1.ListRegionSnapshotsRequest; + + /** + * Verifies a ListRegionSnapshotsRequest 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 ListRegionSnapshotsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListRegionSnapshotsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ListRegionSnapshotsRequest; + + /** + * Creates a plain object from a ListRegionSnapshotsRequest message. Also converts values to other types if specified. + * @param message ListRegionSnapshotsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ListRegionSnapshotsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListRegionSnapshotsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListRegionSnapshotsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ListRegionSslCertificatesRequest. */ interface IListRegionSslCertificatesRequest { @@ -126507,6 +132392,133 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ListUsableBackendBucketsRequest. */ + interface IListUsableBackendBucketsRequest { + + /** ListUsableBackendBucketsRequest filter */ + filter?: (string|null); + + /** ListUsableBackendBucketsRequest maxResults */ + maxResults?: (number|null); + + /** ListUsableBackendBucketsRequest orderBy */ + orderBy?: (string|null); + + /** ListUsableBackendBucketsRequest pageToken */ + pageToken?: (string|null); + + /** ListUsableBackendBucketsRequest project */ + project?: (string|null); + + /** ListUsableBackendBucketsRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + } + + /** Represents a ListUsableBackendBucketsRequest. */ + class ListUsableBackendBucketsRequest implements IListUsableBackendBucketsRequest { + + /** + * Constructs a new ListUsableBackendBucketsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IListUsableBackendBucketsRequest); + + /** ListUsableBackendBucketsRequest filter. */ + public filter?: (string|null); + + /** ListUsableBackendBucketsRequest maxResults. */ + public maxResults?: (number|null); + + /** ListUsableBackendBucketsRequest orderBy. */ + public orderBy?: (string|null); + + /** ListUsableBackendBucketsRequest pageToken. */ + public pageToken?: (string|null); + + /** ListUsableBackendBucketsRequest project. */ + public project: string; + + /** ListUsableBackendBucketsRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** + * Creates a new ListUsableBackendBucketsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListUsableBackendBucketsRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IListUsableBackendBucketsRequest): google.cloud.compute.v1.ListUsableBackendBucketsRequest; + + /** + * Encodes the specified ListUsableBackendBucketsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListUsableBackendBucketsRequest.verify|verify} messages. + * @param message ListUsableBackendBucketsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IListUsableBackendBucketsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListUsableBackendBucketsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListUsableBackendBucketsRequest.verify|verify} messages. + * @param message ListUsableBackendBucketsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IListUsableBackendBucketsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListUsableBackendBucketsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListUsableBackendBucketsRequest + * @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.v1.ListUsableBackendBucketsRequest; + + /** + * Decodes a ListUsableBackendBucketsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListUsableBackendBucketsRequest + * @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.v1.ListUsableBackendBucketsRequest; + + /** + * Verifies a ListUsableBackendBucketsRequest 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 ListUsableBackendBucketsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListUsableBackendBucketsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ListUsableBackendBucketsRequest; + + /** + * Creates a plain object from a ListUsableBackendBucketsRequest message. Also converts values to other types if specified. + * @param message ListUsableBackendBucketsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ListUsableBackendBucketsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListUsableBackendBucketsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListUsableBackendBucketsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ListUsableBackendServicesRequest. */ interface IListUsableBackendServicesRequest { @@ -126634,6 +132646,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.v1.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.v1.IListUsableRegionBackendBucketsRequest): google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest; + + /** + * Encodes the specified ListUsableRegionBackendBucketsRequest message. Does not implicitly {@link google.cloud.compute.v1.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.v1.IListUsableRegionBackendBucketsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListUsableRegionBackendBucketsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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 { @@ -127565,6 +133710,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.v1.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.v1.IListZoneVmExtensionPoliciesRequest): google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest; + + /** + * Encodes the specified ListZoneVmExtensionPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.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.v1.IListZoneVmExtensionPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListZoneVmExtensionPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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 { @@ -132037,6 +138315,9 @@ export namespace google { /** NetworkAttachmentConnectedEndpoint secondaryIpCidrRanges */ secondaryIpCidrRanges?: (string[]|null); + /** NetworkAttachmentConnectedEndpoint serviceClassId */ + serviceClassId?: (string|null); + /** NetworkAttachmentConnectedEndpoint status */ status?: (string|null); @@ -132068,6 +138349,9 @@ export namespace google { /** NetworkAttachmentConnectedEndpoint secondaryIpCidrRanges. */ public secondaryIpCidrRanges: string[]; + /** NetworkAttachmentConnectedEndpoint serviceClassId. */ + public serviceClassId?: (string|null); + /** NetworkAttachmentConnectedEndpoint status. */ public status?: (string|null); @@ -134671,6 +140955,9 @@ export namespace google { /** NetworkInterface queueCount */ queueCount?: (number|null); + /** NetworkInterface serviceClassId */ + serviceClassId?: (string|null); + /** NetworkInterface stackType */ stackType?: (string|null); @@ -134741,6 +141028,9 @@ export namespace google { /** NetworkInterface queueCount. */ public queueCount?: (number|null); + /** NetworkInterface serviceClassId. */ + public serviceClassId?: (string|null); + /** NetworkInterface stackType. */ public stackType?: (string|null); @@ -147064,6 +153354,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.v1.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.v1.IPatchRegionBackendBucketRequest); + + /** PatchRegionBackendBucketRequest backendBucket. */ + public backendBucket: string; + + /** PatchRegionBackendBucketRequest backendBucketResource. */ + public backendBucketResource?: (google.cloud.compute.v1.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.v1.IPatchRegionBackendBucketRequest): google.cloud.compute.v1.PatchRegionBackendBucketRequest; + + /** + * Encodes the specified PatchRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1.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.v1.IPatchRegionBackendBucketRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PatchRegionBackendBucketRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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 { @@ -148159,6 +154570,127 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a PatchRegionSnapshotSettingRequest. */ + interface IPatchRegionSnapshotSettingRequest { + + /** PatchRegionSnapshotSettingRequest project */ + project?: (string|null); + + /** PatchRegionSnapshotSettingRequest region */ + region?: (string|null); + + /** PatchRegionSnapshotSettingRequest requestId */ + requestId?: (string|null); + + /** PatchRegionSnapshotSettingRequest snapshotSettingsResource */ + snapshotSettingsResource?: (google.cloud.compute.v1.ISnapshotSettings|null); + + /** PatchRegionSnapshotSettingRequest updateMask */ + updateMask?: (string|null); + } + + /** Represents a PatchRegionSnapshotSettingRequest. */ + class PatchRegionSnapshotSettingRequest implements IPatchRegionSnapshotSettingRequest { + + /** + * Constructs a new PatchRegionSnapshotSettingRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IPatchRegionSnapshotSettingRequest); + + /** PatchRegionSnapshotSettingRequest project. */ + public project: string; + + /** PatchRegionSnapshotSettingRequest region. */ + public region: string; + + /** PatchRegionSnapshotSettingRequest requestId. */ + public requestId?: (string|null); + + /** PatchRegionSnapshotSettingRequest snapshotSettingsResource. */ + public snapshotSettingsResource?: (google.cloud.compute.v1.ISnapshotSettings|null); + + /** PatchRegionSnapshotSettingRequest updateMask. */ + public updateMask?: (string|null); + + /** + * Creates a new PatchRegionSnapshotSettingRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PatchRegionSnapshotSettingRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IPatchRegionSnapshotSettingRequest): google.cloud.compute.v1.PatchRegionSnapshotSettingRequest; + + /** + * Encodes the specified PatchRegionSnapshotSettingRequest message. Does not implicitly {@link google.cloud.compute.v1.PatchRegionSnapshotSettingRequest.verify|verify} messages. + * @param message PatchRegionSnapshotSettingRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IPatchRegionSnapshotSettingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PatchRegionSnapshotSettingRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.PatchRegionSnapshotSettingRequest.verify|verify} messages. + * @param message PatchRegionSnapshotSettingRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IPatchRegionSnapshotSettingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PatchRegionSnapshotSettingRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PatchRegionSnapshotSettingRequest + * @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.v1.PatchRegionSnapshotSettingRequest; + + /** + * Decodes a PatchRegionSnapshotSettingRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PatchRegionSnapshotSettingRequest + * @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.v1.PatchRegionSnapshotSettingRequest; + + /** + * Verifies a PatchRegionSnapshotSettingRequest 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 PatchRegionSnapshotSettingRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PatchRegionSnapshotSettingRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.PatchRegionSnapshotSettingRequest; + + /** + * Creates a plain object from a PatchRegionSnapshotSettingRequest message. Also converts values to other types if specified. + * @param message PatchRegionSnapshotSettingRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.PatchRegionSnapshotSettingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PatchRegionSnapshotSettingRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PatchRegionSnapshotSettingRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a PatchRegionSslPolicyRequest. */ interface IPatchRegionSslPolicyRequest { @@ -156995,6 +163527,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a RegionDiskUpdateKmsKeyRequest. */ + interface IRegionDiskUpdateKmsKeyRequest { + + /** RegionDiskUpdateKmsKeyRequest kmsKeyName */ + kmsKeyName?: (string|null); + } + + /** Represents a RegionDiskUpdateKmsKeyRequest. */ + class RegionDiskUpdateKmsKeyRequest implements IRegionDiskUpdateKmsKeyRequest { + + /** + * Constructs a new RegionDiskUpdateKmsKeyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IRegionDiskUpdateKmsKeyRequest); + + /** RegionDiskUpdateKmsKeyRequest kmsKeyName. */ + public kmsKeyName?: (string|null); + + /** + * Creates a new RegionDiskUpdateKmsKeyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RegionDiskUpdateKmsKeyRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IRegionDiskUpdateKmsKeyRequest): google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest; + + /** + * Encodes the specified RegionDiskUpdateKmsKeyRequest message. Does not implicitly {@link google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest.verify|verify} messages. + * @param message RegionDiskUpdateKmsKeyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IRegionDiskUpdateKmsKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RegionDiskUpdateKmsKeyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest.verify|verify} messages. + * @param message RegionDiskUpdateKmsKeyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IRegionDiskUpdateKmsKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RegionDiskUpdateKmsKeyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RegionDiskUpdateKmsKeyRequest + * @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.v1.RegionDiskUpdateKmsKeyRequest; + + /** + * Decodes a RegionDiskUpdateKmsKeyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RegionDiskUpdateKmsKeyRequest + * @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.v1.RegionDiskUpdateKmsKeyRequest; + + /** + * Verifies a RegionDiskUpdateKmsKeyRequest 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 RegionDiskUpdateKmsKeyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RegionDiskUpdateKmsKeyRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest; + + /** + * Creates a plain object from a RegionDiskUpdateKmsKeyRequest message. Also converts values to other types if specified. + * @param message RegionDiskUpdateKmsKeyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RegionDiskUpdateKmsKeyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RegionDiskUpdateKmsKeyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a RegionDisksAddResourcePoliciesRequest. */ interface IRegionDisksAddResourcePoliciesRequest { @@ -157831,6 +164460,145 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a RegionInstanceGroupManagerResizeRequestsListResponse. */ + interface IRegionInstanceGroupManagerResizeRequestsListResponse { + + /** RegionInstanceGroupManagerResizeRequestsListResponse etag */ + etag?: (string|null); + + /** RegionInstanceGroupManagerResizeRequestsListResponse id */ + id?: (string|null); + + /** RegionInstanceGroupManagerResizeRequestsListResponse items */ + items?: (google.cloud.compute.v1.IInstanceGroupManagerResizeRequest[]|null); + + /** RegionInstanceGroupManagerResizeRequestsListResponse kind */ + kind?: (string|null); + + /** RegionInstanceGroupManagerResizeRequestsListResponse nextPageToken */ + nextPageToken?: (string|null); + + /** RegionInstanceGroupManagerResizeRequestsListResponse selfLink */ + selfLink?: (string|null); + + /** RegionInstanceGroupManagerResizeRequestsListResponse unreachables */ + unreachables?: (string[]|null); + + /** RegionInstanceGroupManagerResizeRequestsListResponse warning */ + warning?: (google.cloud.compute.v1.IWarning|null); + } + + /** Represents a RegionInstanceGroupManagerResizeRequestsListResponse. */ + class RegionInstanceGroupManagerResizeRequestsListResponse implements IRegionInstanceGroupManagerResizeRequestsListResponse { + + /** + * Constructs a new RegionInstanceGroupManagerResizeRequestsListResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IRegionInstanceGroupManagerResizeRequestsListResponse); + + /** RegionInstanceGroupManagerResizeRequestsListResponse etag. */ + public etag?: (string|null); + + /** RegionInstanceGroupManagerResizeRequestsListResponse id. */ + public id?: (string|null); + + /** RegionInstanceGroupManagerResizeRequestsListResponse items. */ + public items: google.cloud.compute.v1.IInstanceGroupManagerResizeRequest[]; + + /** RegionInstanceGroupManagerResizeRequestsListResponse kind. */ + public kind?: (string|null); + + /** RegionInstanceGroupManagerResizeRequestsListResponse nextPageToken. */ + public nextPageToken?: (string|null); + + /** RegionInstanceGroupManagerResizeRequestsListResponse selfLink. */ + public selfLink?: (string|null); + + /** RegionInstanceGroupManagerResizeRequestsListResponse unreachables. */ + public unreachables: string[]; + + /** RegionInstanceGroupManagerResizeRequestsListResponse warning. */ + public warning?: (google.cloud.compute.v1.IWarning|null); + + /** + * Creates a new RegionInstanceGroupManagerResizeRequestsListResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RegionInstanceGroupManagerResizeRequestsListResponse instance + */ + public static create(properties?: google.cloud.compute.v1.IRegionInstanceGroupManagerResizeRequestsListResponse): google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse; + + /** + * Encodes the specified RegionInstanceGroupManagerResizeRequestsListResponse message. Does not implicitly {@link google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse.verify|verify} messages. + * @param message RegionInstanceGroupManagerResizeRequestsListResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IRegionInstanceGroupManagerResizeRequestsListResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RegionInstanceGroupManagerResizeRequestsListResponse message, length delimited. Does not implicitly {@link google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse.verify|verify} messages. + * @param message RegionInstanceGroupManagerResizeRequestsListResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IRegionInstanceGroupManagerResizeRequestsListResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RegionInstanceGroupManagerResizeRequestsListResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RegionInstanceGroupManagerResizeRequestsListResponse + * @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.v1.RegionInstanceGroupManagerResizeRequestsListResponse; + + /** + * Decodes a RegionInstanceGroupManagerResizeRequestsListResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RegionInstanceGroupManagerResizeRequestsListResponse + * @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.v1.RegionInstanceGroupManagerResizeRequestsListResponse; + + /** + * Verifies a RegionInstanceGroupManagerResizeRequestsListResponse 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 RegionInstanceGroupManagerResizeRequestsListResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RegionInstanceGroupManagerResizeRequestsListResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse; + + /** + * Creates a plain object from a RegionInstanceGroupManagerResizeRequestsListResponse message. Also converts values to other types if specified. + * @param message RegionInstanceGroupManagerResizeRequestsListResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RegionInstanceGroupManagerResizeRequestsListResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RegionInstanceGroupManagerResizeRequestsListResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a RegionInstanceGroupManagerUpdateInstanceConfigReq. */ interface IRegionInstanceGroupManagerUpdateInstanceConfigReq { @@ -160485,6 +167253,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a RegionSnapshotUpdateKmsKeyRequest. */ + interface IRegionSnapshotUpdateKmsKeyRequest { + + /** RegionSnapshotUpdateKmsKeyRequest kmsKeyName */ + kmsKeyName?: (string|null); + } + + /** Represents a RegionSnapshotUpdateKmsKeyRequest. */ + class RegionSnapshotUpdateKmsKeyRequest implements IRegionSnapshotUpdateKmsKeyRequest { + + /** + * Constructs a new RegionSnapshotUpdateKmsKeyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IRegionSnapshotUpdateKmsKeyRequest); + + /** RegionSnapshotUpdateKmsKeyRequest kmsKeyName. */ + public kmsKeyName?: (string|null); + + /** + * Creates a new RegionSnapshotUpdateKmsKeyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RegionSnapshotUpdateKmsKeyRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IRegionSnapshotUpdateKmsKeyRequest): google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest; + + /** + * Encodes the specified RegionSnapshotUpdateKmsKeyRequest message. Does not implicitly {@link google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest.verify|verify} messages. + * @param message RegionSnapshotUpdateKmsKeyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IRegionSnapshotUpdateKmsKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RegionSnapshotUpdateKmsKeyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest.verify|verify} messages. + * @param message RegionSnapshotUpdateKmsKeyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IRegionSnapshotUpdateKmsKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RegionSnapshotUpdateKmsKeyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RegionSnapshotUpdateKmsKeyRequest + * @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.v1.RegionSnapshotUpdateKmsKeyRequest; + + /** + * Decodes a RegionSnapshotUpdateKmsKeyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RegionSnapshotUpdateKmsKeyRequest + * @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.v1.RegionSnapshotUpdateKmsKeyRequest; + + /** + * Verifies a RegionSnapshotUpdateKmsKeyRequest 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 RegionSnapshotUpdateKmsKeyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RegionSnapshotUpdateKmsKeyRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest; + + /** + * Creates a plain object from a RegionSnapshotUpdateKmsKeyRequest message. Also converts values to other types if specified. + * @param message RegionSnapshotUpdateKmsKeyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RegionSnapshotUpdateKmsKeyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RegionSnapshotUpdateKmsKeyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a RegionTargetHttpsProxiesSetSslCertificatesRequest. */ interface IRegionTargetHttpsProxiesSetSslCertificatesRequest { @@ -163245,6 +170110,9 @@ export namespace google { /** Reservation commitment */ commitment?: (string|null); + /** Reservation confidentialComputeType */ + confidentialComputeType?: (string|null); + /** Reservation creationTimestamp */ creationTimestamp?: (string|null); @@ -163336,6 +170204,9 @@ export namespace google { /** Reservation commitment. */ public commitment?: (string|null); + /** Reservation confidentialComputeType. */ + public confidentialComputeType?: (string|null); + /** Reservation creationTimestamp. */ public creationTimestamp?: (string|null); @@ -163488,6 +170359,13 @@ export namespace google { namespace Reservation { + /** ConfidentialComputeType enum. */ + enum ConfidentialComputeType { + UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE = 0, + CONFIDENTIAL_COMPUTE_TYPE_TDX = 301241954, + CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED = 42227601 + } + /** DeploymentType enum. */ enum DeploymentType { UNDEFINED_DEPLOYMENT_TYPE = 0, @@ -184726,6 +191604,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a SetIamPolicyInstantSnapshotGroupRequest. */ + interface ISetIamPolicyInstantSnapshotGroupRequest { + + /** SetIamPolicyInstantSnapshotGroupRequest project */ + project?: (string|null); + + /** SetIamPolicyInstantSnapshotGroupRequest resource */ + resource?: (string|null); + + /** SetIamPolicyInstantSnapshotGroupRequest zone */ + zone?: (string|null); + + /** SetIamPolicyInstantSnapshotGroupRequest zoneSetPolicyRequestResource */ + zoneSetPolicyRequestResource?: (google.cloud.compute.v1.IZoneSetPolicyRequest|null); + } + + /** Represents a SetIamPolicyInstantSnapshotGroupRequest. */ + class SetIamPolicyInstantSnapshotGroupRequest implements ISetIamPolicyInstantSnapshotGroupRequest { + + /** + * Constructs a new SetIamPolicyInstantSnapshotGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISetIamPolicyInstantSnapshotGroupRequest); + + /** SetIamPolicyInstantSnapshotGroupRequest project. */ + public project: string; + + /** SetIamPolicyInstantSnapshotGroupRequest resource. */ + public resource: string; + + /** SetIamPolicyInstantSnapshotGroupRequest zone. */ + public zone: string; + + /** SetIamPolicyInstantSnapshotGroupRequest zoneSetPolicyRequestResource. */ + public zoneSetPolicyRequestResource?: (google.cloud.compute.v1.IZoneSetPolicyRequest|null); + + /** + * Creates a new SetIamPolicyInstantSnapshotGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetIamPolicyInstantSnapshotGroupRequest instance + */ + public static create(properties?: google.cloud.compute.v1.ISetIamPolicyInstantSnapshotGroupRequest): google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest; + + /** + * Encodes the specified SetIamPolicyInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest.verify|verify} messages. + * @param message SetIamPolicyInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISetIamPolicyInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetIamPolicyInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest.verify|verify} messages. + * @param message SetIamPolicyInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISetIamPolicyInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetIamPolicyInstantSnapshotGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetIamPolicyInstantSnapshotGroupRequest + * @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.v1.SetIamPolicyInstantSnapshotGroupRequest; + + /** + * Decodes a SetIamPolicyInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetIamPolicyInstantSnapshotGroupRequest + * @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.v1.SetIamPolicyInstantSnapshotGroupRequest; + + /** + * Verifies a SetIamPolicyInstantSnapshotGroupRequest 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 SetIamPolicyInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetIamPolicyInstantSnapshotGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest; + + /** + * Creates a plain object from a SetIamPolicyInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @param message SetIamPolicyInstantSnapshotGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetIamPolicyInstantSnapshotGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetIamPolicyInstantSnapshotGroupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a SetIamPolicyInstantSnapshotRequest. */ interface ISetIamPolicyInstantSnapshotRequest { @@ -185731,6 +192724,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.v1.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.v1.ISetIamPolicyRegionBackendBucketRequest); + + /** SetIamPolicyRegionBackendBucketRequest project. */ + public project: string; + + /** SetIamPolicyRegionBackendBucketRequest region. */ + public region: string; + + /** SetIamPolicyRegionBackendBucketRequest regionSetPolicyRequestResource. */ + public regionSetPolicyRequestResource?: (google.cloud.compute.v1.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.v1.ISetIamPolicyRegionBackendBucketRequest): google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest; + + /** + * Encodes the specified SetIamPolicyRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1.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.v1.ISetIamPolicyRegionBackendBucketRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetIamPolicyRegionBackendBucketRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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 { @@ -185961,6 +193069,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a SetIamPolicyRegionInstantSnapshotGroupRequest. */ + interface ISetIamPolicyRegionInstantSnapshotGroupRequest { + + /** SetIamPolicyRegionInstantSnapshotGroupRequest project */ + project?: (string|null); + + /** SetIamPolicyRegionInstantSnapshotGroupRequest region */ + region?: (string|null); + + /** SetIamPolicyRegionInstantSnapshotGroupRequest regionSetPolicyRequestResource */ + regionSetPolicyRequestResource?: (google.cloud.compute.v1.IRegionSetPolicyRequest|null); + + /** SetIamPolicyRegionInstantSnapshotGroupRequest resource */ + resource?: (string|null); + } + + /** Represents a SetIamPolicyRegionInstantSnapshotGroupRequest. */ + class SetIamPolicyRegionInstantSnapshotGroupRequest implements ISetIamPolicyRegionInstantSnapshotGroupRequest { + + /** + * Constructs a new SetIamPolicyRegionInstantSnapshotGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotGroupRequest); + + /** SetIamPolicyRegionInstantSnapshotGroupRequest project. */ + public project: string; + + /** SetIamPolicyRegionInstantSnapshotGroupRequest region. */ + public region: string; + + /** SetIamPolicyRegionInstantSnapshotGroupRequest regionSetPolicyRequestResource. */ + public regionSetPolicyRequestResource?: (google.cloud.compute.v1.IRegionSetPolicyRequest|null); + + /** SetIamPolicyRegionInstantSnapshotGroupRequest resource. */ + public resource: string; + + /** + * Creates a new SetIamPolicyRegionInstantSnapshotGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetIamPolicyRegionInstantSnapshotGroupRequest instance + */ + public static create(properties?: google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotGroupRequest): google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest; + + /** + * Encodes the specified SetIamPolicyRegionInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @param message SetIamPolicyRegionInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetIamPolicyRegionInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @param message SetIamPolicyRegionInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetIamPolicyRegionInstantSnapshotGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetIamPolicyRegionInstantSnapshotGroupRequest + * @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.v1.SetIamPolicyRegionInstantSnapshotGroupRequest; + + /** + * Decodes a SetIamPolicyRegionInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetIamPolicyRegionInstantSnapshotGroupRequest + * @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.v1.SetIamPolicyRegionInstantSnapshotGroupRequest; + + /** + * Verifies a SetIamPolicyRegionInstantSnapshotGroupRequest 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 SetIamPolicyRegionInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetIamPolicyRegionInstantSnapshotGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest; + + /** + * Creates a plain object from a SetIamPolicyRegionInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @param message SetIamPolicyRegionInstantSnapshotGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetIamPolicyRegionInstantSnapshotGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetIamPolicyRegionInstantSnapshotGroupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a SetIamPolicyRegionInstantSnapshotRequest. */ interface ISetIamPolicyRegionInstantSnapshotRequest { @@ -186191,6 +193414,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a SetIamPolicyRegionSnapshotRequest. */ + interface ISetIamPolicyRegionSnapshotRequest { + + /** SetIamPolicyRegionSnapshotRequest project */ + project?: (string|null); + + /** SetIamPolicyRegionSnapshotRequest region */ + region?: (string|null); + + /** SetIamPolicyRegionSnapshotRequest regionSetPolicyRequestResource */ + regionSetPolicyRequestResource?: (google.cloud.compute.v1.IRegionSetPolicyRequest|null); + + /** SetIamPolicyRegionSnapshotRequest resource */ + resource?: (string|null); + } + + /** Represents a SetIamPolicyRegionSnapshotRequest. */ + class SetIamPolicyRegionSnapshotRequest implements ISetIamPolicyRegionSnapshotRequest { + + /** + * Constructs a new SetIamPolicyRegionSnapshotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISetIamPolicyRegionSnapshotRequest); + + /** SetIamPolicyRegionSnapshotRequest project. */ + public project: string; + + /** SetIamPolicyRegionSnapshotRequest region. */ + public region: string; + + /** SetIamPolicyRegionSnapshotRequest regionSetPolicyRequestResource. */ + public regionSetPolicyRequestResource?: (google.cloud.compute.v1.IRegionSetPolicyRequest|null); + + /** SetIamPolicyRegionSnapshotRequest resource. */ + public resource: string; + + /** + * Creates a new SetIamPolicyRegionSnapshotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetIamPolicyRegionSnapshotRequest instance + */ + public static create(properties?: google.cloud.compute.v1.ISetIamPolicyRegionSnapshotRequest): google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest; + + /** + * Encodes the specified SetIamPolicyRegionSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest.verify|verify} messages. + * @param message SetIamPolicyRegionSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISetIamPolicyRegionSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetIamPolicyRegionSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest.verify|verify} messages. + * @param message SetIamPolicyRegionSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISetIamPolicyRegionSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetIamPolicyRegionSnapshotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetIamPolicyRegionSnapshotRequest + * @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.v1.SetIamPolicyRegionSnapshotRequest; + + /** + * Decodes a SetIamPolicyRegionSnapshotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetIamPolicyRegionSnapshotRequest + * @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.v1.SetIamPolicyRegionSnapshotRequest; + + /** + * Verifies a SetIamPolicyRegionSnapshotRequest 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 SetIamPolicyRegionSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetIamPolicyRegionSnapshotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest; + + /** + * Creates a plain object from a SetIamPolicyRegionSnapshotRequest message. Also converts values to other types if specified. + * @param message SetIamPolicyRegionSnapshotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetIamPolicyRegionSnapshotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetIamPolicyRegionSnapshotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a SetIamPolicyReservationBlockRequest. */ interface ISetIamPolicyReservationBlockRequest { @@ -189102,6 +196440,127 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a SetLabelsRegionSnapshotRequest. */ + interface ISetLabelsRegionSnapshotRequest { + + /** SetLabelsRegionSnapshotRequest project */ + project?: (string|null); + + /** SetLabelsRegionSnapshotRequest region */ + region?: (string|null); + + /** SetLabelsRegionSnapshotRequest regionSetLabelsRequestResource */ + regionSetLabelsRequestResource?: (google.cloud.compute.v1.IRegionSetLabelsRequest|null); + + /** SetLabelsRegionSnapshotRequest requestId */ + requestId?: (string|null); + + /** SetLabelsRegionSnapshotRequest resource */ + resource?: (string|null); + } + + /** Represents a SetLabelsRegionSnapshotRequest. */ + class SetLabelsRegionSnapshotRequest implements ISetLabelsRegionSnapshotRequest { + + /** + * Constructs a new SetLabelsRegionSnapshotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISetLabelsRegionSnapshotRequest); + + /** SetLabelsRegionSnapshotRequest project. */ + public project: string; + + /** SetLabelsRegionSnapshotRequest region. */ + public region: string; + + /** SetLabelsRegionSnapshotRequest regionSetLabelsRequestResource. */ + public regionSetLabelsRequestResource?: (google.cloud.compute.v1.IRegionSetLabelsRequest|null); + + /** SetLabelsRegionSnapshotRequest requestId. */ + public requestId?: (string|null); + + /** SetLabelsRegionSnapshotRequest resource. */ + public resource: string; + + /** + * Creates a new SetLabelsRegionSnapshotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetLabelsRegionSnapshotRequest instance + */ + public static create(properties?: google.cloud.compute.v1.ISetLabelsRegionSnapshotRequest): google.cloud.compute.v1.SetLabelsRegionSnapshotRequest; + + /** + * Encodes the specified SetLabelsRegionSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.SetLabelsRegionSnapshotRequest.verify|verify} messages. + * @param message SetLabelsRegionSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISetLabelsRegionSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetLabelsRegionSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetLabelsRegionSnapshotRequest.verify|verify} messages. + * @param message SetLabelsRegionSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISetLabelsRegionSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetLabelsRegionSnapshotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetLabelsRegionSnapshotRequest + * @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.v1.SetLabelsRegionSnapshotRequest; + + /** + * Decodes a SetLabelsRegionSnapshotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetLabelsRegionSnapshotRequest + * @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.v1.SetLabelsRegionSnapshotRequest; + + /** + * Verifies a SetLabelsRegionSnapshotRequest 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 SetLabelsRegionSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetLabelsRegionSnapshotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SetLabelsRegionSnapshotRequest; + + /** + * Creates a plain object from a SetLabelsRegionSnapshotRequest message. Also converts values to other types if specified. + * @param message SetLabelsRegionSnapshotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SetLabelsRegionSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetLabelsRegionSnapshotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetLabelsRegionSnapshotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a SetLabelsSecurityPolicyRequest. */ interface ISetLabelsSecurityPolicyRequest { @@ -194890,6 +202349,9 @@ export namespace google { /** Snapshot params */ params?: (google.cloud.compute.v1.ISnapshotParams|null); + /** Snapshot region */ + region?: (string|null); + /** Snapshot satisfiesPzi */ satisfiesPzi?: (boolean|null); @@ -194902,6 +202364,12 @@ export namespace google { /** Snapshot snapshotEncryptionKey */ snapshotEncryptionKey?: (google.cloud.compute.v1.ICustomerEncryptionKey|null); + /** Snapshot snapshotGroupId */ + snapshotGroupId?: (string|null); + + /** Snapshot snapshotGroupName */ + snapshotGroupName?: (string|null); + /** Snapshot snapshotType */ snapshotType?: (string|null); @@ -195014,6 +202482,9 @@ export namespace google { /** Snapshot params. */ public params?: (google.cloud.compute.v1.ISnapshotParams|null); + /** Snapshot region. */ + public region?: (string|null); + /** Snapshot satisfiesPzi. */ public satisfiesPzi?: (boolean|null); @@ -195026,6 +202497,12 @@ export namespace google { /** Snapshot snapshotEncryptionKey. */ public snapshotEncryptionKey?: (google.cloud.compute.v1.ICustomerEncryptionKey|null); + /** Snapshot snapshotGroupId. */ + public snapshotGroupId?: (string|null); + + /** Snapshot snapshotGroupName. */ + public snapshotGroupName?: (string|null); + /** Snapshot snapshotType. */ public snapshotType?: (string|null); @@ -195181,6 +202658,115 @@ export namespace google { } } + /** Properties of a SnapshotGroupParameters. */ + interface ISnapshotGroupParameters { + + /** SnapshotGroupParameters replicaZones */ + replicaZones?: (string[]|null); + + /** SnapshotGroupParameters sourceSnapshotGroup */ + sourceSnapshotGroup?: (string|null); + + /** SnapshotGroupParameters type */ + type?: (string|null); + } + + /** Represents a SnapshotGroupParameters. */ + class SnapshotGroupParameters implements ISnapshotGroupParameters { + + /** + * Constructs a new SnapshotGroupParameters. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISnapshotGroupParameters); + + /** SnapshotGroupParameters replicaZones. */ + public replicaZones: string[]; + + /** SnapshotGroupParameters sourceSnapshotGroup. */ + public sourceSnapshotGroup?: (string|null); + + /** SnapshotGroupParameters type. */ + public type?: (string|null); + + /** + * Creates a new SnapshotGroupParameters instance using the specified properties. + * @param [properties] Properties to set + * @returns SnapshotGroupParameters instance + */ + public static create(properties?: google.cloud.compute.v1.ISnapshotGroupParameters): google.cloud.compute.v1.SnapshotGroupParameters; + + /** + * Encodes the specified SnapshotGroupParameters message. Does not implicitly {@link google.cloud.compute.v1.SnapshotGroupParameters.verify|verify} messages. + * @param message SnapshotGroupParameters message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISnapshotGroupParameters, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SnapshotGroupParameters message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SnapshotGroupParameters.verify|verify} messages. + * @param message SnapshotGroupParameters message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISnapshotGroupParameters, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SnapshotGroupParameters message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SnapshotGroupParameters + * @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.v1.SnapshotGroupParameters; + + /** + * Decodes a SnapshotGroupParameters message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SnapshotGroupParameters + * @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.v1.SnapshotGroupParameters; + + /** + * Verifies a SnapshotGroupParameters 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 SnapshotGroupParameters message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SnapshotGroupParameters + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SnapshotGroupParameters; + + /** + * Creates a plain object from a SnapshotGroupParameters message. Also converts values to other types if specified. + * @param message SnapshotGroupParameters + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SnapshotGroupParameters, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SnapshotGroupParameters to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SnapshotGroupParameters + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a SnapshotList. */ interface ISnapshotList { @@ -195408,6 +202994,9 @@ export namespace google { /** Properties of a SnapshotSettings. */ interface ISnapshotSettings { + /** SnapshotSettings accessLocation */ + accessLocation?: (google.cloud.compute.v1.ISnapshotSettingsAccessLocation|null); + /** SnapshotSettings storageLocation */ storageLocation?: (google.cloud.compute.v1.ISnapshotSettingsStorageLocationSettings|null); } @@ -195421,6 +203010,9 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1.ISnapshotSettings); + /** SnapshotSettings accessLocation. */ + public accessLocation?: (google.cloud.compute.v1.ISnapshotSettingsAccessLocation|null); + /** SnapshotSettings storageLocation. */ public storageLocation?: (google.cloud.compute.v1.ISnapshotSettingsStorageLocationSettings|null); @@ -195502,6 +203094,217 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a SnapshotSettingsAccessLocation. */ + interface ISnapshotSettingsAccessLocation { + + /** SnapshotSettingsAccessLocation locations */ + locations?: ({ [k: string]: google.cloud.compute.v1.ISnapshotSettingsAccessLocationAccessLocationPreference }|null); + + /** SnapshotSettingsAccessLocation policy */ + policy?: (string|null); + } + + /** Represents a SnapshotSettingsAccessLocation. */ + class SnapshotSettingsAccessLocation implements ISnapshotSettingsAccessLocation { + + /** + * Constructs a new SnapshotSettingsAccessLocation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISnapshotSettingsAccessLocation); + + /** SnapshotSettingsAccessLocation locations. */ + public locations: { [k: string]: google.cloud.compute.v1.ISnapshotSettingsAccessLocationAccessLocationPreference }; + + /** SnapshotSettingsAccessLocation policy. */ + public policy?: (string|null); + + /** + * Creates a new SnapshotSettingsAccessLocation instance using the specified properties. + * @param [properties] Properties to set + * @returns SnapshotSettingsAccessLocation instance + */ + public static create(properties?: google.cloud.compute.v1.ISnapshotSettingsAccessLocation): google.cloud.compute.v1.SnapshotSettingsAccessLocation; + + /** + * Encodes the specified SnapshotSettingsAccessLocation message. Does not implicitly {@link google.cloud.compute.v1.SnapshotSettingsAccessLocation.verify|verify} messages. + * @param message SnapshotSettingsAccessLocation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISnapshotSettingsAccessLocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SnapshotSettingsAccessLocation message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SnapshotSettingsAccessLocation.verify|verify} messages. + * @param message SnapshotSettingsAccessLocation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISnapshotSettingsAccessLocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SnapshotSettingsAccessLocation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SnapshotSettingsAccessLocation + * @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.v1.SnapshotSettingsAccessLocation; + + /** + * Decodes a SnapshotSettingsAccessLocation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SnapshotSettingsAccessLocation + * @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.v1.SnapshotSettingsAccessLocation; + + /** + * Verifies a SnapshotSettingsAccessLocation 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 SnapshotSettingsAccessLocation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SnapshotSettingsAccessLocation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SnapshotSettingsAccessLocation; + + /** + * Creates a plain object from a SnapshotSettingsAccessLocation message. Also converts values to other types if specified. + * @param message SnapshotSettingsAccessLocation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SnapshotSettingsAccessLocation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SnapshotSettingsAccessLocation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SnapshotSettingsAccessLocation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace SnapshotSettingsAccessLocation { + + /** Policy enum. */ + enum Policy { + UNDEFINED_POLICY = 0, + ALL_REGIONS = 273143585, + POLICY_UNSPECIFIED = 197974922, + SPECIFIC_REGIONS = 454128082 + } + } + + /** Properties of a SnapshotSettingsAccessLocationAccessLocationPreference. */ + interface ISnapshotSettingsAccessLocationAccessLocationPreference { + + /** SnapshotSettingsAccessLocationAccessLocationPreference region */ + region?: (string|null); + } + + /** Represents a SnapshotSettingsAccessLocationAccessLocationPreference. */ + class SnapshotSettingsAccessLocationAccessLocationPreference implements ISnapshotSettingsAccessLocationAccessLocationPreference { + + /** + * Constructs a new SnapshotSettingsAccessLocationAccessLocationPreference. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISnapshotSettingsAccessLocationAccessLocationPreference); + + /** SnapshotSettingsAccessLocationAccessLocationPreference region. */ + public region?: (string|null); + + /** + * Creates a new SnapshotSettingsAccessLocationAccessLocationPreference instance using the specified properties. + * @param [properties] Properties to set + * @returns SnapshotSettingsAccessLocationAccessLocationPreference instance + */ + public static create(properties?: google.cloud.compute.v1.ISnapshotSettingsAccessLocationAccessLocationPreference): google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference; + + /** + * Encodes the specified SnapshotSettingsAccessLocationAccessLocationPreference message. Does not implicitly {@link google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference.verify|verify} messages. + * @param message SnapshotSettingsAccessLocationAccessLocationPreference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISnapshotSettingsAccessLocationAccessLocationPreference, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SnapshotSettingsAccessLocationAccessLocationPreference message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference.verify|verify} messages. + * @param message SnapshotSettingsAccessLocationAccessLocationPreference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISnapshotSettingsAccessLocationAccessLocationPreference, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SnapshotSettingsAccessLocationAccessLocationPreference message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SnapshotSettingsAccessLocationAccessLocationPreference + * @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.v1.SnapshotSettingsAccessLocationAccessLocationPreference; + + /** + * Decodes a SnapshotSettingsAccessLocationAccessLocationPreference message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SnapshotSettingsAccessLocationAccessLocationPreference + * @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.v1.SnapshotSettingsAccessLocationAccessLocationPreference; + + /** + * Verifies a SnapshotSettingsAccessLocationAccessLocationPreference 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 SnapshotSettingsAccessLocationAccessLocationPreference message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SnapshotSettingsAccessLocationAccessLocationPreference + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference; + + /** + * Creates a plain object from a SnapshotSettingsAccessLocationAccessLocationPreference message. Also converts values to other types if specified. + * @param message SnapshotSettingsAccessLocationAccessLocationPreference + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SnapshotSettingsAccessLocationAccessLocationPreference to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SnapshotSettingsAccessLocationAccessLocationPreference + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a SnapshotSettingsStorageLocationSettings. */ interface ISnapshotSettingsStorageLocationSettings { @@ -195714,6 +203517,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a SnapshotUpdateKmsKeyRequest. */ + interface ISnapshotUpdateKmsKeyRequest { + + /** SnapshotUpdateKmsKeyRequest kmsKeyName */ + kmsKeyName?: (string|null); + } + + /** Represents a SnapshotUpdateKmsKeyRequest. */ + class SnapshotUpdateKmsKeyRequest implements ISnapshotUpdateKmsKeyRequest { + + /** + * Constructs a new SnapshotUpdateKmsKeyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISnapshotUpdateKmsKeyRequest); + + /** SnapshotUpdateKmsKeyRequest kmsKeyName. */ + public kmsKeyName?: (string|null); + + /** + * Creates a new SnapshotUpdateKmsKeyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SnapshotUpdateKmsKeyRequest instance + */ + public static create(properties?: google.cloud.compute.v1.ISnapshotUpdateKmsKeyRequest): google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest; + + /** + * Encodes the specified SnapshotUpdateKmsKeyRequest message. Does not implicitly {@link google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest.verify|verify} messages. + * @param message SnapshotUpdateKmsKeyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISnapshotUpdateKmsKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SnapshotUpdateKmsKeyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest.verify|verify} messages. + * @param message SnapshotUpdateKmsKeyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISnapshotUpdateKmsKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SnapshotUpdateKmsKeyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SnapshotUpdateKmsKeyRequest + * @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.v1.SnapshotUpdateKmsKeyRequest; + + /** + * Decodes a SnapshotUpdateKmsKeyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SnapshotUpdateKmsKeyRequest + * @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.v1.SnapshotUpdateKmsKeyRequest; + + /** + * Verifies a SnapshotUpdateKmsKeyRequest 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 SnapshotUpdateKmsKeyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SnapshotUpdateKmsKeyRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest; + + /** + * Creates a plain object from a SnapshotUpdateKmsKeyRequest message. Also converts values to other types if specified. + * @param message SnapshotUpdateKmsKeyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SnapshotUpdateKmsKeyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SnapshotUpdateKmsKeyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a SourceDiskEncryptionKey. */ interface ISourceDiskEncryptionKey { @@ -211207,6 +219107,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a TestIamPermissionsInstantSnapshotGroupRequest. */ + interface ITestIamPermissionsInstantSnapshotGroupRequest { + + /** TestIamPermissionsInstantSnapshotGroupRequest project */ + project?: (string|null); + + /** TestIamPermissionsInstantSnapshotGroupRequest resource */ + resource?: (string|null); + + /** TestIamPermissionsInstantSnapshotGroupRequest testPermissionsRequestResource */ + testPermissionsRequestResource?: (google.cloud.compute.v1.ITestPermissionsRequest|null); + + /** TestIamPermissionsInstantSnapshotGroupRequest zone */ + zone?: (string|null); + } + + /** Represents a TestIamPermissionsInstantSnapshotGroupRequest. */ + class TestIamPermissionsInstantSnapshotGroupRequest implements ITestIamPermissionsInstantSnapshotGroupRequest { + + /** + * Constructs a new TestIamPermissionsInstantSnapshotGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotGroupRequest); + + /** TestIamPermissionsInstantSnapshotGroupRequest project. */ + public project: string; + + /** TestIamPermissionsInstantSnapshotGroupRequest resource. */ + public resource: string; + + /** TestIamPermissionsInstantSnapshotGroupRequest testPermissionsRequestResource. */ + public testPermissionsRequestResource?: (google.cloud.compute.v1.ITestPermissionsRequest|null); + + /** TestIamPermissionsInstantSnapshotGroupRequest zone. */ + public zone: string; + + /** + * Creates a new TestIamPermissionsInstantSnapshotGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TestIamPermissionsInstantSnapshotGroupRequest instance + */ + public static create(properties?: google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotGroupRequest): google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest; + + /** + * Encodes the specified TestIamPermissionsInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest.verify|verify} messages. + * @param message TestIamPermissionsInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TestIamPermissionsInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest.verify|verify} messages. + * @param message TestIamPermissionsInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TestIamPermissionsInstantSnapshotGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TestIamPermissionsInstantSnapshotGroupRequest + * @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.v1.TestIamPermissionsInstantSnapshotGroupRequest; + + /** + * Decodes a TestIamPermissionsInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TestIamPermissionsInstantSnapshotGroupRequest + * @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.v1.TestIamPermissionsInstantSnapshotGroupRequest; + + /** + * Verifies a TestIamPermissionsInstantSnapshotGroupRequest 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 TestIamPermissionsInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TestIamPermissionsInstantSnapshotGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest; + + /** + * Creates a plain object from a TestIamPermissionsInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @param message TestIamPermissionsInstantSnapshotGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TestIamPermissionsInstantSnapshotGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TestIamPermissionsInstantSnapshotGroupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a TestIamPermissionsInstantSnapshotRequest. */ interface ITestIamPermissionsInstantSnapshotRequest { @@ -212666,6 +220681,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.v1.ITestPermissionsRequest|null); + } + + /** Represents a TestIamPermissionsRegionBackendBucketRequest. */ + class TestIamPermissionsRegionBackendBucketRequest implements ITestIamPermissionsRegionBackendBucketRequest { + + /** + * Constructs a new TestIamPermissionsRegionBackendBucketRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ITestIamPermissionsRegionBackendBucketRequest); + + /** TestIamPermissionsRegionBackendBucketRequest project. */ + public project: string; + + /** TestIamPermissionsRegionBackendBucketRequest region. */ + public region: string; + + /** TestIamPermissionsRegionBackendBucketRequest resource. */ + public resource: string; + + /** TestIamPermissionsRegionBackendBucketRequest testPermissionsRequestResource. */ + public testPermissionsRequestResource?: (google.cloud.compute.v1.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.v1.ITestIamPermissionsRegionBackendBucketRequest): google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest; + + /** + * Encodes the specified TestIamPermissionsRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1.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.v1.ITestIamPermissionsRegionBackendBucketRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TestIamPermissionsRegionBackendBucketRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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 { @@ -213586,6 +221716,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a TestIamPermissionsRegionInstantSnapshotGroupRequest. */ + interface ITestIamPermissionsRegionInstantSnapshotGroupRequest { + + /** TestIamPermissionsRegionInstantSnapshotGroupRequest project */ + project?: (string|null); + + /** TestIamPermissionsRegionInstantSnapshotGroupRequest region */ + region?: (string|null); + + /** TestIamPermissionsRegionInstantSnapshotGroupRequest resource */ + resource?: (string|null); + + /** TestIamPermissionsRegionInstantSnapshotGroupRequest testPermissionsRequestResource */ + testPermissionsRequestResource?: (google.cloud.compute.v1.ITestPermissionsRequest|null); + } + + /** Represents a TestIamPermissionsRegionInstantSnapshotGroupRequest. */ + class TestIamPermissionsRegionInstantSnapshotGroupRequest implements ITestIamPermissionsRegionInstantSnapshotGroupRequest { + + /** + * Constructs a new TestIamPermissionsRegionInstantSnapshotGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotGroupRequest); + + /** TestIamPermissionsRegionInstantSnapshotGroupRequest project. */ + public project: string; + + /** TestIamPermissionsRegionInstantSnapshotGroupRequest region. */ + public region: string; + + /** TestIamPermissionsRegionInstantSnapshotGroupRequest resource. */ + public resource: string; + + /** TestIamPermissionsRegionInstantSnapshotGroupRequest testPermissionsRequestResource. */ + public testPermissionsRequestResource?: (google.cloud.compute.v1.ITestPermissionsRequest|null); + + /** + * Creates a new TestIamPermissionsRegionInstantSnapshotGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TestIamPermissionsRegionInstantSnapshotGroupRequest instance + */ + public static create(properties?: google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotGroupRequest): google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest; + + /** + * Encodes the specified TestIamPermissionsRegionInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @param message TestIamPermissionsRegionInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TestIamPermissionsRegionInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @param message TestIamPermissionsRegionInstantSnapshotGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TestIamPermissionsRegionInstantSnapshotGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TestIamPermissionsRegionInstantSnapshotGroupRequest + * @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.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest; + + /** + * Decodes a TestIamPermissionsRegionInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TestIamPermissionsRegionInstantSnapshotGroupRequest + * @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.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest; + + /** + * Verifies a TestIamPermissionsRegionInstantSnapshotGroupRequest 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 TestIamPermissionsRegionInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TestIamPermissionsRegionInstantSnapshotGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest; + + /** + * Creates a plain object from a TestIamPermissionsRegionInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @param message TestIamPermissionsRegionInstantSnapshotGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TestIamPermissionsRegionInstantSnapshotGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TestIamPermissionsRegionInstantSnapshotGroupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a TestIamPermissionsRegionInstantSnapshotRequest. */ interface ITestIamPermissionsRegionInstantSnapshotRequest { @@ -213931,6 +222176,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a TestIamPermissionsRegionSnapshotRequest. */ + interface ITestIamPermissionsRegionSnapshotRequest { + + /** TestIamPermissionsRegionSnapshotRequest project */ + project?: (string|null); + + /** TestIamPermissionsRegionSnapshotRequest region */ + region?: (string|null); + + /** TestIamPermissionsRegionSnapshotRequest resource */ + resource?: (string|null); + + /** TestIamPermissionsRegionSnapshotRequest testPermissionsRequestResource */ + testPermissionsRequestResource?: (google.cloud.compute.v1.ITestPermissionsRequest|null); + } + + /** Represents a TestIamPermissionsRegionSnapshotRequest. */ + class TestIamPermissionsRegionSnapshotRequest implements ITestIamPermissionsRegionSnapshotRequest { + + /** + * Constructs a new TestIamPermissionsRegionSnapshotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ITestIamPermissionsRegionSnapshotRequest); + + /** TestIamPermissionsRegionSnapshotRequest project. */ + public project: string; + + /** TestIamPermissionsRegionSnapshotRequest region. */ + public region: string; + + /** TestIamPermissionsRegionSnapshotRequest resource. */ + public resource: string; + + /** TestIamPermissionsRegionSnapshotRequest testPermissionsRequestResource. */ + public testPermissionsRequestResource?: (google.cloud.compute.v1.ITestPermissionsRequest|null); + + /** + * Creates a new TestIamPermissionsRegionSnapshotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TestIamPermissionsRegionSnapshotRequest instance + */ + public static create(properties?: google.cloud.compute.v1.ITestIamPermissionsRegionSnapshotRequest): google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest; + + /** + * Encodes the specified TestIamPermissionsRegionSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest.verify|verify} messages. + * @param message TestIamPermissionsRegionSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ITestIamPermissionsRegionSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TestIamPermissionsRegionSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest.verify|verify} messages. + * @param message TestIamPermissionsRegionSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ITestIamPermissionsRegionSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TestIamPermissionsRegionSnapshotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TestIamPermissionsRegionSnapshotRequest + * @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.v1.TestIamPermissionsRegionSnapshotRequest; + + /** + * Decodes a TestIamPermissionsRegionSnapshotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TestIamPermissionsRegionSnapshotRequest + * @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.v1.TestIamPermissionsRegionSnapshotRequest; + + /** + * Verifies a TestIamPermissionsRegionSnapshotRequest 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 TestIamPermissionsRegionSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TestIamPermissionsRegionSnapshotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest; + + /** + * Creates a plain object from a TestIamPermissionsRegionSnapshotRequest message. Also converts values to other types if specified. + * @param message TestIamPermissionsRegionSnapshotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TestIamPermissionsRegionSnapshotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TestIamPermissionsRegionSnapshotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a TestIamPermissionsReservationBlockRequest. */ interface ITestIamPermissionsReservationBlockRequest { @@ -217357,6 +225717,484 @@ export namespace google { } } + /** Properties of an UpdateKmsKeyDiskRequest. */ + interface IUpdateKmsKeyDiskRequest { + + /** UpdateKmsKeyDiskRequest disk */ + disk?: (string|null); + + /** UpdateKmsKeyDiskRequest diskUpdateKmsKeyRequestResource */ + diskUpdateKmsKeyRequestResource?: (google.cloud.compute.v1.IDiskUpdateKmsKeyRequest|null); + + /** UpdateKmsKeyDiskRequest project */ + project?: (string|null); + + /** UpdateKmsKeyDiskRequest requestId */ + requestId?: (string|null); + + /** UpdateKmsKeyDiskRequest zone */ + zone?: (string|null); + } + + /** Represents an UpdateKmsKeyDiskRequest. */ + class UpdateKmsKeyDiskRequest implements IUpdateKmsKeyDiskRequest { + + /** + * Constructs a new UpdateKmsKeyDiskRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IUpdateKmsKeyDiskRequest); + + /** UpdateKmsKeyDiskRequest disk. */ + public disk: string; + + /** UpdateKmsKeyDiskRequest diskUpdateKmsKeyRequestResource. */ + public diskUpdateKmsKeyRequestResource?: (google.cloud.compute.v1.IDiskUpdateKmsKeyRequest|null); + + /** UpdateKmsKeyDiskRequest project. */ + public project: string; + + /** UpdateKmsKeyDiskRequest requestId. */ + public requestId?: (string|null); + + /** UpdateKmsKeyDiskRequest zone. */ + public zone: string; + + /** + * Creates a new UpdateKmsKeyDiskRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateKmsKeyDiskRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IUpdateKmsKeyDiskRequest): google.cloud.compute.v1.UpdateKmsKeyDiskRequest; + + /** + * Encodes the specified UpdateKmsKeyDiskRequest message. Does not implicitly {@link google.cloud.compute.v1.UpdateKmsKeyDiskRequest.verify|verify} messages. + * @param message UpdateKmsKeyDiskRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IUpdateKmsKeyDiskRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateKmsKeyDiskRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.UpdateKmsKeyDiskRequest.verify|verify} messages. + * @param message UpdateKmsKeyDiskRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IUpdateKmsKeyDiskRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateKmsKeyDiskRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateKmsKeyDiskRequest + * @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.v1.UpdateKmsKeyDiskRequest; + + /** + * Decodes an UpdateKmsKeyDiskRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateKmsKeyDiskRequest + * @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.v1.UpdateKmsKeyDiskRequest; + + /** + * Verifies an UpdateKmsKeyDiskRequest 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 UpdateKmsKeyDiskRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateKmsKeyDiskRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.UpdateKmsKeyDiskRequest; + + /** + * Creates a plain object from an UpdateKmsKeyDiskRequest message. Also converts values to other types if specified. + * @param message UpdateKmsKeyDiskRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.UpdateKmsKeyDiskRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateKmsKeyDiskRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateKmsKeyDiskRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateKmsKeyRegionDiskRequest. */ + interface IUpdateKmsKeyRegionDiskRequest { + + /** UpdateKmsKeyRegionDiskRequest disk */ + disk?: (string|null); + + /** UpdateKmsKeyRegionDiskRequest project */ + project?: (string|null); + + /** UpdateKmsKeyRegionDiskRequest region */ + region?: (string|null); + + /** UpdateKmsKeyRegionDiskRequest regionDiskUpdateKmsKeyRequestResource */ + regionDiskUpdateKmsKeyRequestResource?: (google.cloud.compute.v1.IRegionDiskUpdateKmsKeyRequest|null); + + /** UpdateKmsKeyRegionDiskRequest requestId */ + requestId?: (string|null); + } + + /** Represents an UpdateKmsKeyRegionDiskRequest. */ + class UpdateKmsKeyRegionDiskRequest implements IUpdateKmsKeyRegionDiskRequest { + + /** + * Constructs a new UpdateKmsKeyRegionDiskRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IUpdateKmsKeyRegionDiskRequest); + + /** UpdateKmsKeyRegionDiskRequest disk. */ + public disk: string; + + /** UpdateKmsKeyRegionDiskRequest project. */ + public project: string; + + /** UpdateKmsKeyRegionDiskRequest region. */ + public region: string; + + /** UpdateKmsKeyRegionDiskRequest regionDiskUpdateKmsKeyRequestResource. */ + public regionDiskUpdateKmsKeyRequestResource?: (google.cloud.compute.v1.IRegionDiskUpdateKmsKeyRequest|null); + + /** UpdateKmsKeyRegionDiskRequest requestId. */ + public requestId?: (string|null); + + /** + * Creates a new UpdateKmsKeyRegionDiskRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateKmsKeyRegionDiskRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IUpdateKmsKeyRegionDiskRequest): google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest; + + /** + * Encodes the specified UpdateKmsKeyRegionDiskRequest message. Does not implicitly {@link google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest.verify|verify} messages. + * @param message UpdateKmsKeyRegionDiskRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IUpdateKmsKeyRegionDiskRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateKmsKeyRegionDiskRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest.verify|verify} messages. + * @param message UpdateKmsKeyRegionDiskRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IUpdateKmsKeyRegionDiskRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateKmsKeyRegionDiskRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateKmsKeyRegionDiskRequest + * @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.v1.UpdateKmsKeyRegionDiskRequest; + + /** + * Decodes an UpdateKmsKeyRegionDiskRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateKmsKeyRegionDiskRequest + * @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.v1.UpdateKmsKeyRegionDiskRequest; + + /** + * Verifies an UpdateKmsKeyRegionDiskRequest 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 UpdateKmsKeyRegionDiskRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateKmsKeyRegionDiskRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest; + + /** + * Creates a plain object from an UpdateKmsKeyRegionDiskRequest message. Also converts values to other types if specified. + * @param message UpdateKmsKeyRegionDiskRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateKmsKeyRegionDiskRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateKmsKeyRegionDiskRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateKmsKeyRegionSnapshotRequest. */ + interface IUpdateKmsKeyRegionSnapshotRequest { + + /** UpdateKmsKeyRegionSnapshotRequest project */ + project?: (string|null); + + /** UpdateKmsKeyRegionSnapshotRequest region */ + region?: (string|null); + + /** UpdateKmsKeyRegionSnapshotRequest regionSnapshotUpdateKmsKeyRequestResource */ + regionSnapshotUpdateKmsKeyRequestResource?: (google.cloud.compute.v1.IRegionSnapshotUpdateKmsKeyRequest|null); + + /** UpdateKmsKeyRegionSnapshotRequest requestId */ + requestId?: (string|null); + + /** UpdateKmsKeyRegionSnapshotRequest snapshot */ + snapshot?: (string|null); + } + + /** Represents an UpdateKmsKeyRegionSnapshotRequest. */ + class UpdateKmsKeyRegionSnapshotRequest implements IUpdateKmsKeyRegionSnapshotRequest { + + /** + * Constructs a new UpdateKmsKeyRegionSnapshotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IUpdateKmsKeyRegionSnapshotRequest); + + /** UpdateKmsKeyRegionSnapshotRequest project. */ + public project: string; + + /** UpdateKmsKeyRegionSnapshotRequest region. */ + public region: string; + + /** UpdateKmsKeyRegionSnapshotRequest regionSnapshotUpdateKmsKeyRequestResource. */ + public regionSnapshotUpdateKmsKeyRequestResource?: (google.cloud.compute.v1.IRegionSnapshotUpdateKmsKeyRequest|null); + + /** UpdateKmsKeyRegionSnapshotRequest requestId. */ + public requestId?: (string|null); + + /** UpdateKmsKeyRegionSnapshotRequest snapshot. */ + public snapshot: string; + + /** + * Creates a new UpdateKmsKeyRegionSnapshotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateKmsKeyRegionSnapshotRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IUpdateKmsKeyRegionSnapshotRequest): google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest; + + /** + * Encodes the specified UpdateKmsKeyRegionSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest.verify|verify} messages. + * @param message UpdateKmsKeyRegionSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IUpdateKmsKeyRegionSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateKmsKeyRegionSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest.verify|verify} messages. + * @param message UpdateKmsKeyRegionSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IUpdateKmsKeyRegionSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateKmsKeyRegionSnapshotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateKmsKeyRegionSnapshotRequest + * @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.v1.UpdateKmsKeyRegionSnapshotRequest; + + /** + * Decodes an UpdateKmsKeyRegionSnapshotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateKmsKeyRegionSnapshotRequest + * @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.v1.UpdateKmsKeyRegionSnapshotRequest; + + /** + * Verifies an UpdateKmsKeyRegionSnapshotRequest 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 UpdateKmsKeyRegionSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateKmsKeyRegionSnapshotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest; + + /** + * Creates a plain object from an UpdateKmsKeyRegionSnapshotRequest message. Also converts values to other types if specified. + * @param message UpdateKmsKeyRegionSnapshotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateKmsKeyRegionSnapshotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateKmsKeyRegionSnapshotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateKmsKeySnapshotRequest. */ + interface IUpdateKmsKeySnapshotRequest { + + /** UpdateKmsKeySnapshotRequest project */ + project?: (string|null); + + /** UpdateKmsKeySnapshotRequest requestId */ + requestId?: (string|null); + + /** UpdateKmsKeySnapshotRequest snapshot */ + snapshot?: (string|null); + + /** UpdateKmsKeySnapshotRequest snapshotUpdateKmsKeyRequestResource */ + snapshotUpdateKmsKeyRequestResource?: (google.cloud.compute.v1.ISnapshotUpdateKmsKeyRequest|null); + } + + /** Represents an UpdateKmsKeySnapshotRequest. */ + class UpdateKmsKeySnapshotRequest implements IUpdateKmsKeySnapshotRequest { + + /** + * Constructs a new UpdateKmsKeySnapshotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IUpdateKmsKeySnapshotRequest); + + /** UpdateKmsKeySnapshotRequest project. */ + public project: string; + + /** UpdateKmsKeySnapshotRequest requestId. */ + public requestId?: (string|null); + + /** UpdateKmsKeySnapshotRequest snapshot. */ + public snapshot: string; + + /** UpdateKmsKeySnapshotRequest snapshotUpdateKmsKeyRequestResource. */ + public snapshotUpdateKmsKeyRequestResource?: (google.cloud.compute.v1.ISnapshotUpdateKmsKeyRequest|null); + + /** + * Creates a new UpdateKmsKeySnapshotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateKmsKeySnapshotRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IUpdateKmsKeySnapshotRequest): google.cloud.compute.v1.UpdateKmsKeySnapshotRequest; + + /** + * Encodes the specified UpdateKmsKeySnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.UpdateKmsKeySnapshotRequest.verify|verify} messages. + * @param message UpdateKmsKeySnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IUpdateKmsKeySnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateKmsKeySnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.UpdateKmsKeySnapshotRequest.verify|verify} messages. + * @param message UpdateKmsKeySnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IUpdateKmsKeySnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateKmsKeySnapshotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateKmsKeySnapshotRequest + * @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.v1.UpdateKmsKeySnapshotRequest; + + /** + * Decodes an UpdateKmsKeySnapshotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateKmsKeySnapshotRequest + * @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.v1.UpdateKmsKeySnapshotRequest; + + /** + * Verifies an UpdateKmsKeySnapshotRequest 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 UpdateKmsKeySnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateKmsKeySnapshotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.UpdateKmsKeySnapshotRequest; + + /** + * Creates a plain object from an UpdateKmsKeySnapshotRequest message. Also converts values to other types if specified. + * @param message UpdateKmsKeySnapshotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.UpdateKmsKeySnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateKmsKeySnapshotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateKmsKeySnapshotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an UpdateLicenseRequest. */ interface IUpdateLicenseRequest { @@ -219692,6 +228530,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.v1.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.v1.IUpdateZoneVmExtensionPolicyRequest); + + /** UpdateZoneVmExtensionPolicyRequest project. */ + public project: string; + + /** UpdateZoneVmExtensionPolicyRequest requestId. */ + public requestId?: (string|null); + + /** UpdateZoneVmExtensionPolicyRequest vmExtensionPolicy. */ + public vmExtensionPolicy: string; + + /** UpdateZoneVmExtensionPolicyRequest vmExtensionPolicyResource. */ + public vmExtensionPolicyResource?: (google.cloud.compute.v1.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.v1.IUpdateZoneVmExtensionPolicyRequest): google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest; + + /** + * Encodes the specified UpdateZoneVmExtensionPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1.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.v1.IUpdateZoneVmExtensionPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateZoneVmExtensionPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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 { @@ -222252,6 +231211,628 @@ export namespace google { 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.v1.IVmExtensionPolicyExtensionPolicy }|null); + + /** VmExtensionPolicy globalResourceLink */ + globalResourceLink?: (string|null); + + /** VmExtensionPolicy id */ + id?: (number|Long|string|null); + + /** VmExtensionPolicy instanceSelectors */ + instanceSelectors?: (google.cloud.compute.v1.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.v1.IVmExtensionPolicy); + + /** VmExtensionPolicy creationTimestamp. */ + public creationTimestamp?: (string|null); + + /** VmExtensionPolicy description. */ + public description?: (string|null); + + /** VmExtensionPolicy extensionPolicies. */ + public extensionPolicies: { [k: string]: google.cloud.compute.v1.IVmExtensionPolicyExtensionPolicy }; + + /** VmExtensionPolicy globalResourceLink. */ + public globalResourceLink?: (string|null); + + /** VmExtensionPolicy id. */ + public id?: (number|Long|string|null); + + /** VmExtensionPolicy instanceSelectors. */ + public instanceSelectors: google.cloud.compute.v1.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.v1.IVmExtensionPolicy): google.cloud.compute.v1.VmExtensionPolicy; + + /** + * Encodes the specified VmExtensionPolicy message. Does not implicitly {@link google.cloud.compute.v1.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.v1.IVmExtensionPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VmExtensionPolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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 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.v1.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.v1.IVmExtensionPolicyExtensionPolicy): google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy; + + /** + * Encodes the specified VmExtensionPolicyExtensionPolicy message. Does not implicitly {@link google.cloud.compute.v1.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.v1.IVmExtensionPolicyExtensionPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VmExtensionPolicyExtensionPolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.IVmExtensionPolicyLabelSelector|null); + } + + /** Represents a VmExtensionPolicyInstanceSelector. */ + class VmExtensionPolicyInstanceSelector implements IVmExtensionPolicyInstanceSelector { + + /** + * Constructs a new VmExtensionPolicyInstanceSelector. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IVmExtensionPolicyInstanceSelector); + + /** VmExtensionPolicyInstanceSelector labelSelector. */ + public labelSelector?: (google.cloud.compute.v1.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.v1.IVmExtensionPolicyInstanceSelector): google.cloud.compute.v1.VmExtensionPolicyInstanceSelector; + + /** + * Encodes the specified VmExtensionPolicyInstanceSelector message. Does not implicitly {@link google.cloud.compute.v1.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.v1.IVmExtensionPolicyInstanceSelector, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VmExtensionPolicyInstanceSelector message, length delimited. Does not implicitly {@link google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.IVmExtensionPolicyLabelSelector): google.cloud.compute.v1.VmExtensionPolicyLabelSelector; + + /** + * Encodes the specified VmExtensionPolicyLabelSelector message. Does not implicitly {@link google.cloud.compute.v1.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.v1.IVmExtensionPolicyLabelSelector, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VmExtensionPolicyLabelSelector message, length delimited. Does not implicitly {@link google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.IWarning|null); + } + + /** Represents a VmExtensionPolicyList. */ + class VmExtensionPolicyList implements IVmExtensionPolicyList { + + /** + * Constructs a new VmExtensionPolicyList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IVmExtensionPolicyList); + + /** VmExtensionPolicyList etag. */ + public etag?: (string|null); + + /** VmExtensionPolicyList id. */ + public id?: (string|null); + + /** VmExtensionPolicyList items. */ + public items: google.cloud.compute.v1.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.v1.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.v1.IVmExtensionPolicyList): google.cloud.compute.v1.VmExtensionPolicyList; + + /** + * Encodes the specified VmExtensionPolicyList message. Does not implicitly {@link google.cloud.compute.v1.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.v1.IVmExtensionPolicyList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VmExtensionPolicyList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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 { @@ -228324,6 +237905,20 @@ export namespace google { */ public addSignedUrlKey(request: google.cloud.compute.v1.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.v1.IAggregatedListBackendBucketsRequest, callback: google.cloud.compute.v1.BackendBuckets.AggregatedListCallback): void; + + /** + * Calls AggregatedList. + * @param request AggregatedListBackendBucketsRequest message or plain object + * @returns Promise + */ + public aggregatedList(request: google.cloud.compute.v1.IAggregatedListBackendBucketsRequest): Promise; + /** * Calls Delete. * @param request DeleteBackendBucketRequest message or plain object @@ -228408,6 +238003,20 @@ export namespace google { */ public list(request: google.cloud.compute.v1.IListBackendBucketsRequest): Promise; + /** + * Calls ListUsable. + * @param request ListUsableBackendBucketsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BackendBucketListUsable + */ + public listUsable(request: google.cloud.compute.v1.IListUsableBackendBucketsRequest, callback: google.cloud.compute.v1.BackendBuckets.ListUsableCallback): void; + + /** + * Calls ListUsable. + * @param request ListUsableBackendBucketsRequest message or plain object + * @returns Promise + */ + public listUsable(request: google.cloud.compute.v1.IListUsableBackendBucketsRequest): Promise; + /** * Calls Patch. * @param request PatchBackendBucketRequest message or plain object @@ -228488,6 +238097,13 @@ export namespace google { */ type AddSignedUrlKeyCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + /** + * Callback as used by {@link google.cloud.compute.v1.BackendBuckets|aggregatedList}. + * @param error Error, if any + * @param [response] BackendBucketAggregatedList + */ + type AggregatedListCallback = (error: (Error|null), response?: google.cloud.compute.v1.BackendBucketAggregatedList) => void; + /** * Callback as used by {@link google.cloud.compute.v1.BackendBuckets|delete_}. * @param error Error, if any @@ -228530,6 +238146,13 @@ export namespace google { */ type ListCallback = (error: (Error|null), response?: google.cloud.compute.v1.BackendBucketList) => void; + /** + * Callback as used by {@link google.cloud.compute.v1.BackendBuckets|listUsable}. + * @param error Error, if any + * @param [response] BackendBucketListUsable + */ + type ListUsableCallback = (error: (Error|null), response?: google.cloud.compute.v1.BackendBucketListUsable) => void; + /** * Callback as used by {@link google.cloud.compute.v1.BackendBuckets|patch}. * @param error Error, if any @@ -229448,6 +239071,20 @@ export namespace google { * @returns Promise */ public update(request: google.cloud.compute.v1.IUpdateDiskRequest): Promise; + + /** + * Calls UpdateKmsKey. + * @param request UpdateKmsKeyDiskRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateKmsKey(request: google.cloud.compute.v1.IUpdateKmsKeyDiskRequest, callback: google.cloud.compute.v1.Disks.UpdateKmsKeyCallback): void; + + /** + * Calls UpdateKmsKey. + * @param request UpdateKmsKeyDiskRequest message or plain object + * @returns Promise + */ + public updateKmsKey(request: google.cloud.compute.v1.IUpdateKmsKeyDiskRequest): Promise; } namespace Disks { @@ -229584,6 +239221,13 @@ export namespace google { * @param [response] Operation */ type UpdateCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.Disks|updateKmsKey}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateKmsKeyCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; } /** Represents an ExternalVpnGateways */ @@ -234266,6 +243910,177 @@ export namespace google { type UpdateShieldedInstanceConfigCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; } + /** Represents an InstantSnapshotGroups */ + class InstantSnapshotGroups extends $protobuf.rpc.Service { + + /** + * Constructs a new InstantSnapshotGroups 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 InstantSnapshotGroups 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): InstantSnapshotGroups; + + /** + * Calls Delete. + * @param request DeleteInstantSnapshotGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public delete(request: google.cloud.compute.v1.IDeleteInstantSnapshotGroupRequest, callback: google.cloud.compute.v1.InstantSnapshotGroups.DeleteCallback): void; + + /** + * Calls Delete. + * @param request DeleteInstantSnapshotGroupRequest message or plain object + * @returns Promise + */ + public delete(request: google.cloud.compute.v1.IDeleteInstantSnapshotGroupRequest): Promise; + + /** + * Calls Get. + * @param request GetInstantSnapshotGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and InstantSnapshotGroup + */ + public get(request: google.cloud.compute.v1.IGetInstantSnapshotGroupRequest, callback: google.cloud.compute.v1.InstantSnapshotGroups.GetCallback): void; + + /** + * Calls Get. + * @param request GetInstantSnapshotGroupRequest message or plain object + * @returns Promise + */ + public get(request: google.cloud.compute.v1.IGetInstantSnapshotGroupRequest): Promise; + + /** + * Calls GetIamPolicy. + * @param request GetIamPolicyInstantSnapshotGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyInstantSnapshotGroupRequest, callback: google.cloud.compute.v1.InstantSnapshotGroups.GetIamPolicyCallback): void; + + /** + * Calls GetIamPolicy. + * @param request GetIamPolicyInstantSnapshotGroupRequest message or plain object + * @returns Promise + */ + public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyInstantSnapshotGroupRequest): Promise; + + /** + * Calls Insert. + * @param request InsertInstantSnapshotGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public insert(request: google.cloud.compute.v1.IInsertInstantSnapshotGroupRequest, callback: google.cloud.compute.v1.InstantSnapshotGroups.InsertCallback): void; + + /** + * Calls Insert. + * @param request InsertInstantSnapshotGroupRequest message or plain object + * @returns Promise + */ + public insert(request: google.cloud.compute.v1.IInsertInstantSnapshotGroupRequest): Promise; + + /** + * Calls List. + * @param request ListInstantSnapshotGroupsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListInstantSnapshotGroups + */ + public list(request: google.cloud.compute.v1.IListInstantSnapshotGroupsRequest, callback: google.cloud.compute.v1.InstantSnapshotGroups.ListCallback): void; + + /** + * Calls List. + * @param request ListInstantSnapshotGroupsRequest message or plain object + * @returns Promise + */ + public list(request: google.cloud.compute.v1.IListInstantSnapshotGroupsRequest): Promise; + + /** + * Calls SetIamPolicy. + * @param request SetIamPolicyInstantSnapshotGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyInstantSnapshotGroupRequest, callback: google.cloud.compute.v1.InstantSnapshotGroups.SetIamPolicyCallback): void; + + /** + * Calls SetIamPolicy. + * @param request SetIamPolicyInstantSnapshotGroupRequest message or plain object + * @returns Promise + */ + public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyInstantSnapshotGroupRequest): Promise; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsInstantSnapshotGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestPermissionsResponse + */ + public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotGroupRequest, callback: google.cloud.compute.v1.InstantSnapshotGroups.TestIamPermissionsCallback): void; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsInstantSnapshotGroupRequest message or plain object + * @returns Promise + */ + public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotGroupRequest): Promise; + } + + namespace InstantSnapshotGroups { + + /** + * Callback as used by {@link google.cloud.compute.v1.InstantSnapshotGroups|delete_}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.InstantSnapshotGroups|get}. + * @param error Error, if any + * @param [response] InstantSnapshotGroup + */ + type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1.InstantSnapshotGroup) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.InstantSnapshotGroups|getIamPolicy}. + * @param error Error, if any + * @param [response] Policy + */ + type GetIamPolicyCallback = (error: (Error|null), response?: google.cloud.compute.v1.Policy) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.InstantSnapshotGroups|insert}. + * @param error Error, if any + * @param [response] Operation + */ + type InsertCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.InstantSnapshotGroups|list}. + * @param error Error, if any + * @param [response] ListInstantSnapshotGroups + */ + type ListCallback = (error: (Error|null), response?: google.cloud.compute.v1.ListInstantSnapshotGroups) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.InstantSnapshotGroups|setIamPolicy}. + * @param error Error, if any + * @param [response] Policy + */ + type SetIamPolicyCallback = (error: (Error|null), response?: google.cloud.compute.v1.Policy) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.InstantSnapshotGroups|testIamPermissions}. + * @param error Error, if any + * @param [response] TestPermissionsResponse + */ + type TestIamPermissionsCallback = (error: (Error|null), response?: google.cloud.compute.v1.TestPermissionsResponse) => void; + } + /** Represents an InstantSnapshots */ class InstantSnapshots extends $protobuf.rpc.Service { @@ -239408,6 +249223,219 @@ export namespace google { type UpdateCallback = (error: (Error|null), response?: google.cloud.compute.v1.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.v1.IDeleteRegionBackendBucketRequest, callback: google.cloud.compute.v1.RegionBackendBuckets.DeleteCallback): void; + + /** + * Calls Delete. + * @param request DeleteRegionBackendBucketRequest message or plain object + * @returns Promise + */ + public delete(request: google.cloud.compute.v1.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.v1.IGetRegionBackendBucketRequest, callback: google.cloud.compute.v1.RegionBackendBuckets.GetCallback): void; + + /** + * Calls Get. + * @param request GetRegionBackendBucketRequest message or plain object + * @returns Promise + */ + public get(request: google.cloud.compute.v1.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.v1.IGetIamPolicyRegionBackendBucketRequest, callback: google.cloud.compute.v1.RegionBackendBuckets.GetIamPolicyCallback): void; + + /** + * Calls GetIamPolicy. + * @param request GetIamPolicyRegionBackendBucketRequest message or plain object + * @returns Promise + */ + public getIamPolicy(request: google.cloud.compute.v1.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.v1.IInsertRegionBackendBucketRequest, callback: google.cloud.compute.v1.RegionBackendBuckets.InsertCallback): void; + + /** + * Calls Insert. + * @param request InsertRegionBackendBucketRequest message or plain object + * @returns Promise + */ + public insert(request: google.cloud.compute.v1.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.v1.IListRegionBackendBucketsRequest, callback: google.cloud.compute.v1.RegionBackendBuckets.ListCallback): void; + + /** + * Calls List. + * @param request ListRegionBackendBucketsRequest message or plain object + * @returns Promise + */ + public list(request: google.cloud.compute.v1.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.v1.IListUsableRegionBackendBucketsRequest, callback: google.cloud.compute.v1.RegionBackendBuckets.ListUsableCallback): void; + + /** + * Calls ListUsable. + * @param request ListUsableRegionBackendBucketsRequest message or plain object + * @returns Promise + */ + public listUsable(request: google.cloud.compute.v1.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.v1.IPatchRegionBackendBucketRequest, callback: google.cloud.compute.v1.RegionBackendBuckets.PatchCallback): void; + + /** + * Calls Patch. + * @param request PatchRegionBackendBucketRequest message or plain object + * @returns Promise + */ + public patch(request: google.cloud.compute.v1.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.v1.ISetIamPolicyRegionBackendBucketRequest, callback: google.cloud.compute.v1.RegionBackendBuckets.SetIamPolicyCallback): void; + + /** + * Calls SetIamPolicy. + * @param request SetIamPolicyRegionBackendBucketRequest message or plain object + * @returns Promise + */ + public setIamPolicy(request: google.cloud.compute.v1.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.v1.ITestIamPermissionsRegionBackendBucketRequest, callback: google.cloud.compute.v1.RegionBackendBuckets.TestIamPermissionsCallback): void; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsRegionBackendBucketRequest message or plain object + * @returns Promise + */ + public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsRegionBackendBucketRequest): Promise; + } + + namespace RegionBackendBuckets { + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionBackendBuckets|delete_}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionBackendBuckets|get}. + * @param error Error, if any + * @param [response] BackendBucket + */ + type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1.BackendBucket) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionBackendBuckets|getIamPolicy}. + * @param error Error, if any + * @param [response] Policy + */ + type GetIamPolicyCallback = (error: (Error|null), response?: google.cloud.compute.v1.Policy) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionBackendBuckets|insert}. + * @param error Error, if any + * @param [response] Operation + */ + type InsertCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionBackendBuckets|list}. + * @param error Error, if any + * @param [response] BackendBucketList + */ + type ListCallback = (error: (Error|null), response?: google.cloud.compute.v1.BackendBucketList) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionBackendBuckets|listUsable}. + * @param error Error, if any + * @param [response] BackendBucketListUsable + */ + type ListUsableCallback = (error: (Error|null), response?: google.cloud.compute.v1.BackendBucketListUsable) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionBackendBuckets|patch}. + * @param error Error, if any + * @param [response] Operation + */ + type PatchCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionBackendBuckets|setIamPolicy}. + * @param error Error, if any + * @param [response] Policy + */ + type SetIamPolicyCallback = (error: (Error|null), response?: google.cloud.compute.v1.Policy) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionBackendBuckets|testIamPermissions}. + * @param error Error, if any + * @param [response] TestPermissionsResponse + */ + type TestIamPermissionsCallback = (error: (Error|null), response?: google.cloud.compute.v1.TestPermissionsResponse) => void; + } + /** Represents a RegionBackendServices */ class RegionBackendServices extends $protobuf.rpc.Service { @@ -239875,6 +249903,20 @@ export namespace google { */ public get(request: google.cloud.compute.v1.IGetRegionCompositeHealthCheckRequest): Promise; + /** + * Calls GetHealth. + * @param request GetHealthRegionCompositeHealthCheckRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CompositeHealthCheckHealth + */ + public getHealth(request: google.cloud.compute.v1.IGetHealthRegionCompositeHealthCheckRequest, callback: google.cloud.compute.v1.RegionCompositeHealthChecks.GetHealthCallback): void; + + /** + * Calls GetHealth. + * @param request GetHealthRegionCompositeHealthCheckRequest message or plain object + * @returns Promise + */ + public getHealth(request: google.cloud.compute.v1.IGetHealthRegionCompositeHealthCheckRequest): Promise; + /** * Calls Insert. * @param request InsertRegionCompositeHealthCheckRequest message or plain object @@ -239955,6 +249997,13 @@ export namespace google { */ type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1.CompositeHealthCheck) => void; + /** + * Callback as used by {@link google.cloud.compute.v1.RegionCompositeHealthChecks|getHealth}. + * @param error Error, if any + * @param [response] CompositeHealthCheckHealth + */ + type GetHealthCallback = (error: (Error|null), response?: google.cloud.compute.v1.CompositeHealthCheckHealth) => void; + /** * Callback as used by {@link google.cloud.compute.v1.RegionCompositeHealthChecks|insert}. * @param error Error, if any @@ -240307,6 +250356,20 @@ export namespace google { * @returns Promise */ public update(request: google.cloud.compute.v1.IUpdateRegionDiskRequest): Promise; + + /** + * Calls UpdateKmsKey. + * @param request UpdateKmsKeyRegionDiskRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateKmsKey(request: google.cloud.compute.v1.IUpdateKmsKeyRegionDiskRequest, callback: google.cloud.compute.v1.RegionDisks.UpdateKmsKeyCallback): void; + + /** + * Calls UpdateKmsKey. + * @param request UpdateKmsKeyRegionDiskRequest message or plain object + * @returns Promise + */ + public updateKmsKey(request: google.cloud.compute.v1.IUpdateKmsKeyRegionDiskRequest): Promise; } namespace RegionDisks { @@ -240429,6 +250492,13 @@ export namespace google { * @param [response] Operation */ type UpdateCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionDisks|updateKmsKey}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateKmsKeyCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; } /** Represents a RegionHealthAggregationPolicies */ @@ -241006,6 +251076,20 @@ export namespace google { */ public get(request: google.cloud.compute.v1.IGetRegionHealthSourceRequest): Promise; + /** + * Calls GetHealth. + * @param request GetHealthRegionHealthSourceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and HealthSourceHealth + */ + public getHealth(request: google.cloud.compute.v1.IGetHealthRegionHealthSourceRequest, callback: google.cloud.compute.v1.RegionHealthSources.GetHealthCallback): void; + + /** + * Calls GetHealth. + * @param request GetHealthRegionHealthSourceRequest message or plain object + * @returns Promise + */ + public getHealth(request: google.cloud.compute.v1.IGetHealthRegionHealthSourceRequest): Promise; + /** * Calls Insert. * @param request InsertRegionHealthSourceRequest message or plain object @@ -241086,6 +251170,13 @@ export namespace google { */ type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1.HealthSource) => void; + /** + * Callback as used by {@link google.cloud.compute.v1.RegionHealthSources|getHealth}. + * @param error Error, if any + * @param [response] HealthSourceHealth + */ + type GetHealthCallback = (error: (Error|null), response?: google.cloud.compute.v1.HealthSourceHealth) => void; + /** * Callback as used by {@link google.cloud.compute.v1.RegionHealthSources|insert}. * @param error Error, if any @@ -241115,6 +251206,135 @@ export namespace google { type TestIamPermissionsCallback = (error: (Error|null), response?: google.cloud.compute.v1.TestPermissionsResponse) => void; } + /** Represents a RegionInstanceGroupManagerResizeRequests */ + class RegionInstanceGroupManagerResizeRequests extends $protobuf.rpc.Service { + + /** + * Constructs a new RegionInstanceGroupManagerResizeRequests 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 RegionInstanceGroupManagerResizeRequests 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): RegionInstanceGroupManagerResizeRequests; + + /** + * Calls Cancel. + * @param request CancelRegionInstanceGroupManagerResizeRequestRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public cancel(request: google.cloud.compute.v1.ICancelRegionInstanceGroupManagerResizeRequestRequest, callback: google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests.CancelCallback): void; + + /** + * Calls Cancel. + * @param request CancelRegionInstanceGroupManagerResizeRequestRequest message or plain object + * @returns Promise + */ + public cancel(request: google.cloud.compute.v1.ICancelRegionInstanceGroupManagerResizeRequestRequest): Promise; + + /** + * Calls Delete. + * @param request DeleteRegionInstanceGroupManagerResizeRequestRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public delete(request: google.cloud.compute.v1.IDeleteRegionInstanceGroupManagerResizeRequestRequest, callback: google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests.DeleteCallback): void; + + /** + * Calls Delete. + * @param request DeleteRegionInstanceGroupManagerResizeRequestRequest message or plain object + * @returns Promise + */ + public delete(request: google.cloud.compute.v1.IDeleteRegionInstanceGroupManagerResizeRequestRequest): Promise; + + /** + * Calls Get. + * @param request GetRegionInstanceGroupManagerResizeRequestRequest message or plain object + * @param callback Node-style callback called with the error, if any, and InstanceGroupManagerResizeRequest + */ + public get(request: google.cloud.compute.v1.IGetRegionInstanceGroupManagerResizeRequestRequest, callback: google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests.GetCallback): void; + + /** + * Calls Get. + * @param request GetRegionInstanceGroupManagerResizeRequestRequest message or plain object + * @returns Promise + */ + public get(request: google.cloud.compute.v1.IGetRegionInstanceGroupManagerResizeRequestRequest): Promise; + + /** + * Calls Insert. + * @param request InsertRegionInstanceGroupManagerResizeRequestRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public insert(request: google.cloud.compute.v1.IInsertRegionInstanceGroupManagerResizeRequestRequest, callback: google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests.InsertCallback): void; + + /** + * Calls Insert. + * @param request InsertRegionInstanceGroupManagerResizeRequestRequest message or plain object + * @returns Promise + */ + public insert(request: google.cloud.compute.v1.IInsertRegionInstanceGroupManagerResizeRequestRequest): Promise; + + /** + * Calls List. + * @param request ListRegionInstanceGroupManagerResizeRequestsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and RegionInstanceGroupManagerResizeRequestsListResponse + */ + public list(request: google.cloud.compute.v1.IListRegionInstanceGroupManagerResizeRequestsRequest, callback: google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests.ListCallback): void; + + /** + * Calls List. + * @param request ListRegionInstanceGroupManagerResizeRequestsRequest message or plain object + * @returns Promise + */ + public list(request: google.cloud.compute.v1.IListRegionInstanceGroupManagerResizeRequestsRequest): Promise; + } + + namespace RegionInstanceGroupManagerResizeRequests { + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests|cancel}. + * @param error Error, if any + * @param [response] Operation + */ + type CancelCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests|delete_}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests|get}. + * @param error Error, if any + * @param [response] InstanceGroupManagerResizeRequest + */ + type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1.InstanceGroupManagerResizeRequest) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests|insert}. + * @param error Error, if any + * @param [response] Operation + */ + type InsertCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests|list}. + * @param error Error, if any + * @param [response] RegionInstanceGroupManagerResizeRequestsListResponse + */ + type ListCallback = (error: (Error|null), response?: google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse) => void; + } + /** Represents a RegionInstanceGroupManagers */ class RegionInstanceGroupManagers extends $protobuf.rpc.Service { @@ -241904,6 +252124,177 @@ export namespace google { type BulkInsertCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; } + /** Represents a RegionInstantSnapshotGroups */ + class RegionInstantSnapshotGroups extends $protobuf.rpc.Service { + + /** + * Constructs a new RegionInstantSnapshotGroups 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 RegionInstantSnapshotGroups 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): RegionInstantSnapshotGroups; + + /** + * Calls Delete. + * @param request DeleteRegionInstantSnapshotGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public delete(request: google.cloud.compute.v1.IDeleteRegionInstantSnapshotGroupRequest, callback: google.cloud.compute.v1.RegionInstantSnapshotGroups.DeleteCallback): void; + + /** + * Calls Delete. + * @param request DeleteRegionInstantSnapshotGroupRequest message or plain object + * @returns Promise + */ + public delete(request: google.cloud.compute.v1.IDeleteRegionInstantSnapshotGroupRequest): Promise; + + /** + * Calls Get. + * @param request GetRegionInstantSnapshotGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and InstantSnapshotGroup + */ + public get(request: google.cloud.compute.v1.IGetRegionInstantSnapshotGroupRequest, callback: google.cloud.compute.v1.RegionInstantSnapshotGroups.GetCallback): void; + + /** + * Calls Get. + * @param request GetRegionInstantSnapshotGroupRequest message or plain object + * @returns Promise + */ + public get(request: google.cloud.compute.v1.IGetRegionInstantSnapshotGroupRequest): Promise; + + /** + * Calls GetIamPolicy. + * @param request GetIamPolicyRegionInstantSnapshotGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotGroupRequest, callback: google.cloud.compute.v1.RegionInstantSnapshotGroups.GetIamPolicyCallback): void; + + /** + * Calls GetIamPolicy. + * @param request GetIamPolicyRegionInstantSnapshotGroupRequest message or plain object + * @returns Promise + */ + public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotGroupRequest): Promise; + + /** + * Calls Insert. + * @param request InsertRegionInstantSnapshotGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public insert(request: google.cloud.compute.v1.IInsertRegionInstantSnapshotGroupRequest, callback: google.cloud.compute.v1.RegionInstantSnapshotGroups.InsertCallback): void; + + /** + * Calls Insert. + * @param request InsertRegionInstantSnapshotGroupRequest message or plain object + * @returns Promise + */ + public insert(request: google.cloud.compute.v1.IInsertRegionInstantSnapshotGroupRequest): Promise; + + /** + * Calls List. + * @param request ListRegionInstantSnapshotGroupsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListInstantSnapshotGroups + */ + public list(request: google.cloud.compute.v1.IListRegionInstantSnapshotGroupsRequest, callback: google.cloud.compute.v1.RegionInstantSnapshotGroups.ListCallback): void; + + /** + * Calls List. + * @param request ListRegionInstantSnapshotGroupsRequest message or plain object + * @returns Promise + */ + public list(request: google.cloud.compute.v1.IListRegionInstantSnapshotGroupsRequest): Promise; + + /** + * Calls SetIamPolicy. + * @param request SetIamPolicyRegionInstantSnapshotGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotGroupRequest, callback: google.cloud.compute.v1.RegionInstantSnapshotGroups.SetIamPolicyCallback): void; + + /** + * Calls SetIamPolicy. + * @param request SetIamPolicyRegionInstantSnapshotGroupRequest message or plain object + * @returns Promise + */ + public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotGroupRequest): Promise; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsRegionInstantSnapshotGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestPermissionsResponse + */ + public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotGroupRequest, callback: google.cloud.compute.v1.RegionInstantSnapshotGroups.TestIamPermissionsCallback): void; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsRegionInstantSnapshotGroupRequest message or plain object + * @returns Promise + */ + public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotGroupRequest): Promise; + } + + namespace RegionInstantSnapshotGroups { + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstantSnapshotGroups|delete_}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstantSnapshotGroups|get}. + * @param error Error, if any + * @param [response] InstantSnapshotGroup + */ + type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1.InstantSnapshotGroup) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstantSnapshotGroups|getIamPolicy}. + * @param error Error, if any + * @param [response] Policy + */ + type GetIamPolicyCallback = (error: (Error|null), response?: google.cloud.compute.v1.Policy) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstantSnapshotGroups|insert}. + * @param error Error, if any + * @param [response] Operation + */ + type InsertCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstantSnapshotGroups|list}. + * @param error Error, if any + * @param [response] ListInstantSnapshotGroups + */ + type ListCallback = (error: (Error|null), response?: google.cloud.compute.v1.ListInstantSnapshotGroups) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstantSnapshotGroups|setIamPolicy}. + * @param error Error, if any + * @param [response] Policy + */ + type SetIamPolicyCallback = (error: (Error|null), response?: google.cloud.compute.v1.Policy) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstantSnapshotGroups|testIamPermissions}. + * @param error Error, if any + * @param [response] TestPermissionsResponse + */ + type TestIamPermissionsCallback = (error: (Error|null), response?: google.cloud.compute.v1.TestPermissionsResponse) => void; + } + /** Represents a RegionInstantSnapshots */ class RegionInstantSnapshots extends $protobuf.rpc.Service { @@ -243140,6 +253531,285 @@ export namespace google { type SetLabelsCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; } + /** Represents a RegionSnapshotSettings */ + class RegionSnapshotSettings extends $protobuf.rpc.Service { + + /** + * Constructs a new RegionSnapshotSettings 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 RegionSnapshotSettings 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): RegionSnapshotSettings; + + /** + * Calls Get. + * @param request GetRegionSnapshotSettingRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SnapshotSettings + */ + public get(request: google.cloud.compute.v1.IGetRegionSnapshotSettingRequest, callback: google.cloud.compute.v1.RegionSnapshotSettings.GetCallback): void; + + /** + * Calls Get. + * @param request GetRegionSnapshotSettingRequest message or plain object + * @returns Promise + */ + public get(request: google.cloud.compute.v1.IGetRegionSnapshotSettingRequest): Promise; + + /** + * Calls Patch. + * @param request PatchRegionSnapshotSettingRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public patch(request: google.cloud.compute.v1.IPatchRegionSnapshotSettingRequest, callback: google.cloud.compute.v1.RegionSnapshotSettings.PatchCallback): void; + + /** + * Calls Patch. + * @param request PatchRegionSnapshotSettingRequest message or plain object + * @returns Promise + */ + public patch(request: google.cloud.compute.v1.IPatchRegionSnapshotSettingRequest): Promise; + } + + namespace RegionSnapshotSettings { + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionSnapshotSettings|get}. + * @param error Error, if any + * @param [response] SnapshotSettings + */ + type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1.SnapshotSettings) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionSnapshotSettings|patch}. + * @param error Error, if any + * @param [response] Operation + */ + type PatchCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + } + + /** Represents a RegionSnapshots */ + class RegionSnapshots extends $protobuf.rpc.Service { + + /** + * Constructs a new RegionSnapshots 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 RegionSnapshots 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): RegionSnapshots; + + /** + * Calls Delete. + * @param request DeleteRegionSnapshotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public delete(request: google.cloud.compute.v1.IDeleteRegionSnapshotRequest, callback: google.cloud.compute.v1.RegionSnapshots.DeleteCallback): void; + + /** + * Calls Delete. + * @param request DeleteRegionSnapshotRequest message or plain object + * @returns Promise + */ + public delete(request: google.cloud.compute.v1.IDeleteRegionSnapshotRequest): Promise; + + /** + * Calls Get. + * @param request GetRegionSnapshotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Snapshot + */ + public get(request: google.cloud.compute.v1.IGetRegionSnapshotRequest, callback: google.cloud.compute.v1.RegionSnapshots.GetCallback): void; + + /** + * Calls Get. + * @param request GetRegionSnapshotRequest message or plain object + * @returns Promise + */ + public get(request: google.cloud.compute.v1.IGetRegionSnapshotRequest): Promise; + + /** + * Calls GetIamPolicy. + * @param request GetIamPolicyRegionSnapshotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyRegionSnapshotRequest, callback: google.cloud.compute.v1.RegionSnapshots.GetIamPolicyCallback): void; + + /** + * Calls GetIamPolicy. + * @param request GetIamPolicyRegionSnapshotRequest message or plain object + * @returns Promise + */ + public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyRegionSnapshotRequest): Promise; + + /** + * Calls Insert. + * @param request InsertRegionSnapshotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public insert(request: google.cloud.compute.v1.IInsertRegionSnapshotRequest, callback: google.cloud.compute.v1.RegionSnapshots.InsertCallback): void; + + /** + * Calls Insert. + * @param request InsertRegionSnapshotRequest message or plain object + * @returns Promise + */ + public insert(request: google.cloud.compute.v1.IInsertRegionSnapshotRequest): Promise; + + /** + * Calls List. + * @param request ListRegionSnapshotsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SnapshotList + */ + public list(request: google.cloud.compute.v1.IListRegionSnapshotsRequest, callback: google.cloud.compute.v1.RegionSnapshots.ListCallback): void; + + /** + * Calls List. + * @param request ListRegionSnapshotsRequest message or plain object + * @returns Promise + */ + public list(request: google.cloud.compute.v1.IListRegionSnapshotsRequest): Promise; + + /** + * Calls SetIamPolicy. + * @param request SetIamPolicyRegionSnapshotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyRegionSnapshotRequest, callback: google.cloud.compute.v1.RegionSnapshots.SetIamPolicyCallback): void; + + /** + * Calls SetIamPolicy. + * @param request SetIamPolicyRegionSnapshotRequest message or plain object + * @returns Promise + */ + public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyRegionSnapshotRequest): Promise; + + /** + * Calls SetLabels. + * @param request SetLabelsRegionSnapshotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public setLabels(request: google.cloud.compute.v1.ISetLabelsRegionSnapshotRequest, callback: google.cloud.compute.v1.RegionSnapshots.SetLabelsCallback): void; + + /** + * Calls SetLabels. + * @param request SetLabelsRegionSnapshotRequest message or plain object + * @returns Promise + */ + public setLabels(request: google.cloud.compute.v1.ISetLabelsRegionSnapshotRequest): Promise; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsRegionSnapshotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestPermissionsResponse + */ + public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsRegionSnapshotRequest, callback: google.cloud.compute.v1.RegionSnapshots.TestIamPermissionsCallback): void; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsRegionSnapshotRequest message or plain object + * @returns Promise + */ + public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsRegionSnapshotRequest): Promise; + + /** + * Calls UpdateKmsKey. + * @param request UpdateKmsKeyRegionSnapshotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateKmsKey(request: google.cloud.compute.v1.IUpdateKmsKeyRegionSnapshotRequest, callback: google.cloud.compute.v1.RegionSnapshots.UpdateKmsKeyCallback): void; + + /** + * Calls UpdateKmsKey. + * @param request UpdateKmsKeyRegionSnapshotRequest message or plain object + * @returns Promise + */ + public updateKmsKey(request: google.cloud.compute.v1.IUpdateKmsKeyRegionSnapshotRequest): Promise; + } + + namespace RegionSnapshots { + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionSnapshots|delete_}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionSnapshots|get}. + * @param error Error, if any + * @param [response] Snapshot + */ + type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1.Snapshot) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionSnapshots|getIamPolicy}. + * @param error Error, if any + * @param [response] Policy + */ + type GetIamPolicyCallback = (error: (Error|null), response?: google.cloud.compute.v1.Policy) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionSnapshots|insert}. + * @param error Error, if any + * @param [response] Operation + */ + type InsertCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionSnapshots|list}. + * @param error Error, if any + * @param [response] SnapshotList + */ + type ListCallback = (error: (Error|null), response?: google.cloud.compute.v1.SnapshotList) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionSnapshots|setIamPolicy}. + * @param error Error, if any + * @param [response] Policy + */ + type SetIamPolicyCallback = (error: (Error|null), response?: google.cloud.compute.v1.Policy) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionSnapshots|setLabels}. + * @param error Error, if any + * @param [response] Operation + */ + type SetLabelsCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionSnapshots|testIamPermissions}. + * @param error Error, if any + * @param [response] TestPermissionsResponse + */ + type TestIamPermissionsCallback = (error: (Error|null), response?: google.cloud.compute.v1.TestPermissionsResponse) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionSnapshots|updateKmsKey}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateKmsKeyCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + } + /** Represents a RegionSslCertificates */ class RegionSslCertificates extends $protobuf.rpc.Service { @@ -246202,6 +256872,20 @@ export namespace google { * @returns Promise */ public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsSnapshotRequest): Promise; + + /** + * Calls UpdateKmsKey. + * @param request UpdateKmsKeySnapshotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateKmsKey(request: google.cloud.compute.v1.IUpdateKmsKeySnapshotRequest, callback: google.cloud.compute.v1.Snapshots.UpdateKmsKeyCallback): void; + + /** + * Calls UpdateKmsKey. + * @param request UpdateKmsKeySnapshotRequest message or plain object + * @returns Promise + */ + public updateKmsKey(request: google.cloud.compute.v1.IUpdateKmsKeySnapshotRequest): Promise; } namespace Snapshots { @@ -246261,6 +256945,13 @@ export namespace google { * @param [response] TestPermissionsResponse */ type TestIamPermissionsCallback = (error: (Error|null), response?: google.cloud.compute.v1.TestPermissionsResponse) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.Snapshots|updateKmsKey}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateKmsKeyCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; } /** Represents a SslCertificates */ @@ -249572,6 +260263,135 @@ export namespace google { type WaitCallback = (error: (Error|null), response?: google.cloud.compute.v1.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.v1.IDeleteZoneVmExtensionPolicyRequest, callback: google.cloud.compute.v1.ZoneVmExtensionPolicies.DeleteCallback): void; + + /** + * Calls Delete. + * @param request DeleteZoneVmExtensionPolicyRequest message or plain object + * @returns Promise + */ + public delete(request: google.cloud.compute.v1.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.v1.IGetZoneVmExtensionPolicyRequest, callback: google.cloud.compute.v1.ZoneVmExtensionPolicies.GetCallback): void; + + /** + * Calls Get. + * @param request GetZoneVmExtensionPolicyRequest message or plain object + * @returns Promise + */ + public get(request: google.cloud.compute.v1.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.v1.IInsertZoneVmExtensionPolicyRequest, callback: google.cloud.compute.v1.ZoneVmExtensionPolicies.InsertCallback): void; + + /** + * Calls Insert. + * @param request InsertZoneVmExtensionPolicyRequest message or plain object + * @returns Promise + */ + public insert(request: google.cloud.compute.v1.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.v1.IListZoneVmExtensionPoliciesRequest, callback: google.cloud.compute.v1.ZoneVmExtensionPolicies.ListCallback): void; + + /** + * Calls List. + * @param request ListZoneVmExtensionPoliciesRequest message or plain object + * @returns Promise + */ + public list(request: google.cloud.compute.v1.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.v1.IUpdateZoneVmExtensionPolicyRequest, callback: google.cloud.compute.v1.ZoneVmExtensionPolicies.UpdateCallback): void; + + /** + * Calls Update. + * @param request UpdateZoneVmExtensionPolicyRequest message or plain object + * @returns Promise + */ + public update(request: google.cloud.compute.v1.IUpdateZoneVmExtensionPolicyRequest): Promise; + } + + namespace ZoneVmExtensionPolicies { + + /** + * Callback as used by {@link google.cloud.compute.v1.ZoneVmExtensionPolicies|delete_}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.ZoneVmExtensionPolicies|get}. + * @param error Error, if any + * @param [response] VmExtensionPolicy + */ + type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1.VmExtensionPolicy) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.ZoneVmExtensionPolicies|insert}. + * @param error Error, if any + * @param [response] Operation + */ + type InsertCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.ZoneVmExtensionPolicies|list}. + * @param error Error, if any + * @param [response] VmExtensionPolicyList + */ + type ListCallback = (error: (Error|null), response?: google.cloud.compute.v1.VmExtensionPolicyList) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.ZoneVmExtensionPolicies|update}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + } + /** Represents a Zones */ class Zones extends $protobuf.rpc.Service { @@ -267496,6 +278316,9 @@ export namespace google { /** Backend preference */ preference?: (string|null); + /** Backend service */ + service?: (string|null); + /** Backend trafficDuration */ trafficDuration?: (string|null); } @@ -267563,6 +278386,9 @@ export namespace google { /** Backend preference. */ public preference?: (string|null); + /** Backend service. */ + public service?: (string|null); + /** Backend trafficDuration. */ public trafficDuration?: (string|null); @@ -277752,6 +288578,9 @@ export namespace google { /** Commitment name */ name?: (string|null); + /** Commitment params */ + params?: (google.cloud.compute.v1beta.ICommitmentParams|null); + /** Commitment plan */ plan?: (string|null); @@ -277831,6 +288660,9 @@ export namespace google { /** Commitment name. */ public name?: (string|null); + /** Commitment params. */ + public params?: (google.cloud.compute.v1beta.ICommitmentParams|null); + /** Commitment plan. */ public plan?: (string|null); @@ -278275,6 +289107,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a CommitmentParams. */ + interface ICommitmentParams { + + /** CommitmentParams resourceManagerTags */ + resourceManagerTags?: ({ [k: string]: string }|null); + } + + /** Represents a CommitmentParams. */ + class CommitmentParams implements ICommitmentParams { + + /** + * Constructs a new CommitmentParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.ICommitmentParams); + + /** CommitmentParams resourceManagerTags. */ + public resourceManagerTags: { [k: string]: string }; + + /** + * Creates a new CommitmentParams instance using the specified properties. + * @param [properties] Properties to set + * @returns CommitmentParams instance + */ + public static create(properties?: google.cloud.compute.v1beta.ICommitmentParams): google.cloud.compute.v1beta.CommitmentParams; + + /** + * Encodes the specified CommitmentParams message. Does not implicitly {@link google.cloud.compute.v1beta.CommitmentParams.verify|verify} messages. + * @param message CommitmentParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.ICommitmentParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CommitmentParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.CommitmentParams.verify|verify} messages. + * @param message CommitmentParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.ICommitmentParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CommitmentParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CommitmentParams + * @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.CommitmentParams; + + /** + * Decodes a CommitmentParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CommitmentParams + * @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.CommitmentParams; + + /** + * Verifies a CommitmentParams 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 CommitmentParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CommitmentParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.CommitmentParams; + + /** + * Creates a plain object from a CommitmentParams message. Also converts values to other types if specified. + * @param message CommitmentParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.CommitmentParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CommitmentParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CommitmentParams + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a CommitmentResourceStatus. */ interface ICommitmentResourceStatus { @@ -278765,6 +289694,126 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a CompositeHealthCheckHealth. */ + interface ICompositeHealthCheckHealth { + + /** CompositeHealthCheckHealth healthSources */ + healthSources?: (google.cloud.compute.v1beta.ICompositeHealthChecksGetHealthResponseHealthSourceHealth[]|null); + + /** CompositeHealthCheckHealth healthState */ + healthState?: (string|null); + + /** CompositeHealthCheckHealth kind */ + kind?: (string|null); + } + + /** Represents a CompositeHealthCheckHealth. */ + class CompositeHealthCheckHealth implements ICompositeHealthCheckHealth { + + /** + * Constructs a new CompositeHealthCheckHealth. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.ICompositeHealthCheckHealth); + + /** CompositeHealthCheckHealth healthSources. */ + public healthSources: google.cloud.compute.v1beta.ICompositeHealthChecksGetHealthResponseHealthSourceHealth[]; + + /** CompositeHealthCheckHealth healthState. */ + public healthState?: (string|null); + + /** CompositeHealthCheckHealth kind. */ + public kind?: (string|null); + + /** + * Creates a new CompositeHealthCheckHealth instance using the specified properties. + * @param [properties] Properties to set + * @returns CompositeHealthCheckHealth instance + */ + public static create(properties?: google.cloud.compute.v1beta.ICompositeHealthCheckHealth): google.cloud.compute.v1beta.CompositeHealthCheckHealth; + + /** + * Encodes the specified CompositeHealthCheckHealth message. Does not implicitly {@link google.cloud.compute.v1beta.CompositeHealthCheckHealth.verify|verify} messages. + * @param message CompositeHealthCheckHealth message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.ICompositeHealthCheckHealth, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CompositeHealthCheckHealth message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.CompositeHealthCheckHealth.verify|verify} messages. + * @param message CompositeHealthCheckHealth message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.ICompositeHealthCheckHealth, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompositeHealthCheckHealth message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompositeHealthCheckHealth + * @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.CompositeHealthCheckHealth; + + /** + * Decodes a CompositeHealthCheckHealth message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CompositeHealthCheckHealth + * @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.CompositeHealthCheckHealth; + + /** + * Verifies a CompositeHealthCheckHealth 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 CompositeHealthCheckHealth message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CompositeHealthCheckHealth + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.CompositeHealthCheckHealth; + + /** + * Creates a plain object from a CompositeHealthCheckHealth message. Also converts values to other types if specified. + * @param message CompositeHealthCheckHealth + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.CompositeHealthCheckHealth, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CompositeHealthCheckHealth to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CompositeHealthCheckHealth + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace CompositeHealthCheckHealth { + + /** HealthState enum. */ + enum HealthState { + UNDEFINED_HEALTH_STATE = 0, + HEALTHY = 439801213, + UNHEALTHY = 462118084, + UNKNOWN = 433141802 + } + } + /** Properties of a CompositeHealthCheckList. */ interface ICompositeHealthCheckList { @@ -278892,6 +289941,120 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a CompositeHealthChecksGetHealthResponseHealthSourceHealth. */ + interface ICompositeHealthChecksGetHealthResponseHealthSourceHealth { + + /** CompositeHealthChecksGetHealthResponseHealthSourceHealth healthState */ + healthState?: (string|null); + + /** CompositeHealthChecksGetHealthResponseHealthSourceHealth source */ + source?: (string|null); + } + + /** Represents a CompositeHealthChecksGetHealthResponseHealthSourceHealth. */ + class CompositeHealthChecksGetHealthResponseHealthSourceHealth implements ICompositeHealthChecksGetHealthResponseHealthSourceHealth { + + /** + * Constructs a new CompositeHealthChecksGetHealthResponseHealthSourceHealth. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.ICompositeHealthChecksGetHealthResponseHealthSourceHealth); + + /** CompositeHealthChecksGetHealthResponseHealthSourceHealth healthState. */ + public healthState?: (string|null); + + /** CompositeHealthChecksGetHealthResponseHealthSourceHealth source. */ + public source?: (string|null); + + /** + * Creates a new CompositeHealthChecksGetHealthResponseHealthSourceHealth instance using the specified properties. + * @param [properties] Properties to set + * @returns CompositeHealthChecksGetHealthResponseHealthSourceHealth instance + */ + public static create(properties?: google.cloud.compute.v1beta.ICompositeHealthChecksGetHealthResponseHealthSourceHealth): google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth; + + /** + * Encodes the specified CompositeHealthChecksGetHealthResponseHealthSourceHealth message. Does not implicitly {@link google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth.verify|verify} messages. + * @param message CompositeHealthChecksGetHealthResponseHealthSourceHealth message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.ICompositeHealthChecksGetHealthResponseHealthSourceHealth, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CompositeHealthChecksGetHealthResponseHealthSourceHealth message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth.verify|verify} messages. + * @param message CompositeHealthChecksGetHealthResponseHealthSourceHealth message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.ICompositeHealthChecksGetHealthResponseHealthSourceHealth, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompositeHealthChecksGetHealthResponseHealthSourceHealth message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @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.CompositeHealthChecksGetHealthResponseHealthSourceHealth; + + /** + * Decodes a CompositeHealthChecksGetHealthResponseHealthSourceHealth message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @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.CompositeHealthChecksGetHealthResponseHealthSourceHealth; + + /** + * Verifies a CompositeHealthChecksGetHealthResponseHealthSourceHealth 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 CompositeHealthChecksGetHealthResponseHealthSourceHealth message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CompositeHealthChecksGetHealthResponseHealthSourceHealth + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth; + + /** + * Creates a plain object from a CompositeHealthChecksGetHealthResponseHealthSourceHealth message. Also converts values to other types if specified. + * @param message CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CompositeHealthChecksGetHealthResponseHealthSourceHealth to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace CompositeHealthChecksGetHealthResponseHealthSourceHealth { + + /** HealthState enum. */ + enum HealthState { + UNDEFINED_HEALTH_STATE = 0, + HEALTHY = 439801213, + UNHEALTHY = 462118084, + UNKNOWN = 433141802 + } + } + /** Properties of a CompositeHealthChecksScopedList. */ interface ICompositeHealthChecksScopedList { @@ -297607,6 +308770,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a DiskUpdateKmsKeyRequest. */ + interface IDiskUpdateKmsKeyRequest { + + /** DiskUpdateKmsKeyRequest kmsKeyName */ + kmsKeyName?: (string|null); + } + + /** Represents a DiskUpdateKmsKeyRequest. */ + class DiskUpdateKmsKeyRequest implements IDiskUpdateKmsKeyRequest { + + /** + * Constructs a new DiskUpdateKmsKeyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IDiskUpdateKmsKeyRequest); + + /** DiskUpdateKmsKeyRequest kmsKeyName. */ + public kmsKeyName?: (string|null); + + /** + * Creates a new DiskUpdateKmsKeyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DiskUpdateKmsKeyRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IDiskUpdateKmsKeyRequest): google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest; + + /** + * Encodes the specified DiskUpdateKmsKeyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest.verify|verify} messages. + * @param message DiskUpdateKmsKeyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IDiskUpdateKmsKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DiskUpdateKmsKeyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest.verify|verify} messages. + * @param message DiskUpdateKmsKeyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IDiskUpdateKmsKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DiskUpdateKmsKeyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DiskUpdateKmsKeyRequest + * @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.DiskUpdateKmsKeyRequest; + + /** + * Decodes a DiskUpdateKmsKeyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DiskUpdateKmsKeyRequest + * @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.DiskUpdateKmsKeyRequest; + + /** + * Verifies a DiskUpdateKmsKeyRequest 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 DiskUpdateKmsKeyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DiskUpdateKmsKeyRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest; + + /** + * Creates a plain object from a DiskUpdateKmsKeyRequest message. Also converts values to other types if specified. + * @param message DiskUpdateKmsKeyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DiskUpdateKmsKeyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DiskUpdateKmsKeyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a DisksAddResourcePoliciesRequest. */ interface IDisksAddResourcePoliciesRequest { @@ -303484,6 +314744,9 @@ export namespace google { /** FutureReservation commitmentInfo */ commitmentInfo?: (google.cloud.compute.v1beta.IFutureReservationCommitmentInfo|null); + /** FutureReservation confidentialComputeType */ + confidentialComputeType?: (string|null); + /** FutureReservation creationTimestamp */ creationTimestamp?: (string|null); @@ -303508,6 +314771,9 @@ export namespace google { /** FutureReservation namePrefix */ namePrefix?: (string|null); + /** FutureReservation params */ + params?: (google.cloud.compute.v1beta.IFutureReservationParams|null); + /** FutureReservation planningStatus */ planningStatus?: (string|null); @@ -303575,6 +314841,9 @@ export namespace google { /** FutureReservation commitmentInfo. */ public commitmentInfo?: (google.cloud.compute.v1beta.IFutureReservationCommitmentInfo|null); + /** FutureReservation confidentialComputeType. */ + public confidentialComputeType?: (string|null); + /** FutureReservation creationTimestamp. */ public creationTimestamp?: (string|null); @@ -303599,6 +314868,9 @@ export namespace google { /** FutureReservation namePrefix. */ public namePrefix?: (string|null); + /** FutureReservation params. */ + public params?: (google.cloud.compute.v1beta.IFutureReservationParams|null); + /** FutureReservation planningStatus. */ public planningStatus?: (string|null); @@ -303718,6 +314990,13 @@ export namespace google { namespace FutureReservation { + /** ConfidentialComputeType enum. */ + enum ConfidentialComputeType { + UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE = 0, + CONFIDENTIAL_COMPUTE_TYPE_TDX = 301241954, + CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED = 42227601 + } + /** DeploymentType enum. */ enum DeploymentType { UNDEFINED_DEPLOYMENT_TYPE = 0, @@ -303886,6 +315165,103 @@ export namespace google { } } + /** Properties of a FutureReservationParams. */ + interface IFutureReservationParams { + + /** FutureReservationParams resourceManagerTags */ + resourceManagerTags?: ({ [k: string]: string }|null); + } + + /** Represents a FutureReservationParams. */ + class FutureReservationParams implements IFutureReservationParams { + + /** + * Constructs a new FutureReservationParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IFutureReservationParams); + + /** FutureReservationParams resourceManagerTags. */ + public resourceManagerTags: { [k: string]: string }; + + /** + * Creates a new FutureReservationParams instance using the specified properties. + * @param [properties] Properties to set + * @returns FutureReservationParams instance + */ + public static create(properties?: google.cloud.compute.v1beta.IFutureReservationParams): google.cloud.compute.v1beta.FutureReservationParams; + + /** + * Encodes the specified FutureReservationParams message. Does not implicitly {@link google.cloud.compute.v1beta.FutureReservationParams.verify|verify} messages. + * @param message FutureReservationParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IFutureReservationParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FutureReservationParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.FutureReservationParams.verify|verify} messages. + * @param message FutureReservationParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IFutureReservationParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FutureReservationParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FutureReservationParams + * @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.FutureReservationParams; + + /** + * Decodes a FutureReservationParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FutureReservationParams + * @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.FutureReservationParams; + + /** + * Verifies a FutureReservationParams 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 FutureReservationParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FutureReservationParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.FutureReservationParams; + + /** + * Creates a plain object from a FutureReservationParams message. Also converts values to other types if specified. + * @param message FutureReservationParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.FutureReservationParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FutureReservationParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FutureReservationParams + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a FutureReservationSpecificSKUProperties. */ interface IFutureReservationSpecificSKUProperties { @@ -310336,6 +321712,224 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetHealthRegionCompositeHealthCheckRequest. */ + interface IGetHealthRegionCompositeHealthCheckRequest { + + /** GetHealthRegionCompositeHealthCheckRequest compositeHealthCheck */ + compositeHealthCheck?: (string|null); + + /** GetHealthRegionCompositeHealthCheckRequest project */ + project?: (string|null); + + /** GetHealthRegionCompositeHealthCheckRequest region */ + region?: (string|null); + } + + /** Represents a GetHealthRegionCompositeHealthCheckRequest. */ + class GetHealthRegionCompositeHealthCheckRequest implements IGetHealthRegionCompositeHealthCheckRequest { + + /** + * Constructs a new GetHealthRegionCompositeHealthCheckRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGetHealthRegionCompositeHealthCheckRequest); + + /** GetHealthRegionCompositeHealthCheckRequest compositeHealthCheck. */ + public compositeHealthCheck: string; + + /** GetHealthRegionCompositeHealthCheckRequest project. */ + public project: string; + + /** GetHealthRegionCompositeHealthCheckRequest region. */ + public region: string; + + /** + * Creates a new GetHealthRegionCompositeHealthCheckRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetHealthRegionCompositeHealthCheckRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGetHealthRegionCompositeHealthCheckRequest): google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest; + + /** + * Encodes the specified GetHealthRegionCompositeHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest.verify|verify} messages. + * @param message GetHealthRegionCompositeHealthCheckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGetHealthRegionCompositeHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetHealthRegionCompositeHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest.verify|verify} messages. + * @param message GetHealthRegionCompositeHealthCheckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGetHealthRegionCompositeHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetHealthRegionCompositeHealthCheckRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetHealthRegionCompositeHealthCheckRequest + * @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.GetHealthRegionCompositeHealthCheckRequest; + + /** + * Decodes a GetHealthRegionCompositeHealthCheckRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetHealthRegionCompositeHealthCheckRequest + * @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.GetHealthRegionCompositeHealthCheckRequest; + + /** + * Verifies a GetHealthRegionCompositeHealthCheckRequest 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 GetHealthRegionCompositeHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetHealthRegionCompositeHealthCheckRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest; + + /** + * Creates a plain object from a GetHealthRegionCompositeHealthCheckRequest message. Also converts values to other types if specified. + * @param message GetHealthRegionCompositeHealthCheckRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetHealthRegionCompositeHealthCheckRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetHealthRegionCompositeHealthCheckRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetHealthRegionHealthSourceRequest. */ + interface IGetHealthRegionHealthSourceRequest { + + /** GetHealthRegionHealthSourceRequest healthSource */ + healthSource?: (string|null); + + /** GetHealthRegionHealthSourceRequest project */ + project?: (string|null); + + /** GetHealthRegionHealthSourceRequest region */ + region?: (string|null); + } + + /** Represents a GetHealthRegionHealthSourceRequest. */ + class GetHealthRegionHealthSourceRequest implements IGetHealthRegionHealthSourceRequest { + + /** + * Constructs a new GetHealthRegionHealthSourceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGetHealthRegionHealthSourceRequest); + + /** GetHealthRegionHealthSourceRequest healthSource. */ + public healthSource: string; + + /** GetHealthRegionHealthSourceRequest project. */ + public project: string; + + /** GetHealthRegionHealthSourceRequest region. */ + public region: string; + + /** + * Creates a new GetHealthRegionHealthSourceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetHealthRegionHealthSourceRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGetHealthRegionHealthSourceRequest): google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest; + + /** + * Encodes the specified GetHealthRegionHealthSourceRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest.verify|verify} messages. + * @param message GetHealthRegionHealthSourceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGetHealthRegionHealthSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetHealthRegionHealthSourceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest.verify|verify} messages. + * @param message GetHealthRegionHealthSourceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGetHealthRegionHealthSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetHealthRegionHealthSourceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetHealthRegionHealthSourceRequest + * @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.GetHealthRegionHealthSourceRequest; + + /** + * Decodes a GetHealthRegionHealthSourceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetHealthRegionHealthSourceRequest + * @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.GetHealthRegionHealthSourceRequest; + + /** + * Verifies a GetHealthRegionHealthSourceRequest 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 GetHealthRegionHealthSourceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetHealthRegionHealthSourceRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest; + + /** + * Creates a plain object from a GetHealthRegionHealthSourceRequest message. Also converts values to other types if specified. + * @param message GetHealthRegionHealthSourceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetHealthRegionHealthSourceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetHealthRegionHealthSourceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetHealthTargetPoolRequest. */ interface IGetHealthTargetPoolRequest { @@ -333794,6 +345388,126 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a HealthSourceHealth. */ + interface IHealthSourceHealth { + + /** HealthSourceHealth healthState */ + healthState?: (string|null); + + /** HealthSourceHealth kind */ + kind?: (string|null); + + /** HealthSourceHealth sources */ + sources?: (google.cloud.compute.v1beta.IHealthSourcesGetHealthResponseSourceInfo[]|null); + } + + /** Represents a HealthSourceHealth. */ + class HealthSourceHealth implements IHealthSourceHealth { + + /** + * Constructs a new HealthSourceHealth. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IHealthSourceHealth); + + /** HealthSourceHealth healthState. */ + public healthState?: (string|null); + + /** HealthSourceHealth kind. */ + public kind?: (string|null); + + /** HealthSourceHealth sources. */ + public sources: google.cloud.compute.v1beta.IHealthSourcesGetHealthResponseSourceInfo[]; + + /** + * Creates a new HealthSourceHealth instance using the specified properties. + * @param [properties] Properties to set + * @returns HealthSourceHealth instance + */ + public static create(properties?: google.cloud.compute.v1beta.IHealthSourceHealth): google.cloud.compute.v1beta.HealthSourceHealth; + + /** + * Encodes the specified HealthSourceHealth message. Does not implicitly {@link google.cloud.compute.v1beta.HealthSourceHealth.verify|verify} messages. + * @param message HealthSourceHealth message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IHealthSourceHealth, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HealthSourceHealth message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.HealthSourceHealth.verify|verify} messages. + * @param message HealthSourceHealth message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IHealthSourceHealth, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HealthSourceHealth message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HealthSourceHealth + * @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.HealthSourceHealth; + + /** + * Decodes a HealthSourceHealth message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HealthSourceHealth + * @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.HealthSourceHealth; + + /** + * Verifies a HealthSourceHealth 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 HealthSourceHealth message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HealthSourceHealth + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.HealthSourceHealth; + + /** + * Creates a plain object from a HealthSourceHealth message. Also converts values to other types if specified. + * @param message HealthSourceHealth + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.HealthSourceHealth, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HealthSourceHealth to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HealthSourceHealth + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace HealthSourceHealth { + + /** HealthState enum. */ + enum HealthState { + UNDEFINED_HEALTH_STATE = 0, + HEALTHY = 439801213, + UNHEALTHY = 462118084, + UNKNOWN = 433141802 + } + } + /** Properties of a HealthSourceList. */ interface IHealthSourceList { @@ -333921,6 +345635,224 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a HealthSourcesGetHealthResponseSourceInfo. */ + interface IHealthSourcesGetHealthResponseSourceInfo { + + /** HealthSourcesGetHealthResponseSourceInfo backends */ + backends?: (google.cloud.compute.v1beta.IHealthSourcesGetHealthResponseSourceInfoBackendInfo[]|null); + + /** HealthSourcesGetHealthResponseSourceInfo forwardingRule */ + forwardingRule?: (string|null); + + /** HealthSourcesGetHealthResponseSourceInfo source */ + source?: (string|null); + } + + /** Represents a HealthSourcesGetHealthResponseSourceInfo. */ + class HealthSourcesGetHealthResponseSourceInfo implements IHealthSourcesGetHealthResponseSourceInfo { + + /** + * Constructs a new HealthSourcesGetHealthResponseSourceInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IHealthSourcesGetHealthResponseSourceInfo); + + /** HealthSourcesGetHealthResponseSourceInfo backends. */ + public backends: google.cloud.compute.v1beta.IHealthSourcesGetHealthResponseSourceInfoBackendInfo[]; + + /** HealthSourcesGetHealthResponseSourceInfo forwardingRule. */ + public forwardingRule?: (string|null); + + /** HealthSourcesGetHealthResponseSourceInfo source. */ + public source?: (string|null); + + /** + * Creates a new HealthSourcesGetHealthResponseSourceInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns HealthSourcesGetHealthResponseSourceInfo instance + */ + public static create(properties?: google.cloud.compute.v1beta.IHealthSourcesGetHealthResponseSourceInfo): google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo; + + /** + * Encodes the specified HealthSourcesGetHealthResponseSourceInfo message. Does not implicitly {@link google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo.verify|verify} messages. + * @param message HealthSourcesGetHealthResponseSourceInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IHealthSourcesGetHealthResponseSourceInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HealthSourcesGetHealthResponseSourceInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo.verify|verify} messages. + * @param message HealthSourcesGetHealthResponseSourceInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IHealthSourcesGetHealthResponseSourceInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HealthSourcesGetHealthResponseSourceInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HealthSourcesGetHealthResponseSourceInfo + * @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.HealthSourcesGetHealthResponseSourceInfo; + + /** + * Decodes a HealthSourcesGetHealthResponseSourceInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HealthSourcesGetHealthResponseSourceInfo + * @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.HealthSourcesGetHealthResponseSourceInfo; + + /** + * Verifies a HealthSourcesGetHealthResponseSourceInfo 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 HealthSourcesGetHealthResponseSourceInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HealthSourcesGetHealthResponseSourceInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo; + + /** + * Creates a plain object from a HealthSourcesGetHealthResponseSourceInfo message. Also converts values to other types if specified. + * @param message HealthSourcesGetHealthResponseSourceInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HealthSourcesGetHealthResponseSourceInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HealthSourcesGetHealthResponseSourceInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a HealthSourcesGetHealthResponseSourceInfoBackendInfo. */ + interface IHealthSourcesGetHealthResponseSourceInfoBackendInfo { + + /** HealthSourcesGetHealthResponseSourceInfoBackendInfo endpointCount */ + endpointCount?: (number|null); + + /** HealthSourcesGetHealthResponseSourceInfoBackendInfo group */ + group?: (string|null); + + /** HealthSourcesGetHealthResponseSourceInfoBackendInfo healthyEndpointCount */ + healthyEndpointCount?: (number|null); + } + + /** Represents a HealthSourcesGetHealthResponseSourceInfoBackendInfo. */ + class HealthSourcesGetHealthResponseSourceInfoBackendInfo implements IHealthSourcesGetHealthResponseSourceInfoBackendInfo { + + /** + * Constructs a new HealthSourcesGetHealthResponseSourceInfoBackendInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IHealthSourcesGetHealthResponseSourceInfoBackendInfo); + + /** HealthSourcesGetHealthResponseSourceInfoBackendInfo endpointCount. */ + public endpointCount?: (number|null); + + /** HealthSourcesGetHealthResponseSourceInfoBackendInfo group. */ + public group?: (string|null); + + /** HealthSourcesGetHealthResponseSourceInfoBackendInfo healthyEndpointCount. */ + public healthyEndpointCount?: (number|null); + + /** + * Creates a new HealthSourcesGetHealthResponseSourceInfoBackendInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns HealthSourcesGetHealthResponseSourceInfoBackendInfo instance + */ + public static create(properties?: google.cloud.compute.v1beta.IHealthSourcesGetHealthResponseSourceInfoBackendInfo): google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo; + + /** + * Encodes the specified HealthSourcesGetHealthResponseSourceInfoBackendInfo message. Does not implicitly {@link google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo.verify|verify} messages. + * @param message HealthSourcesGetHealthResponseSourceInfoBackendInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IHealthSourcesGetHealthResponseSourceInfoBackendInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HealthSourcesGetHealthResponseSourceInfoBackendInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo.verify|verify} messages. + * @param message HealthSourcesGetHealthResponseSourceInfoBackendInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IHealthSourcesGetHealthResponseSourceInfoBackendInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HealthSourcesGetHealthResponseSourceInfoBackendInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @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.HealthSourcesGetHealthResponseSourceInfoBackendInfo; + + /** + * Decodes a HealthSourcesGetHealthResponseSourceInfoBackendInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @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.HealthSourcesGetHealthResponseSourceInfoBackendInfo; + + /** + * Verifies a HealthSourcesGetHealthResponseSourceInfoBackendInfo 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 HealthSourcesGetHealthResponseSourceInfoBackendInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HealthSourcesGetHealthResponseSourceInfoBackendInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo; + + /** + * Creates a plain object from a HealthSourcesGetHealthResponseSourceInfoBackendInfo message. Also converts values to other types if specified. + * @param message HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HealthSourcesGetHealthResponseSourceInfoBackendInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a HealthSourcesScopedList. */ interface IHealthSourcesScopedList { @@ -353503,6 +365435,9 @@ export namespace google { /** InstanceGroupManagersConfigureAcceleratorTopologiesRequest acceleratorTopologyActions */ acceleratorTopologyActions?: ({ [k: string]: string }|null); + + /** InstanceGroupManagersConfigureAcceleratorTopologiesRequest acceleratorTopologyConfigurations */ + acceleratorTopologyConfigurations?: ({ [k: string]: google.cloud.compute.v1beta.IInstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration }|null); } /** Represents an InstanceGroupManagersConfigureAcceleratorTopologiesRequest. */ @@ -353517,6 +365452,9 @@ export namespace google { /** InstanceGroupManagersConfigureAcceleratorTopologiesRequest acceleratorTopologyActions. */ public acceleratorTopologyActions: { [k: string]: string }; + /** InstanceGroupManagersConfigureAcceleratorTopologiesRequest acceleratorTopologyConfigurations. */ + public acceleratorTopologyConfigurations: { [k: string]: google.cloud.compute.v1beta.IInstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration }; + /** * Creates a new InstanceGroupManagersConfigureAcceleratorTopologiesRequest instance using the specified properties. * @param [properties] Properties to set @@ -353595,6 +365533,120 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration. */ + interface IInstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration { + + /** InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration action */ + action?: (string|null); + + /** InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration externalId */ + externalId?: (string|null); + } + + /** Represents an InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration. */ + class InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration implements IInstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration { + + /** + * Constructs a new InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IInstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration); + + /** InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration action. */ + public action?: (string|null); + + /** InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration externalId. */ + public externalId?: (string|null); + + /** + * Creates a new InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration instance using the specified properties. + * @param [properties] Properties to set + * @returns InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration instance + */ + public static create(properties?: google.cloud.compute.v1beta.IInstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration): google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration; + + /** + * Encodes the specified InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration message. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.verify|verify} messages. + * @param message InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IInstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.verify|verify} messages. + * @param message InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IInstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration + * @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.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration; + + /** + * Decodes an InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration + * @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.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration; + + /** + * Verifies an InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration 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 InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration; + + /** + * Creates a plain object from an InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration message. Also converts values to other types if specified. + * @param message InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration { + + /** Action enum. */ + enum Action { + UNDEFINED_ACTION = 0, + ACCELERATOR_TOPOLOGY_ACTION_UNSPECIFIED = 78494314, + ACTIVATE = 200393971, + DEACTIVATE = 98942068 + } + } + /** Properties of an InstanceGroupManagersCreateInstancesRequest. */ interface IInstanceGroupManagersCreateInstancesRequest { @@ -354146,6 +366198,9 @@ export namespace google { /** InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState errorTimestamp */ errorTimestamp?: (string|null); + + /** InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState externalId */ + externalId?: (string|null); } /** Represents an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState. */ @@ -354166,6 +366221,9 @@ export namespace google { /** InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState errorTimestamp. */ public errorTimestamp?: (string|null); + /** InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState externalId. */ + public externalId?: (string|null); + /** * Creates a new InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState instance using the specified properties. * @param [properties] Properties to set @@ -398218,6 +410276,9 @@ export namespace google { /** NetworkAttachmentConnectedEndpoint secondaryIpCidrRanges */ secondaryIpCidrRanges?: (string[]|null); + /** NetworkAttachmentConnectedEndpoint serviceClassId */ + serviceClassId?: (string|null); + /** NetworkAttachmentConnectedEndpoint status */ status?: (string|null); @@ -398249,6 +410310,9 @@ export namespace google { /** NetworkAttachmentConnectedEndpoint secondaryIpCidrRanges. */ public secondaryIpCidrRanges: string[]; + /** NetworkAttachmentConnectedEndpoint serviceClassId. */ + public serviceClassId?: (string|null); + /** NetworkAttachmentConnectedEndpoint status. */ public status?: (string|null); @@ -401200,6 +413264,9 @@ export namespace google { /** NetworkInterface queueCount */ queueCount?: (number|null); + /** NetworkInterface serviceClassId */ + serviceClassId?: (string|null); + /** NetworkInterface stackType */ stackType?: (string|null); @@ -401273,6 +413340,9 @@ export namespace google { /** NetworkInterface queueCount. */ public queueCount?: (number|null); + /** NetworkInterface serviceClassId. */ + public serviceClassId?: (string|null); + /** NetworkInterface stackType. */ public stackType?: (string|null); @@ -426519,6 +438589,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a RegionDiskUpdateKmsKeyRequest. */ + interface IRegionDiskUpdateKmsKeyRequest { + + /** RegionDiskUpdateKmsKeyRequest kmsKeyName */ + kmsKeyName?: (string|null); + } + + /** Represents a RegionDiskUpdateKmsKeyRequest. */ + class RegionDiskUpdateKmsKeyRequest implements IRegionDiskUpdateKmsKeyRequest { + + /** + * Constructs a new RegionDiskUpdateKmsKeyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IRegionDiskUpdateKmsKeyRequest); + + /** RegionDiskUpdateKmsKeyRequest kmsKeyName. */ + public kmsKeyName?: (string|null); + + /** + * Creates a new RegionDiskUpdateKmsKeyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RegionDiskUpdateKmsKeyRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IRegionDiskUpdateKmsKeyRequest): google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest; + + /** + * Encodes the specified RegionDiskUpdateKmsKeyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest.verify|verify} messages. + * @param message RegionDiskUpdateKmsKeyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IRegionDiskUpdateKmsKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RegionDiskUpdateKmsKeyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest.verify|verify} messages. + * @param message RegionDiskUpdateKmsKeyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IRegionDiskUpdateKmsKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RegionDiskUpdateKmsKeyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RegionDiskUpdateKmsKeyRequest + * @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.RegionDiskUpdateKmsKeyRequest; + + /** + * Decodes a RegionDiskUpdateKmsKeyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RegionDiskUpdateKmsKeyRequest + * @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.RegionDiskUpdateKmsKeyRequest; + + /** + * Verifies a RegionDiskUpdateKmsKeyRequest 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 RegionDiskUpdateKmsKeyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RegionDiskUpdateKmsKeyRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest; + + /** + * Creates a plain object from a RegionDiskUpdateKmsKeyRequest message. Also converts values to other types if specified. + * @param message RegionDiskUpdateKmsKeyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RegionDiskUpdateKmsKeyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RegionDiskUpdateKmsKeyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a RegionDisksAddResourcePoliciesRequest. */ interface IRegionDisksAddResourcePoliciesRequest { @@ -430445,6 +442612,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a RegionSnapshotUpdateKmsKeyRequest. */ + interface IRegionSnapshotUpdateKmsKeyRequest { + + /** RegionSnapshotUpdateKmsKeyRequest kmsKeyName */ + kmsKeyName?: (string|null); + } + + /** Represents a RegionSnapshotUpdateKmsKeyRequest. */ + class RegionSnapshotUpdateKmsKeyRequest implements IRegionSnapshotUpdateKmsKeyRequest { + + /** + * Constructs a new RegionSnapshotUpdateKmsKeyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IRegionSnapshotUpdateKmsKeyRequest); + + /** RegionSnapshotUpdateKmsKeyRequest kmsKeyName. */ + public kmsKeyName?: (string|null); + + /** + * Creates a new RegionSnapshotUpdateKmsKeyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RegionSnapshotUpdateKmsKeyRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IRegionSnapshotUpdateKmsKeyRequest): google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest; + + /** + * Encodes the specified RegionSnapshotUpdateKmsKeyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest.verify|verify} messages. + * @param message RegionSnapshotUpdateKmsKeyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IRegionSnapshotUpdateKmsKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RegionSnapshotUpdateKmsKeyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest.verify|verify} messages. + * @param message RegionSnapshotUpdateKmsKeyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IRegionSnapshotUpdateKmsKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RegionSnapshotUpdateKmsKeyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RegionSnapshotUpdateKmsKeyRequest + * @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.RegionSnapshotUpdateKmsKeyRequest; + + /** + * Decodes a RegionSnapshotUpdateKmsKeyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RegionSnapshotUpdateKmsKeyRequest + * @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.RegionSnapshotUpdateKmsKeyRequest; + + /** + * Verifies a RegionSnapshotUpdateKmsKeyRequest 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 RegionSnapshotUpdateKmsKeyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RegionSnapshotUpdateKmsKeyRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest; + + /** + * Creates a plain object from a RegionSnapshotUpdateKmsKeyRequest message. Also converts values to other types if specified. + * @param message RegionSnapshotUpdateKmsKeyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RegionSnapshotUpdateKmsKeyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RegionSnapshotUpdateKmsKeyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a RegionTargetHttpsProxiesSetSslCertificatesRequest. */ interface IRegionTargetHttpsProxiesSetSslCertificatesRequest { @@ -433556,6 +445820,9 @@ export namespace google { /** Reservation commitment */ commitment?: (string|null); + /** Reservation confidentialComputeType */ + confidentialComputeType?: (string|null); + /** Reservation creationTimestamp */ creationTimestamp?: (string|null); @@ -433650,6 +445917,9 @@ export namespace google { /** Reservation commitment. */ public commitment?: (string|null); + /** Reservation confidentialComputeType. */ + public confidentialComputeType?: (string|null); + /** Reservation creationTimestamp. */ public creationTimestamp?: (string|null); @@ -433805,6 +446075,13 @@ export namespace google { namespace Reservation { + /** ConfidentialComputeType enum. */ + enum ConfidentialComputeType { + UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE = 0, + CONFIDENTIAL_COMPUTE_TYPE_TDX = 301241954, + CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED = 42227601 + } + /** DeploymentType enum. */ enum DeploymentType { UNDEFINED_DEPLOYMENT_TYPE = 0, @@ -443786,6 +456063,9 @@ export namespace google { /** RolloutWaveDetailsOrchestratedWaveDetails failedResourcesCount */ failedResourcesCount?: (number|Long|string|null); + + /** RolloutWaveDetailsOrchestratedWaveDetails locationStatus */ + locationStatus?: ({ [k: string]: google.cloud.compute.v1beta.IRolloutWaveDetailsOrchestratedWaveDetailsLocationStatus }|null); } /** Represents a RolloutWaveDetailsOrchestratedWaveDetails. */ @@ -443809,6 +456089,9 @@ export namespace google { /** RolloutWaveDetailsOrchestratedWaveDetails failedResourcesCount. */ public failedResourcesCount?: (number|Long|string|null); + /** RolloutWaveDetailsOrchestratedWaveDetails locationStatus. */ + public locationStatus: { [k: string]: google.cloud.compute.v1beta.IRolloutWaveDetailsOrchestratedWaveDetailsLocationStatus }; + /** * Creates a new RolloutWaveDetailsOrchestratedWaveDetails instance using the specified properties. * @param [properties] Properties to set @@ -443887,6 +456170,117 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus. */ + interface IRolloutWaveDetailsOrchestratedWaveDetailsLocationStatus { + + /** RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus state */ + state?: (string|null); + } + + /** Represents a RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus. */ + class RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus implements IRolloutWaveDetailsOrchestratedWaveDetailsLocationStatus { + + /** + * Constructs a new RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IRolloutWaveDetailsOrchestratedWaveDetailsLocationStatus); + + /** RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus state. */ + public state?: (string|null); + + /** + * Creates a new RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus instance + */ + public static create(properties?: google.cloud.compute.v1beta.IRolloutWaveDetailsOrchestratedWaveDetailsLocationStatus): google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus; + + /** + * Encodes the specified RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus message. Does not implicitly {@link google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.verify|verify} messages. + * @param message RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IRolloutWaveDetailsOrchestratedWaveDetailsLocationStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.verify|verify} messages. + * @param message RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IRolloutWaveDetailsOrchestratedWaveDetailsLocationStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus + * @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.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus; + + /** + * Decodes a RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus + * @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.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus; + + /** + * Verifies a RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus 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 RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus; + + /** + * Creates a plain object from a RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus message. Also converts values to other types if specified. + * @param message RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus { + + /** State enum. */ + enum State { + UNDEFINED_STATE = 0, + STATE_FAILED = 50857931, + STATE_IN_PROGRESS = 413162809, + STATE_PENDING = 369985449, + STATE_SKIPPED = 515663170, + STATE_SUCCEEDED = 466911219, + STATE_UNSPECIFIED = 470755401 + } + } + /** Properties of a RolloutsListResponse. */ interface IRolloutsListResponse { @@ -471793,6 +484187,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a SnapshotUpdateKmsKeyRequest. */ + interface ISnapshotUpdateKmsKeyRequest { + + /** SnapshotUpdateKmsKeyRequest kmsKeyName */ + kmsKeyName?: (string|null); + } + + /** Represents a SnapshotUpdateKmsKeyRequest. */ + class SnapshotUpdateKmsKeyRequest implements ISnapshotUpdateKmsKeyRequest { + + /** + * Constructs a new SnapshotUpdateKmsKeyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.ISnapshotUpdateKmsKeyRequest); + + /** SnapshotUpdateKmsKeyRequest kmsKeyName. */ + public kmsKeyName?: (string|null); + + /** + * Creates a new SnapshotUpdateKmsKeyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SnapshotUpdateKmsKeyRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.ISnapshotUpdateKmsKeyRequest): google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest; + + /** + * Encodes the specified SnapshotUpdateKmsKeyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest.verify|verify} messages. + * @param message SnapshotUpdateKmsKeyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.ISnapshotUpdateKmsKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SnapshotUpdateKmsKeyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest.verify|verify} messages. + * @param message SnapshotUpdateKmsKeyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.ISnapshotUpdateKmsKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SnapshotUpdateKmsKeyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SnapshotUpdateKmsKeyRequest + * @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.SnapshotUpdateKmsKeyRequest; + + /** + * Decodes a SnapshotUpdateKmsKeyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SnapshotUpdateKmsKeyRequest + * @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.SnapshotUpdateKmsKeyRequest; + + /** + * Verifies a SnapshotUpdateKmsKeyRequest 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 SnapshotUpdateKmsKeyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SnapshotUpdateKmsKeyRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest; + + /** + * Creates a plain object from a SnapshotUpdateKmsKeyRequest message. Also converts values to other types if specified. + * @param message SnapshotUpdateKmsKeyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SnapshotUpdateKmsKeyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SnapshotUpdateKmsKeyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a SnapshotsScopedList. */ interface ISnapshotsScopedList { @@ -497088,6 +509579,484 @@ export namespace google { } } + /** Properties of an UpdateKmsKeyDiskRequest. */ + interface IUpdateKmsKeyDiskRequest { + + /** UpdateKmsKeyDiskRequest disk */ + disk?: (string|null); + + /** UpdateKmsKeyDiskRequest diskUpdateKmsKeyRequestResource */ + diskUpdateKmsKeyRequestResource?: (google.cloud.compute.v1beta.IDiskUpdateKmsKeyRequest|null); + + /** UpdateKmsKeyDiskRequest project */ + project?: (string|null); + + /** UpdateKmsKeyDiskRequest requestId */ + requestId?: (string|null); + + /** UpdateKmsKeyDiskRequest zone */ + zone?: (string|null); + } + + /** Represents an UpdateKmsKeyDiskRequest. */ + class UpdateKmsKeyDiskRequest implements IUpdateKmsKeyDiskRequest { + + /** + * Constructs a new UpdateKmsKeyDiskRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IUpdateKmsKeyDiskRequest); + + /** UpdateKmsKeyDiskRequest disk. */ + public disk: string; + + /** UpdateKmsKeyDiskRequest diskUpdateKmsKeyRequestResource. */ + public diskUpdateKmsKeyRequestResource?: (google.cloud.compute.v1beta.IDiskUpdateKmsKeyRequest|null); + + /** UpdateKmsKeyDiskRequest project. */ + public project: string; + + /** UpdateKmsKeyDiskRequest requestId. */ + public requestId?: (string|null); + + /** UpdateKmsKeyDiskRequest zone. */ + public zone: string; + + /** + * Creates a new UpdateKmsKeyDiskRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateKmsKeyDiskRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IUpdateKmsKeyDiskRequest): google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest; + + /** + * Encodes the specified UpdateKmsKeyDiskRequest message. Does not implicitly {@link google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest.verify|verify} messages. + * @param message UpdateKmsKeyDiskRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IUpdateKmsKeyDiskRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateKmsKeyDiskRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest.verify|verify} messages. + * @param message UpdateKmsKeyDiskRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IUpdateKmsKeyDiskRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateKmsKeyDiskRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateKmsKeyDiskRequest + * @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.UpdateKmsKeyDiskRequest; + + /** + * Decodes an UpdateKmsKeyDiskRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateKmsKeyDiskRequest + * @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.UpdateKmsKeyDiskRequest; + + /** + * Verifies an UpdateKmsKeyDiskRequest 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 UpdateKmsKeyDiskRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateKmsKeyDiskRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest; + + /** + * Creates a plain object from an UpdateKmsKeyDiskRequest message. Also converts values to other types if specified. + * @param message UpdateKmsKeyDiskRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateKmsKeyDiskRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateKmsKeyDiskRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateKmsKeyRegionDiskRequest. */ + interface IUpdateKmsKeyRegionDiskRequest { + + /** UpdateKmsKeyRegionDiskRequest disk */ + disk?: (string|null); + + /** UpdateKmsKeyRegionDiskRequest project */ + project?: (string|null); + + /** UpdateKmsKeyRegionDiskRequest region */ + region?: (string|null); + + /** UpdateKmsKeyRegionDiskRequest regionDiskUpdateKmsKeyRequestResource */ + regionDiskUpdateKmsKeyRequestResource?: (google.cloud.compute.v1beta.IRegionDiskUpdateKmsKeyRequest|null); + + /** UpdateKmsKeyRegionDiskRequest requestId */ + requestId?: (string|null); + } + + /** Represents an UpdateKmsKeyRegionDiskRequest. */ + class UpdateKmsKeyRegionDiskRequest implements IUpdateKmsKeyRegionDiskRequest { + + /** + * Constructs a new UpdateKmsKeyRegionDiskRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IUpdateKmsKeyRegionDiskRequest); + + /** UpdateKmsKeyRegionDiskRequest disk. */ + public disk: string; + + /** UpdateKmsKeyRegionDiskRequest project. */ + public project: string; + + /** UpdateKmsKeyRegionDiskRequest region. */ + public region: string; + + /** UpdateKmsKeyRegionDiskRequest regionDiskUpdateKmsKeyRequestResource. */ + public regionDiskUpdateKmsKeyRequestResource?: (google.cloud.compute.v1beta.IRegionDiskUpdateKmsKeyRequest|null); + + /** UpdateKmsKeyRegionDiskRequest requestId. */ + public requestId?: (string|null); + + /** + * Creates a new UpdateKmsKeyRegionDiskRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateKmsKeyRegionDiskRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IUpdateKmsKeyRegionDiskRequest): google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest; + + /** + * Encodes the specified UpdateKmsKeyRegionDiskRequest message. Does not implicitly {@link google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest.verify|verify} messages. + * @param message UpdateKmsKeyRegionDiskRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IUpdateKmsKeyRegionDiskRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateKmsKeyRegionDiskRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest.verify|verify} messages. + * @param message UpdateKmsKeyRegionDiskRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IUpdateKmsKeyRegionDiskRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateKmsKeyRegionDiskRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateKmsKeyRegionDiskRequest + * @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.UpdateKmsKeyRegionDiskRequest; + + /** + * Decodes an UpdateKmsKeyRegionDiskRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateKmsKeyRegionDiskRequest + * @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.UpdateKmsKeyRegionDiskRequest; + + /** + * Verifies an UpdateKmsKeyRegionDiskRequest 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 UpdateKmsKeyRegionDiskRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateKmsKeyRegionDiskRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest; + + /** + * Creates a plain object from an UpdateKmsKeyRegionDiskRequest message. Also converts values to other types if specified. + * @param message UpdateKmsKeyRegionDiskRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateKmsKeyRegionDiskRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateKmsKeyRegionDiskRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateKmsKeyRegionSnapshotRequest. */ + interface IUpdateKmsKeyRegionSnapshotRequest { + + /** UpdateKmsKeyRegionSnapshotRequest project */ + project?: (string|null); + + /** UpdateKmsKeyRegionSnapshotRequest region */ + region?: (string|null); + + /** UpdateKmsKeyRegionSnapshotRequest regionSnapshotUpdateKmsKeyRequestResource */ + regionSnapshotUpdateKmsKeyRequestResource?: (google.cloud.compute.v1beta.IRegionSnapshotUpdateKmsKeyRequest|null); + + /** UpdateKmsKeyRegionSnapshotRequest requestId */ + requestId?: (string|null); + + /** UpdateKmsKeyRegionSnapshotRequest snapshot */ + snapshot?: (string|null); + } + + /** Represents an UpdateKmsKeyRegionSnapshotRequest. */ + class UpdateKmsKeyRegionSnapshotRequest implements IUpdateKmsKeyRegionSnapshotRequest { + + /** + * Constructs a new UpdateKmsKeyRegionSnapshotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IUpdateKmsKeyRegionSnapshotRequest); + + /** UpdateKmsKeyRegionSnapshotRequest project. */ + public project: string; + + /** UpdateKmsKeyRegionSnapshotRequest region. */ + public region: string; + + /** UpdateKmsKeyRegionSnapshotRequest regionSnapshotUpdateKmsKeyRequestResource. */ + public regionSnapshotUpdateKmsKeyRequestResource?: (google.cloud.compute.v1beta.IRegionSnapshotUpdateKmsKeyRequest|null); + + /** UpdateKmsKeyRegionSnapshotRequest requestId. */ + public requestId?: (string|null); + + /** UpdateKmsKeyRegionSnapshotRequest snapshot. */ + public snapshot: string; + + /** + * Creates a new UpdateKmsKeyRegionSnapshotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateKmsKeyRegionSnapshotRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IUpdateKmsKeyRegionSnapshotRequest): google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest; + + /** + * Encodes the specified UpdateKmsKeyRegionSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest.verify|verify} messages. + * @param message UpdateKmsKeyRegionSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IUpdateKmsKeyRegionSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateKmsKeyRegionSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest.verify|verify} messages. + * @param message UpdateKmsKeyRegionSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IUpdateKmsKeyRegionSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateKmsKeyRegionSnapshotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateKmsKeyRegionSnapshotRequest + * @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.UpdateKmsKeyRegionSnapshotRequest; + + /** + * Decodes an UpdateKmsKeyRegionSnapshotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateKmsKeyRegionSnapshotRequest + * @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.UpdateKmsKeyRegionSnapshotRequest; + + /** + * Verifies an UpdateKmsKeyRegionSnapshotRequest 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 UpdateKmsKeyRegionSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateKmsKeyRegionSnapshotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest; + + /** + * Creates a plain object from an UpdateKmsKeyRegionSnapshotRequest message. Also converts values to other types if specified. + * @param message UpdateKmsKeyRegionSnapshotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateKmsKeyRegionSnapshotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateKmsKeyRegionSnapshotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateKmsKeySnapshotRequest. */ + interface IUpdateKmsKeySnapshotRequest { + + /** UpdateKmsKeySnapshotRequest project */ + project?: (string|null); + + /** UpdateKmsKeySnapshotRequest requestId */ + requestId?: (string|null); + + /** UpdateKmsKeySnapshotRequest snapshot */ + snapshot?: (string|null); + + /** UpdateKmsKeySnapshotRequest snapshotUpdateKmsKeyRequestResource */ + snapshotUpdateKmsKeyRequestResource?: (google.cloud.compute.v1beta.ISnapshotUpdateKmsKeyRequest|null); + } + + /** Represents an UpdateKmsKeySnapshotRequest. */ + class UpdateKmsKeySnapshotRequest implements IUpdateKmsKeySnapshotRequest { + + /** + * Constructs a new UpdateKmsKeySnapshotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IUpdateKmsKeySnapshotRequest); + + /** UpdateKmsKeySnapshotRequest project. */ + public project: string; + + /** UpdateKmsKeySnapshotRequest requestId. */ + public requestId?: (string|null); + + /** UpdateKmsKeySnapshotRequest snapshot. */ + public snapshot: string; + + /** UpdateKmsKeySnapshotRequest snapshotUpdateKmsKeyRequestResource. */ + public snapshotUpdateKmsKeyRequestResource?: (google.cloud.compute.v1beta.ISnapshotUpdateKmsKeyRequest|null); + + /** + * Creates a new UpdateKmsKeySnapshotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateKmsKeySnapshotRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IUpdateKmsKeySnapshotRequest): google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest; + + /** + * Encodes the specified UpdateKmsKeySnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest.verify|verify} messages. + * @param message UpdateKmsKeySnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IUpdateKmsKeySnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateKmsKeySnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest.verify|verify} messages. + * @param message UpdateKmsKeySnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IUpdateKmsKeySnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateKmsKeySnapshotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateKmsKeySnapshotRequest + * @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.UpdateKmsKeySnapshotRequest; + + /** + * Decodes an UpdateKmsKeySnapshotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateKmsKeySnapshotRequest + * @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.UpdateKmsKeySnapshotRequest; + + /** + * Verifies an UpdateKmsKeySnapshotRequest 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 UpdateKmsKeySnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateKmsKeySnapshotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest; + + /** + * Creates a plain object from an UpdateKmsKeySnapshotRequest message. Also converts values to other types if specified. + * @param message UpdateKmsKeySnapshotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateKmsKeySnapshotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateKmsKeySnapshotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an UpdateLicenseRequest. */ interface IUpdateLicenseRequest { @@ -500076,6 +513045,9 @@ export namespace google { /** UrlMap selfLink */ selfLink?: (string|null); + /** UrlMap status */ + status?: (google.cloud.compute.v1beta.IUrlMapStatus|null); + /** UrlMap tests */ tests?: (google.cloud.compute.v1beta.IUrlMapTest[]|null); } @@ -500134,6 +513106,9 @@ export namespace google { /** UrlMap selfLink. */ public selfLink?: (string|null); + /** UrlMap status. */ + public status?: (google.cloud.compute.v1beta.IUrlMapStatus|null); + /** UrlMap tests. */ public tests: google.cloud.compute.v1beta.IUrlMapTest[]; @@ -500342,6 +513317,109 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an UrlMapQuotaUsage. */ + interface IUrlMapQuotaUsage { + + /** UrlMapQuotaUsage forwardingRules */ + forwardingRules?: (number|null); + + /** UrlMapQuotaUsage units */ + units?: (number|Long|string|null); + } + + /** Represents an UrlMapQuotaUsage. */ + class UrlMapQuotaUsage implements IUrlMapQuotaUsage { + + /** + * Constructs a new UrlMapQuotaUsage. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IUrlMapQuotaUsage); + + /** UrlMapQuotaUsage forwardingRules. */ + public forwardingRules?: (number|null); + + /** UrlMapQuotaUsage units. */ + public units?: (number|Long|string|null); + + /** + * Creates a new UrlMapQuotaUsage instance using the specified properties. + * @param [properties] Properties to set + * @returns UrlMapQuotaUsage instance + */ + public static create(properties?: google.cloud.compute.v1beta.IUrlMapQuotaUsage): google.cloud.compute.v1beta.UrlMapQuotaUsage; + + /** + * Encodes the specified UrlMapQuotaUsage message. Does not implicitly {@link google.cloud.compute.v1beta.UrlMapQuotaUsage.verify|verify} messages. + * @param message UrlMapQuotaUsage message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IUrlMapQuotaUsage, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UrlMapQuotaUsage message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.UrlMapQuotaUsage.verify|verify} messages. + * @param message UrlMapQuotaUsage message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IUrlMapQuotaUsage, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UrlMapQuotaUsage message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UrlMapQuotaUsage + * @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.UrlMapQuotaUsage; + + /** + * Decodes an UrlMapQuotaUsage message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UrlMapQuotaUsage + * @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.UrlMapQuotaUsage; + + /** + * Verifies an UrlMapQuotaUsage 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 UrlMapQuotaUsage message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UrlMapQuotaUsage + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.UrlMapQuotaUsage; + + /** + * Creates a plain object from an UrlMapQuotaUsage message. Also converts values to other types if specified. + * @param message UrlMapQuotaUsage + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.UrlMapQuotaUsage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UrlMapQuotaUsage to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UrlMapQuotaUsage + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an UrlMapReference. */ interface IUrlMapReference { @@ -500439,6 +513517,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an UrlMapStatus. */ + interface IUrlMapStatus { + + /** UrlMapStatus quotaUsage */ + quotaUsage?: (google.cloud.compute.v1beta.IUrlMapQuotaUsage|null); + } + + /** Represents an UrlMapStatus. */ + class UrlMapStatus implements IUrlMapStatus { + + /** + * Constructs a new UrlMapStatus. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IUrlMapStatus); + + /** UrlMapStatus quotaUsage. */ + public quotaUsage?: (google.cloud.compute.v1beta.IUrlMapQuotaUsage|null); + + /** + * Creates a new UrlMapStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns UrlMapStatus instance + */ + public static create(properties?: google.cloud.compute.v1beta.IUrlMapStatus): google.cloud.compute.v1beta.UrlMapStatus; + + /** + * Encodes the specified UrlMapStatus message. Does not implicitly {@link google.cloud.compute.v1beta.UrlMapStatus.verify|verify} messages. + * @param message UrlMapStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IUrlMapStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UrlMapStatus message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.UrlMapStatus.verify|verify} messages. + * @param message UrlMapStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IUrlMapStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UrlMapStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UrlMapStatus + * @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.UrlMapStatus; + + /** + * Decodes an UrlMapStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UrlMapStatus + * @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.UrlMapStatus; + + /** + * Verifies an UrlMapStatus 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 UrlMapStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UrlMapStatus + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.UrlMapStatus; + + /** + * Creates a plain object from an UrlMapStatus message. Also converts values to other types if specified. + * @param message UrlMapStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.UrlMapStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UrlMapStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UrlMapStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an UrlMapTest. */ interface IUrlMapTest { @@ -500684,6 +513859,9 @@ export namespace google { /** UrlMapValidationResult loadSucceeded */ loadSucceeded?: (boolean|null); + /** UrlMapValidationResult quotaUsage */ + quotaUsage?: (google.cloud.compute.v1beta.IUrlMapQuotaUsage|null); + /** UrlMapValidationResult testFailures */ testFailures?: (google.cloud.compute.v1beta.ITestFailure[]|null); @@ -500706,6 +513884,9 @@ export namespace google { /** UrlMapValidationResult loadSucceeded. */ public loadSucceeded?: (boolean|null); + /** UrlMapValidationResult quotaUsage. */ + public quotaUsage?: (google.cloud.compute.v1beta.IUrlMapQuotaUsage|null); + /** UrlMapValidationResult testFailures. */ public testFailures: google.cloud.compute.v1beta.ITestFailure[]; @@ -510883,6 +524064,20 @@ export namespace google { * @returns Promise */ public update(request: google.cloud.compute.v1beta.IUpdateDiskRequest): Promise; + + /** + * Calls UpdateKmsKey. + * @param request UpdateKmsKeyDiskRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateKmsKey(request: google.cloud.compute.v1beta.IUpdateKmsKeyDiskRequest, callback: google.cloud.compute.v1beta.Disks.UpdateKmsKeyCallback): void; + + /** + * Calls UpdateKmsKey. + * @param request UpdateKmsKeyDiskRequest message or plain object + * @returns Promise + */ + public updateKmsKey(request: google.cloud.compute.v1beta.IUpdateKmsKeyDiskRequest): Promise; } namespace Disks { @@ -511019,6 +524214,13 @@ export namespace google { * @param [response] Operation */ type UpdateCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.Disks|updateKmsKey}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateKmsKeyCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; } /** Represents an ExternalVpnGateways */ @@ -522348,6 +535550,20 @@ export namespace google { */ public get(request: google.cloud.compute.v1beta.IGetRegionCompositeHealthCheckRequest): Promise; + /** + * Calls GetHealth. + * @param request GetHealthRegionCompositeHealthCheckRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CompositeHealthCheckHealth + */ + public getHealth(request: google.cloud.compute.v1beta.IGetHealthRegionCompositeHealthCheckRequest, callback: google.cloud.compute.v1beta.RegionCompositeHealthChecks.GetHealthCallback): void; + + /** + * Calls GetHealth. + * @param request GetHealthRegionCompositeHealthCheckRequest message or plain object + * @returns Promise + */ + public getHealth(request: google.cloud.compute.v1beta.IGetHealthRegionCompositeHealthCheckRequest): Promise; + /** * Calls Insert. * @param request InsertRegionCompositeHealthCheckRequest message or plain object @@ -522428,6 +535644,13 @@ export namespace google { */ type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.CompositeHealthCheck) => void; + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionCompositeHealthChecks|getHealth}. + * @param error Error, if any + * @param [response] CompositeHealthCheckHealth + */ + type GetHealthCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.CompositeHealthCheckHealth) => void; + /** * Callback as used by {@link google.cloud.compute.v1beta.RegionCompositeHealthChecks|insert}. * @param error Error, if any @@ -522846,6 +536069,20 @@ export namespace google { * @returns Promise */ public update(request: google.cloud.compute.v1beta.IUpdateRegionDiskRequest): Promise; + + /** + * Calls UpdateKmsKey. + * @param request UpdateKmsKeyRegionDiskRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateKmsKey(request: google.cloud.compute.v1beta.IUpdateKmsKeyRegionDiskRequest, callback: google.cloud.compute.v1beta.RegionDisks.UpdateKmsKeyCallback): void; + + /** + * Calls UpdateKmsKey. + * @param request UpdateKmsKeyRegionDiskRequest message or plain object + * @returns Promise + */ + public updateKmsKey(request: google.cloud.compute.v1beta.IUpdateKmsKeyRegionDiskRequest): Promise; } namespace RegionDisks { @@ -522968,6 +536205,13 @@ export namespace google { * @param [response] Operation */ type UpdateCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionDisks|updateKmsKey}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateKmsKeyCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; } /** Represents a RegionHealthAggregationPolicies */ @@ -523545,6 +536789,20 @@ export namespace google { */ public get(request: google.cloud.compute.v1beta.IGetRegionHealthSourceRequest): Promise; + /** + * Calls GetHealth. + * @param request GetHealthRegionHealthSourceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and HealthSourceHealth + */ + public getHealth(request: google.cloud.compute.v1beta.IGetHealthRegionHealthSourceRequest, callback: google.cloud.compute.v1beta.RegionHealthSources.GetHealthCallback): void; + + /** + * Calls GetHealth. + * @param request GetHealthRegionHealthSourceRequest message or plain object + * @returns Promise + */ + public getHealth(request: google.cloud.compute.v1beta.IGetHealthRegionHealthSourceRequest): Promise; + /** * Calls Insert. * @param request InsertRegionHealthSourceRequest message or plain object @@ -523625,6 +536883,13 @@ export namespace google { */ type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.HealthSource) => void; + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionHealthSources|getHealth}. + * @param error Error, if any + * @param [response] HealthSourceHealth + */ + type GetHealthCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.HealthSourceHealth) => void; + /** * Callback as used by {@link google.cloud.compute.v1beta.RegionHealthSources|insert}. * @param error Error, if any @@ -526773,6 +540038,20 @@ export namespace google { * @returns Promise */ public testIamPermissions(request: google.cloud.compute.v1beta.ITestIamPermissionsRegionSnapshotRequest): Promise; + + /** + * Calls UpdateKmsKey. + * @param request UpdateKmsKeyRegionSnapshotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateKmsKey(request: google.cloud.compute.v1beta.IUpdateKmsKeyRegionSnapshotRequest, callback: google.cloud.compute.v1beta.RegionSnapshots.UpdateKmsKeyCallback): void; + + /** + * Calls UpdateKmsKey. + * @param request UpdateKmsKeyRegionSnapshotRequest message or plain object + * @returns Promise + */ + public updateKmsKey(request: google.cloud.compute.v1beta.IUpdateKmsKeyRegionSnapshotRequest): Promise; } namespace RegionSnapshots { @@ -526832,6 +540111,13 @@ export namespace google { * @param [response] TestPermissionsResponse */ type TestIamPermissionsCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.TestPermissionsResponse) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionSnapshots|updateKmsKey}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateKmsKeyCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; } /** Represents a RegionSslCertificates */ @@ -530591,6 +543877,20 @@ export namespace google { * @returns Promise */ public testIamPermissions(request: google.cloud.compute.v1beta.ITestIamPermissionsSnapshotRequest): Promise; + + /** + * Calls UpdateKmsKey. + * @param request UpdateKmsKeySnapshotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateKmsKey(request: google.cloud.compute.v1beta.IUpdateKmsKeySnapshotRequest, callback: google.cloud.compute.v1beta.Snapshots.UpdateKmsKeyCallback): void; + + /** + * Calls UpdateKmsKey. + * @param request UpdateKmsKeySnapshotRequest message or plain object + * @returns Promise + */ + public updateKmsKey(request: google.cloud.compute.v1beta.IUpdateKmsKeySnapshotRequest): Promise; } namespace Snapshots { @@ -530657,6 +543957,13 @@ export namespace google { * @param [response] TestPermissionsResponse */ type TestIamPermissionsCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.TestPermissionsResponse) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.Snapshots|updateKmsKey}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateKmsKeyCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; } /** Represents a SslCertificates */ diff --git a/packages/google-cloud-compute/protos/protos.js b/packages/google-cloud-compute/protos/protos.js index 52a972b6080c..1254ae9e682d 100644 --- a/packages/google-cloud-compute/protos/protos.js +++ b/packages/google-cloud-compute/protos/protos.js @@ -15685,31 +15685,31 @@ return AggregatedListAutoscalersRequest; })(); - v1.AggregatedListBackendServicesRequest = (function() { + v1.AggregatedListBackendBucketsRequest = (function() { /** - * Properties of an AggregatedListBackendServicesRequest. + * Properties of an AggregatedListBackendBucketsRequest. * @memberof google.cloud.compute.v1 - * @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.v1 - * @classdesc Represents an AggregatedListBackendServicesRequest. - * @implements IAggregatedListBackendServicesRequest + * @classdesc Represents an AggregatedListBackendBucketsRequest. + * @implements IAggregatedListBackendBucketsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListBackendServicesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.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) @@ -15717,136 +15717,136 @@ } /** - * AggregatedListBackendServicesRequest filter. + * AggregatedListBackendBucketsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListBackendBucketsRequest * @instance */ - AggregatedListBackendServicesRequest.prototype.filter = null; + AggregatedListBackendBucketsRequest.prototype.filter = null; /** - * AggregatedListBackendServicesRequest includeAllScopes. + * AggregatedListBackendBucketsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListBackendBucketsRequest * @instance */ - AggregatedListBackendServicesRequest.prototype.includeAllScopes = null; + AggregatedListBackendBucketsRequest.prototype.includeAllScopes = null; /** - * AggregatedListBackendServicesRequest maxResults. + * AggregatedListBackendBucketsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListBackendBucketsRequest * @instance */ - AggregatedListBackendServicesRequest.prototype.maxResults = null; + AggregatedListBackendBucketsRequest.prototype.maxResults = null; /** - * AggregatedListBackendServicesRequest orderBy. + * AggregatedListBackendBucketsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListBackendBucketsRequest * @instance */ - AggregatedListBackendServicesRequest.prototype.orderBy = null; + AggregatedListBackendBucketsRequest.prototype.orderBy = null; /** - * AggregatedListBackendServicesRequest pageToken. + * AggregatedListBackendBucketsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListBackendBucketsRequest * @instance */ - AggregatedListBackendServicesRequest.prototype.pageToken = null; + AggregatedListBackendBucketsRequest.prototype.pageToken = null; /** - * AggregatedListBackendServicesRequest project. + * AggregatedListBackendBucketsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListBackendBucketsRequest * @instance */ - AggregatedListBackendServicesRequest.prototype.project = ""; + AggregatedListBackendBucketsRequest.prototype.project = ""; /** - * AggregatedListBackendServicesRequest returnPartialSuccess. + * AggregatedListBackendBucketsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListBackendBucketsRequest * @instance */ - AggregatedListBackendServicesRequest.prototype.returnPartialSuccess = null; + AggregatedListBackendBucketsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListBackendServicesRequest serviceProjectNumber. + * AggregatedListBackendBucketsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListBackendBucketsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListBackendServicesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListBackendServicesRequest} AggregatedListBackendServicesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListBackendBucketsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.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.v1.AggregatedListBackendServicesRequest.verify|verify} messages. + * Encodes the specified AggregatedListBackendBucketsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListBackendBucketsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListBackendBucketsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListBackendServicesRequest} message AggregatedListBackendServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1.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")) @@ -15869,33 +15869,33 @@ }; /** - * Encodes the specified AggregatedListBackendServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListBackendServicesRequest.verify|verify} messages. + * Encodes the specified AggregatedListBackendBucketsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListBackendBucketsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListBackendBucketsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListBackendServicesRequest} message AggregatedListBackendServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1.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.v1.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListBackendServicesRequest} AggregatedListBackendServicesRequest + * @returns {google.cloud.compute.v1.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.v1.AggregatedListBackendServicesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListBackendBucketsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -15942,30 +15942,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.v1.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListBackendBucketsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListBackendServicesRequest} AggregatedListBackendServicesRequest + * @returns {google.cloud.compute.v1.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.v1.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1.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 = {}; @@ -16011,17 +16011,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.v1.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListBackendBucketsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListBackendServicesRequest} AggregatedListBackendServicesRequest + * @returns {google.cloud.compute.v1.AggregatedListBackendBucketsRequest} AggregatedListBackendBucketsRequest */ - AggregatedListBackendServicesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListBackendServicesRequest) + AggregatedListBackendBucketsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListBackendBucketsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListBackendServicesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListBackendBucketsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -16049,15 +16049,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.v1.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListBackendBucketsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListBackendServicesRequest} message AggregatedListBackendServicesRequest + * @param {google.cloud.compute.v1.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 = {}; @@ -16107,59 +16107,59 @@ }; /** - * Converts this AggregatedListBackendServicesRequest to JSON. + * Converts this AggregatedListBackendBucketsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListBackendServicesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListBackendBucketsRequest"; }; - return AggregatedListBackendServicesRequest; + return AggregatedListBackendBucketsRequest; })(); - v1.AggregatedListDiskTypesRequest = (function() { + v1.AggregatedListBackendServicesRequest = (function() { /** - * Properties of an AggregatedListDiskTypesRequest. + * Properties of an AggregatedListBackendServicesRequest. * @memberof google.cloud.compute.v1 - * @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.v1 - * @classdesc Represents an AggregatedListDiskTypesRequest. - * @implements IAggregatedListDiskTypesRequest + * @classdesc Represents an AggregatedListBackendServicesRequest. + * @implements IAggregatedListBackendServicesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListDiskTypesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.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) @@ -16167,136 +16167,136 @@ } /** - * AggregatedListDiskTypesRequest filter. + * AggregatedListBackendServicesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListBackendServicesRequest * @instance */ - AggregatedListDiskTypesRequest.prototype.filter = null; + AggregatedListBackendServicesRequest.prototype.filter = null; /** - * AggregatedListDiskTypesRequest includeAllScopes. + * AggregatedListBackendServicesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListBackendServicesRequest * @instance */ - AggregatedListDiskTypesRequest.prototype.includeAllScopes = null; + AggregatedListBackendServicesRequest.prototype.includeAllScopes = null; /** - * AggregatedListDiskTypesRequest maxResults. + * AggregatedListBackendServicesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListBackendServicesRequest * @instance */ - AggregatedListDiskTypesRequest.prototype.maxResults = null; + AggregatedListBackendServicesRequest.prototype.maxResults = null; /** - * AggregatedListDiskTypesRequest orderBy. + * AggregatedListBackendServicesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListBackendServicesRequest * @instance */ - AggregatedListDiskTypesRequest.prototype.orderBy = null; + AggregatedListBackendServicesRequest.prototype.orderBy = null; /** - * AggregatedListDiskTypesRequest pageToken. + * AggregatedListBackendServicesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListBackendServicesRequest * @instance */ - AggregatedListDiskTypesRequest.prototype.pageToken = null; + AggregatedListBackendServicesRequest.prototype.pageToken = null; /** - * AggregatedListDiskTypesRequest project. + * AggregatedListBackendServicesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListBackendServicesRequest * @instance */ - AggregatedListDiskTypesRequest.prototype.project = ""; + AggregatedListBackendServicesRequest.prototype.project = ""; /** - * AggregatedListDiskTypesRequest returnPartialSuccess. + * AggregatedListBackendServicesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListBackendServicesRequest * @instance */ - AggregatedListDiskTypesRequest.prototype.returnPartialSuccess = null; + AggregatedListBackendServicesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListDiskTypesRequest serviceProjectNumber. + * AggregatedListBackendServicesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListBackendServicesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListDiskTypesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListDiskTypesRequest} AggregatedListDiskTypesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListBackendServicesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.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.v1.AggregatedListDiskTypesRequest.verify|verify} messages. + * Encodes the specified AggregatedListBackendServicesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListBackendServicesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListBackendServicesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListDiskTypesRequest} message AggregatedListDiskTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1.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")) @@ -16319,33 +16319,33 @@ }; /** - * Encodes the specified AggregatedListDiskTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListDiskTypesRequest.verify|verify} messages. + * Encodes the specified AggregatedListBackendServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListBackendServicesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListBackendServicesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListDiskTypesRequest} message AggregatedListDiskTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1.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.v1.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListDiskTypesRequest} AggregatedListDiskTypesRequest + * @returns {google.cloud.compute.v1.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.v1.AggregatedListDiskTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListBackendServicesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -16392,30 +16392,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.v1.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListBackendServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListDiskTypesRequest} AggregatedListDiskTypesRequest + * @returns {google.cloud.compute.v1.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.v1.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1.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 = {}; @@ -16461,17 +16461,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.v1.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListBackendServicesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListDiskTypesRequest} AggregatedListDiskTypesRequest + * @returns {google.cloud.compute.v1.AggregatedListBackendServicesRequest} AggregatedListBackendServicesRequest */ - AggregatedListDiskTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListDiskTypesRequest) + AggregatedListBackendServicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListBackendServicesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListDiskTypesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListBackendServicesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -16499,15 +16499,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.v1.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListBackendServicesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListDiskTypesRequest} message AggregatedListDiskTypesRequest + * @param {google.cloud.compute.v1.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 = {}; @@ -16557,59 +16557,59 @@ }; /** - * Converts this AggregatedListDiskTypesRequest to JSON. + * Converts this AggregatedListBackendServicesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListDiskTypesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListBackendServicesRequest"; }; - return AggregatedListDiskTypesRequest; + return AggregatedListBackendServicesRequest; })(); - v1.AggregatedListDisksRequest = (function() { + v1.AggregatedListDiskTypesRequest = (function() { /** - * Properties of an AggregatedListDisksRequest. + * Properties of an AggregatedListDiskTypesRequest. * @memberof google.cloud.compute.v1 - * @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.v1 - * @classdesc Represents an AggregatedListDisksRequest. - * @implements IAggregatedListDisksRequest + * @classdesc Represents an AggregatedListDiskTypesRequest. + * @implements IAggregatedListDiskTypesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListDisksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.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) @@ -16617,136 +16617,136 @@ } /** - * AggregatedListDisksRequest filter. + * AggregatedListDiskTypesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1.AggregatedListDiskTypesRequest * @instance */ - AggregatedListDisksRequest.prototype.filter = null; + AggregatedListDiskTypesRequest.prototype.filter = null; /** - * AggregatedListDisksRequest includeAllScopes. + * AggregatedListDiskTypesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1.AggregatedListDiskTypesRequest * @instance */ - AggregatedListDisksRequest.prototype.includeAllScopes = null; + AggregatedListDiskTypesRequest.prototype.includeAllScopes = null; /** - * AggregatedListDisksRequest maxResults. + * AggregatedListDiskTypesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1.AggregatedListDiskTypesRequest * @instance */ - AggregatedListDisksRequest.prototype.maxResults = null; + AggregatedListDiskTypesRequest.prototype.maxResults = null; /** - * AggregatedListDisksRequest orderBy. + * AggregatedListDiskTypesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1.AggregatedListDiskTypesRequest * @instance */ - AggregatedListDisksRequest.prototype.orderBy = null; + AggregatedListDiskTypesRequest.prototype.orderBy = null; /** - * AggregatedListDisksRequest pageToken. + * AggregatedListDiskTypesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1.AggregatedListDiskTypesRequest * @instance */ - AggregatedListDisksRequest.prototype.pageToken = null; + AggregatedListDiskTypesRequest.prototype.pageToken = null; /** - * AggregatedListDisksRequest project. + * AggregatedListDiskTypesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1.AggregatedListDiskTypesRequest * @instance */ - AggregatedListDisksRequest.prototype.project = ""; + AggregatedListDiskTypesRequest.prototype.project = ""; /** - * AggregatedListDisksRequest returnPartialSuccess. + * AggregatedListDiskTypesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1.AggregatedListDiskTypesRequest * @instance */ - AggregatedListDisksRequest.prototype.returnPartialSuccess = null; + AggregatedListDiskTypesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListDisksRequest serviceProjectNumber. + * AggregatedListDiskTypesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1.AggregatedListDiskTypesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListDisksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListDisksRequest} AggregatedListDisksRequest instance + * @param {google.cloud.compute.v1.IAggregatedListDiskTypesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.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.v1.AggregatedListDisksRequest.verify|verify} messages. + * Encodes the specified AggregatedListDiskTypesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListDiskTypesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1.AggregatedListDiskTypesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListDisksRequest} message AggregatedListDisksRequest message or plain object to encode + * @param {google.cloud.compute.v1.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")) @@ -16769,33 +16769,33 @@ }; /** - * Encodes the specified AggregatedListDisksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListDisksRequest.verify|verify} messages. + * Encodes the specified AggregatedListDiskTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListDiskTypesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1.AggregatedListDiskTypesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListDisksRequest} message AggregatedListDisksRequest message or plain object to encode + * @param {google.cloud.compute.v1.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.v1.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListDisksRequest} AggregatedListDisksRequest + * @returns {google.cloud.compute.v1.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.v1.AggregatedListDisksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListDiskTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -16842,30 +16842,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.v1.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1.AggregatedListDiskTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListDisksRequest} AggregatedListDisksRequest + * @returns {google.cloud.compute.v1.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.v1.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1.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 = {}; @@ -16911,17 +16911,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.v1.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1.AggregatedListDiskTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListDisksRequest} AggregatedListDisksRequest + * @returns {google.cloud.compute.v1.AggregatedListDiskTypesRequest} AggregatedListDiskTypesRequest */ - AggregatedListDisksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListDisksRequest) + AggregatedListDiskTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListDiskTypesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListDisksRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListDiskTypesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -16949,15 +16949,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.v1.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1.AggregatedListDiskTypesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListDisksRequest} message AggregatedListDisksRequest + * @param {google.cloud.compute.v1.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 = {}; @@ -17007,59 +17007,59 @@ }; /** - * Converts this AggregatedListDisksRequest to JSON. + * Converts this AggregatedListDiskTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListDisksRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListDiskTypesRequest"; }; - return AggregatedListDisksRequest; + return AggregatedListDiskTypesRequest; })(); - v1.AggregatedListForwardingRulesRequest = (function() { + v1.AggregatedListDisksRequest = (function() { /** - * Properties of an AggregatedListForwardingRulesRequest. + * Properties of an AggregatedListDisksRequest. * @memberof google.cloud.compute.v1 - * @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.v1 - * @classdesc Represents an AggregatedListForwardingRulesRequest. - * @implements IAggregatedListForwardingRulesRequest + * @classdesc Represents an AggregatedListDisksRequest. + * @implements IAggregatedListDisksRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListForwardingRulesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.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) @@ -17067,136 +17067,136 @@ } /** - * AggregatedListForwardingRulesRequest filter. + * AggregatedListDisksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1.AggregatedListDisksRequest * @instance */ - AggregatedListForwardingRulesRequest.prototype.filter = null; + AggregatedListDisksRequest.prototype.filter = null; /** - * AggregatedListForwardingRulesRequest includeAllScopes. + * AggregatedListDisksRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1.AggregatedListDisksRequest * @instance */ - AggregatedListForwardingRulesRequest.prototype.includeAllScopes = null; + AggregatedListDisksRequest.prototype.includeAllScopes = null; /** - * AggregatedListForwardingRulesRequest maxResults. + * AggregatedListDisksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1.AggregatedListDisksRequest * @instance */ - AggregatedListForwardingRulesRequest.prototype.maxResults = null; + AggregatedListDisksRequest.prototype.maxResults = null; /** - * AggregatedListForwardingRulesRequest orderBy. + * AggregatedListDisksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1.AggregatedListDisksRequest * @instance */ - AggregatedListForwardingRulesRequest.prototype.orderBy = null; + AggregatedListDisksRequest.prototype.orderBy = null; /** - * AggregatedListForwardingRulesRequest pageToken. + * AggregatedListDisksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1.AggregatedListDisksRequest * @instance */ - AggregatedListForwardingRulesRequest.prototype.pageToken = null; + AggregatedListDisksRequest.prototype.pageToken = null; /** - * AggregatedListForwardingRulesRequest project. + * AggregatedListDisksRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1.AggregatedListDisksRequest * @instance */ - AggregatedListForwardingRulesRequest.prototype.project = ""; + AggregatedListDisksRequest.prototype.project = ""; /** - * AggregatedListForwardingRulesRequest returnPartialSuccess. + * AggregatedListDisksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1.AggregatedListDisksRequest * @instance */ - AggregatedListForwardingRulesRequest.prototype.returnPartialSuccess = null; + AggregatedListDisksRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListForwardingRulesRequest serviceProjectNumber. + * AggregatedListDisksRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1.AggregatedListDisksRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListForwardingRulesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListForwardingRulesRequest} AggregatedListForwardingRulesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListDisksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.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.v1.AggregatedListForwardingRulesRequest.verify|verify} messages. + * Encodes the specified AggregatedListDisksRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListDisksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1.AggregatedListDisksRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListForwardingRulesRequest} message AggregatedListForwardingRulesRequest message or plain object to encode + * @param {google.cloud.compute.v1.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")) @@ -17219,33 +17219,33 @@ }; /** - * Encodes the specified AggregatedListForwardingRulesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListForwardingRulesRequest.verify|verify} messages. + * Encodes the specified AggregatedListDisksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListDisksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1.AggregatedListDisksRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListForwardingRulesRequest} message AggregatedListForwardingRulesRequest message or plain object to encode + * @param {google.cloud.compute.v1.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.v1.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListForwardingRulesRequest} AggregatedListForwardingRulesRequest + * @returns {google.cloud.compute.v1.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.v1.AggregatedListForwardingRulesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListDisksRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -17292,30 +17292,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.v1.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1.AggregatedListDisksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListForwardingRulesRequest} AggregatedListForwardingRulesRequest + * @returns {google.cloud.compute.v1.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.v1.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1.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 = {}; @@ -17361,17 +17361,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.v1.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1.AggregatedListDisksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListForwardingRulesRequest} AggregatedListForwardingRulesRequest + * @returns {google.cloud.compute.v1.AggregatedListDisksRequest} AggregatedListDisksRequest */ - AggregatedListForwardingRulesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListForwardingRulesRequest) + AggregatedListDisksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListDisksRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListForwardingRulesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListDisksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -17399,15 +17399,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.v1.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1.AggregatedListDisksRequest * @static - * @param {google.cloud.compute.v1.AggregatedListForwardingRulesRequest} message AggregatedListForwardingRulesRequest + * @param {google.cloud.compute.v1.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 = {}; @@ -17457,59 +17457,59 @@ }; /** - * Converts this AggregatedListForwardingRulesRequest to JSON. + * Converts this AggregatedListDisksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListForwardingRulesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListDisksRequest"; }; - return AggregatedListForwardingRulesRequest; + return AggregatedListDisksRequest; })(); - v1.AggregatedListFutureReservationsRequest = (function() { + v1.AggregatedListForwardingRulesRequest = (function() { /** - * Properties of an AggregatedListFutureReservationsRequest. + * Properties of an AggregatedListForwardingRulesRequest. * @memberof google.cloud.compute.v1 - * @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.v1 - * @classdesc Represents an AggregatedListFutureReservationsRequest. - * @implements IAggregatedListFutureReservationsRequest + * @classdesc Represents an AggregatedListForwardingRulesRequest. + * @implements IAggregatedListForwardingRulesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListFutureReservationsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.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) @@ -17517,136 +17517,136 @@ } /** - * AggregatedListFutureReservationsRequest filter. + * AggregatedListForwardingRulesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListForwardingRulesRequest * @instance */ - AggregatedListFutureReservationsRequest.prototype.filter = null; + AggregatedListForwardingRulesRequest.prototype.filter = null; /** - * AggregatedListFutureReservationsRequest includeAllScopes. + * AggregatedListForwardingRulesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListForwardingRulesRequest * @instance */ - AggregatedListFutureReservationsRequest.prototype.includeAllScopes = null; + AggregatedListForwardingRulesRequest.prototype.includeAllScopes = null; /** - * AggregatedListFutureReservationsRequest maxResults. + * AggregatedListForwardingRulesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListForwardingRulesRequest * @instance */ - AggregatedListFutureReservationsRequest.prototype.maxResults = null; + AggregatedListForwardingRulesRequest.prototype.maxResults = null; /** - * AggregatedListFutureReservationsRequest orderBy. + * AggregatedListForwardingRulesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListForwardingRulesRequest * @instance */ - AggregatedListFutureReservationsRequest.prototype.orderBy = null; + AggregatedListForwardingRulesRequest.prototype.orderBy = null; /** - * AggregatedListFutureReservationsRequest pageToken. + * AggregatedListForwardingRulesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListForwardingRulesRequest * @instance */ - AggregatedListFutureReservationsRequest.prototype.pageToken = null; + AggregatedListForwardingRulesRequest.prototype.pageToken = null; /** - * AggregatedListFutureReservationsRequest project. + * AggregatedListForwardingRulesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListForwardingRulesRequest * @instance */ - AggregatedListFutureReservationsRequest.prototype.project = ""; + AggregatedListForwardingRulesRequest.prototype.project = ""; /** - * AggregatedListFutureReservationsRequest returnPartialSuccess. + * AggregatedListForwardingRulesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListForwardingRulesRequest * @instance */ - AggregatedListFutureReservationsRequest.prototype.returnPartialSuccess = null; + AggregatedListForwardingRulesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListFutureReservationsRequest serviceProjectNumber. + * AggregatedListForwardingRulesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListForwardingRulesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListFutureReservationsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListFutureReservationsRequest} AggregatedListFutureReservationsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListForwardingRulesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.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.v1.AggregatedListFutureReservationsRequest.verify|verify} messages. + * Encodes the specified AggregatedListForwardingRulesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListForwardingRulesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListForwardingRulesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListFutureReservationsRequest} message AggregatedListFutureReservationsRequest message or plain object to encode + * @param {google.cloud.compute.v1.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")) @@ -17669,33 +17669,33 @@ }; /** - * Encodes the specified AggregatedListFutureReservationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListFutureReservationsRequest.verify|verify} messages. + * Encodes the specified AggregatedListForwardingRulesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListForwardingRulesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListForwardingRulesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListFutureReservationsRequest} message AggregatedListFutureReservationsRequest message or plain object to encode + * @param {google.cloud.compute.v1.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.v1.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListFutureReservationsRequest} AggregatedListFutureReservationsRequest + * @returns {google.cloud.compute.v1.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.v1.AggregatedListFutureReservationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListForwardingRulesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -17742,30 +17742,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.v1.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListForwardingRulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListFutureReservationsRequest} AggregatedListFutureReservationsRequest + * @returns {google.cloud.compute.v1.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.v1.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1.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 = {}; @@ -17811,17 +17811,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.v1.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListForwardingRulesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListFutureReservationsRequest} AggregatedListFutureReservationsRequest + * @returns {google.cloud.compute.v1.AggregatedListForwardingRulesRequest} AggregatedListForwardingRulesRequest */ - AggregatedListFutureReservationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListFutureReservationsRequest) + AggregatedListForwardingRulesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListForwardingRulesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListFutureReservationsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListForwardingRulesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -17849,15 +17849,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.v1.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListForwardingRulesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListFutureReservationsRequest} message AggregatedListFutureReservationsRequest + * @param {google.cloud.compute.v1.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 = {}; @@ -17907,59 +17907,59 @@ }; /** - * Converts this AggregatedListFutureReservationsRequest to JSON. + * Converts this AggregatedListForwardingRulesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListFutureReservationsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListForwardingRulesRequest"; }; - return AggregatedListFutureReservationsRequest; + return AggregatedListForwardingRulesRequest; })(); - v1.AggregatedListGlobalOperationsRequest = (function() { + v1.AggregatedListFutureReservationsRequest = (function() { /** - * Properties of an AggregatedListGlobalOperationsRequest. + * Properties of an AggregatedListFutureReservationsRequest. * @memberof google.cloud.compute.v1 - * @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.v1 - * @classdesc Represents an AggregatedListGlobalOperationsRequest. - * @implements IAggregatedListGlobalOperationsRequest + * @classdesc Represents an AggregatedListFutureReservationsRequest. + * @implements IAggregatedListFutureReservationsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListGlobalOperationsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.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) @@ -17967,136 +17967,136 @@ } /** - * AggregatedListGlobalOperationsRequest filter. + * AggregatedListFutureReservationsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1.AggregatedListFutureReservationsRequest * @instance */ - AggregatedListGlobalOperationsRequest.prototype.filter = null; + AggregatedListFutureReservationsRequest.prototype.filter = null; /** - * AggregatedListGlobalOperationsRequest includeAllScopes. + * AggregatedListFutureReservationsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1.AggregatedListFutureReservationsRequest * @instance */ - AggregatedListGlobalOperationsRequest.prototype.includeAllScopes = null; + AggregatedListFutureReservationsRequest.prototype.includeAllScopes = null; /** - * AggregatedListGlobalOperationsRequest maxResults. + * AggregatedListFutureReservationsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1.AggregatedListFutureReservationsRequest * @instance */ - AggregatedListGlobalOperationsRequest.prototype.maxResults = null; + AggregatedListFutureReservationsRequest.prototype.maxResults = null; /** - * AggregatedListGlobalOperationsRequest orderBy. + * AggregatedListFutureReservationsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1.AggregatedListFutureReservationsRequest * @instance */ - AggregatedListGlobalOperationsRequest.prototype.orderBy = null; + AggregatedListFutureReservationsRequest.prototype.orderBy = null; /** - * AggregatedListGlobalOperationsRequest pageToken. + * AggregatedListFutureReservationsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1.AggregatedListFutureReservationsRequest * @instance */ - AggregatedListGlobalOperationsRequest.prototype.pageToken = null; + AggregatedListFutureReservationsRequest.prototype.pageToken = null; /** - * AggregatedListGlobalOperationsRequest project. + * AggregatedListFutureReservationsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1.AggregatedListFutureReservationsRequest * @instance */ - AggregatedListGlobalOperationsRequest.prototype.project = ""; + AggregatedListFutureReservationsRequest.prototype.project = ""; /** - * AggregatedListGlobalOperationsRequest returnPartialSuccess. + * AggregatedListFutureReservationsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1.AggregatedListFutureReservationsRequest * @instance */ - AggregatedListGlobalOperationsRequest.prototype.returnPartialSuccess = null; + AggregatedListFutureReservationsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListGlobalOperationsRequest serviceProjectNumber. + * AggregatedListFutureReservationsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1.AggregatedListFutureReservationsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListGlobalOperationsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListGlobalOperationsRequest} AggregatedListGlobalOperationsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListFutureReservationsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.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.v1.AggregatedListGlobalOperationsRequest.verify|verify} messages. + * Encodes the specified AggregatedListFutureReservationsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListFutureReservationsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1.AggregatedListFutureReservationsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListGlobalOperationsRequest} message AggregatedListGlobalOperationsRequest message or plain object to encode + * @param {google.cloud.compute.v1.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")) @@ -18119,33 +18119,33 @@ }; /** - * Encodes the specified AggregatedListGlobalOperationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListGlobalOperationsRequest.verify|verify} messages. + * Encodes the specified AggregatedListFutureReservationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListFutureReservationsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1.AggregatedListFutureReservationsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListGlobalOperationsRequest} message AggregatedListGlobalOperationsRequest message or plain object to encode + * @param {google.cloud.compute.v1.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.v1.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListGlobalOperationsRequest} AggregatedListGlobalOperationsRequest + * @returns {google.cloud.compute.v1.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.v1.AggregatedListGlobalOperationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListFutureReservationsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -18192,30 +18192,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.v1.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1.AggregatedListFutureReservationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListGlobalOperationsRequest} AggregatedListGlobalOperationsRequest + * @returns {google.cloud.compute.v1.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.v1.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1.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 = {}; @@ -18261,17 +18261,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.v1.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1.AggregatedListFutureReservationsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListGlobalOperationsRequest} AggregatedListGlobalOperationsRequest + * @returns {google.cloud.compute.v1.AggregatedListFutureReservationsRequest} AggregatedListFutureReservationsRequest */ - AggregatedListGlobalOperationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListGlobalOperationsRequest) + AggregatedListFutureReservationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListFutureReservationsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListGlobalOperationsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListFutureReservationsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -18299,15 +18299,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.v1.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1.AggregatedListFutureReservationsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListGlobalOperationsRequest} message AggregatedListGlobalOperationsRequest + * @param {google.cloud.compute.v1.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 = {}; @@ -18357,59 +18357,59 @@ }; /** - * Converts this AggregatedListGlobalOperationsRequest to JSON. + * Converts this AggregatedListFutureReservationsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListGlobalOperationsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListFutureReservationsRequest"; }; - return AggregatedListGlobalOperationsRequest; + return AggregatedListFutureReservationsRequest; })(); - v1.AggregatedListHealthChecksRequest = (function() { + v1.AggregatedListGlobalOperationsRequest = (function() { /** - * Properties of an AggregatedListHealthChecksRequest. + * Properties of an AggregatedListGlobalOperationsRequest. * @memberof google.cloud.compute.v1 - * @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.v1 - * @classdesc Represents an AggregatedListHealthChecksRequest. - * @implements IAggregatedListHealthChecksRequest + * @classdesc Represents an AggregatedListGlobalOperationsRequest. + * @implements IAggregatedListGlobalOperationsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListHealthChecksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.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) @@ -18417,136 +18417,136 @@ } /** - * AggregatedListHealthChecksRequest filter. + * AggregatedListGlobalOperationsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1.AggregatedListGlobalOperationsRequest * @instance */ - AggregatedListHealthChecksRequest.prototype.filter = null; + AggregatedListGlobalOperationsRequest.prototype.filter = null; /** - * AggregatedListHealthChecksRequest includeAllScopes. + * AggregatedListGlobalOperationsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1.AggregatedListGlobalOperationsRequest * @instance */ - AggregatedListHealthChecksRequest.prototype.includeAllScopes = null; + AggregatedListGlobalOperationsRequest.prototype.includeAllScopes = null; /** - * AggregatedListHealthChecksRequest maxResults. + * AggregatedListGlobalOperationsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1.AggregatedListGlobalOperationsRequest * @instance */ - AggregatedListHealthChecksRequest.prototype.maxResults = null; + AggregatedListGlobalOperationsRequest.prototype.maxResults = null; /** - * AggregatedListHealthChecksRequest orderBy. + * AggregatedListGlobalOperationsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1.AggregatedListGlobalOperationsRequest * @instance */ - AggregatedListHealthChecksRequest.prototype.orderBy = null; + AggregatedListGlobalOperationsRequest.prototype.orderBy = null; /** - * AggregatedListHealthChecksRequest pageToken. + * AggregatedListGlobalOperationsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1.AggregatedListGlobalOperationsRequest * @instance */ - AggregatedListHealthChecksRequest.prototype.pageToken = null; + AggregatedListGlobalOperationsRequest.prototype.pageToken = null; /** - * AggregatedListHealthChecksRequest project. + * AggregatedListGlobalOperationsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1.AggregatedListGlobalOperationsRequest * @instance */ - AggregatedListHealthChecksRequest.prototype.project = ""; + AggregatedListGlobalOperationsRequest.prototype.project = ""; /** - * AggregatedListHealthChecksRequest returnPartialSuccess. + * AggregatedListGlobalOperationsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1.AggregatedListGlobalOperationsRequest * @instance */ - AggregatedListHealthChecksRequest.prototype.returnPartialSuccess = null; + AggregatedListGlobalOperationsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListHealthChecksRequest serviceProjectNumber. + * AggregatedListGlobalOperationsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1.AggregatedListGlobalOperationsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListHealthChecksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListHealthChecksRequest} AggregatedListHealthChecksRequest instance + * @param {google.cloud.compute.v1.IAggregatedListGlobalOperationsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.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.v1.AggregatedListHealthChecksRequest.verify|verify} messages. + * Encodes the specified AggregatedListGlobalOperationsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListGlobalOperationsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1.AggregatedListGlobalOperationsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListHealthChecksRequest} message AggregatedListHealthChecksRequest message or plain object to encode + * @param {google.cloud.compute.v1.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")) @@ -18569,33 +18569,33 @@ }; /** - * Encodes the specified AggregatedListHealthChecksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListHealthChecksRequest.verify|verify} messages. + * Encodes the specified AggregatedListGlobalOperationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListGlobalOperationsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1.AggregatedListGlobalOperationsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListHealthChecksRequest} message AggregatedListHealthChecksRequest message or plain object to encode + * @param {google.cloud.compute.v1.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.v1.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListHealthChecksRequest} AggregatedListHealthChecksRequest + * @returns {google.cloud.compute.v1.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.v1.AggregatedListHealthChecksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListGlobalOperationsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -18642,30 +18642,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.v1.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1.AggregatedListGlobalOperationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListHealthChecksRequest} AggregatedListHealthChecksRequest + * @returns {google.cloud.compute.v1.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.v1.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1.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 = {}; @@ -18711,17 +18711,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.v1.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1.AggregatedListGlobalOperationsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListHealthChecksRequest} AggregatedListHealthChecksRequest + * @returns {google.cloud.compute.v1.AggregatedListGlobalOperationsRequest} AggregatedListGlobalOperationsRequest */ - AggregatedListHealthChecksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListHealthChecksRequest) + AggregatedListGlobalOperationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListGlobalOperationsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListHealthChecksRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListGlobalOperationsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -18749,15 +18749,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.v1.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1.AggregatedListGlobalOperationsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListHealthChecksRequest} message AggregatedListHealthChecksRequest + * @param {google.cloud.compute.v1.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 = {}; @@ -18807,59 +18807,59 @@ }; /** - * Converts this AggregatedListHealthChecksRequest to JSON. + * Converts this AggregatedListGlobalOperationsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListHealthChecksRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListGlobalOperationsRequest"; }; - return AggregatedListHealthChecksRequest; + return AggregatedListGlobalOperationsRequest; })(); - v1.AggregatedListInstanceGroupManagersRequest = (function() { + v1.AggregatedListHealthChecksRequest = (function() { /** - * Properties of an AggregatedListInstanceGroupManagersRequest. + * Properties of an AggregatedListHealthChecksRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListInstanceGroupManagersRequest. + * Constructs a new AggregatedListHealthChecksRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListInstanceGroupManagersRequest. - * @implements IAggregatedListInstanceGroupManagersRequest + * @classdesc Represents an AggregatedListHealthChecksRequest. + * @implements IAggregatedListHealthChecksRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListInstanceGroupManagersRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListHealthChecksRequest=} [properties] Properties to set */ - function AggregatedListInstanceGroupManagersRequest(properties) { + function AggregatedListHealthChecksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18867,136 +18867,136 @@ } /** - * AggregatedListInstanceGroupManagersRequest filter. + * AggregatedListHealthChecksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.AggregatedListHealthChecksRequest * @instance */ - AggregatedListInstanceGroupManagersRequest.prototype.filter = null; + AggregatedListHealthChecksRequest.prototype.filter = null; /** - * AggregatedListInstanceGroupManagersRequest includeAllScopes. + * AggregatedListHealthChecksRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.AggregatedListHealthChecksRequest * @instance */ - AggregatedListInstanceGroupManagersRequest.prototype.includeAllScopes = null; + AggregatedListHealthChecksRequest.prototype.includeAllScopes = null; /** - * AggregatedListInstanceGroupManagersRequest maxResults. + * AggregatedListHealthChecksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.AggregatedListHealthChecksRequest * @instance */ - AggregatedListInstanceGroupManagersRequest.prototype.maxResults = null; + AggregatedListHealthChecksRequest.prototype.maxResults = null; /** - * AggregatedListInstanceGroupManagersRequest orderBy. + * AggregatedListHealthChecksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.AggregatedListHealthChecksRequest * @instance */ - AggregatedListInstanceGroupManagersRequest.prototype.orderBy = null; + AggregatedListHealthChecksRequest.prototype.orderBy = null; /** - * AggregatedListInstanceGroupManagersRequest pageToken. + * AggregatedListHealthChecksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.AggregatedListHealthChecksRequest * @instance */ - AggregatedListInstanceGroupManagersRequest.prototype.pageToken = null; + AggregatedListHealthChecksRequest.prototype.pageToken = null; /** - * AggregatedListInstanceGroupManagersRequest project. + * AggregatedListHealthChecksRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.AggregatedListHealthChecksRequest * @instance */ - AggregatedListInstanceGroupManagersRequest.prototype.project = ""; + AggregatedListHealthChecksRequest.prototype.project = ""; /** - * AggregatedListInstanceGroupManagersRequest returnPartialSuccess. + * AggregatedListHealthChecksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.AggregatedListHealthChecksRequest * @instance */ - AggregatedListInstanceGroupManagersRequest.prototype.returnPartialSuccess = null; + AggregatedListHealthChecksRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListInstanceGroupManagersRequest serviceProjectNumber. + * AggregatedListHealthChecksRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.AggregatedListHealthChecksRequest * @instance */ - AggregatedListInstanceGroupManagersRequest.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(AggregatedListInstanceGroupManagersRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListInstanceGroupManagersRequest instance using the specified properties. + * Creates a new AggregatedListHealthChecksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.AggregatedListHealthChecksRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListInstanceGroupManagersRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest} AggregatedListInstanceGroupManagersRequest instance + * @param {google.cloud.compute.v1.IAggregatedListHealthChecksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListHealthChecksRequest} AggregatedListHealthChecksRequest instance */ - AggregatedListInstanceGroupManagersRequest.create = function create(properties) { - return new AggregatedListInstanceGroupManagersRequest(properties); + AggregatedListHealthChecksRequest.create = function create(properties) { + return new AggregatedListHealthChecksRequest(properties); }; /** - * Encodes the specified AggregatedListInstanceGroupManagersRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest.verify|verify} messages. + * Encodes the specified AggregatedListHealthChecksRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListHealthChecksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.AggregatedListHealthChecksRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListInstanceGroupManagersRequest} message AggregatedListInstanceGroupManagersRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListHealthChecksRequest} message AggregatedListHealthChecksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstanceGroupManagersRequest.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")) @@ -19019,33 +19019,33 @@ }; /** - * Encodes the specified AggregatedListInstanceGroupManagersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest.verify|verify} messages. + * Encodes the specified AggregatedListHealthChecksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListHealthChecksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.AggregatedListHealthChecksRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListInstanceGroupManagersRequest} message AggregatedListInstanceGroupManagersRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListHealthChecksRequest} message AggregatedListHealthChecksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstanceGroupManagersRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListHealthChecksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListInstanceGroupManagersRequest message from the specified reader or buffer. + * Decodes an AggregatedListHealthChecksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListInstanceGroupManagersRequest} AggregatedListInstanceGroupManagersRequest + * @returns {google.cloud.compute.v1.AggregatedListHealthChecksRequest} AggregatedListHealthChecksRequest * @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) { + 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.v1.AggregatedListInstanceGroupManagersRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListHealthChecksRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -19092,30 +19092,30 @@ }; /** - * Decodes an AggregatedListInstanceGroupManagersRequest 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.v1.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.AggregatedListHealthChecksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest} AggregatedListInstanceGroupManagersRequest + * @returns {google.cloud.compute.v1.AggregatedListHealthChecksRequest} AggregatedListHealthChecksRequest * @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) { + AggregatedListHealthChecksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListInstanceGroupManagersRequest message. + * Verifies an AggregatedListHealthChecksRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.AggregatedListHealthChecksRequest * @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) { + AggregatedListHealthChecksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -19161,17 +19161,17 @@ }; /** - * Creates an AggregatedListInstanceGroupManagersRequest 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.v1.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.AggregatedListHealthChecksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest} AggregatedListInstanceGroupManagersRequest + * @returns {google.cloud.compute.v1.AggregatedListHealthChecksRequest} AggregatedListHealthChecksRequest */ - AggregatedListInstanceGroupManagersRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest) + AggregatedListHealthChecksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListHealthChecksRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListHealthChecksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -19199,15 +19199,15 @@ }; /** - * Creates a plain object from an AggregatedListInstanceGroupManagersRequest 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.v1.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.AggregatedListHealthChecksRequest * @static - * @param {google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest} message AggregatedListInstanceGroupManagersRequest + * @param {google.cloud.compute.v1.AggregatedListHealthChecksRequest} message AggregatedListHealthChecksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListInstanceGroupManagersRequest.toObject = function toObject(message, options) { + AggregatedListHealthChecksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -19257,59 +19257,59 @@ }; /** - * Converts this AggregatedListInstanceGroupManagersRequest to JSON. + * Converts this AggregatedListHealthChecksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.AggregatedListHealthChecksRequest * @instance * @returns {Object.} JSON object */ - AggregatedListInstanceGroupManagersRequest.prototype.toJSON = function toJSON() { + AggregatedListHealthChecksRequest.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 AggregatedListHealthChecksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.AggregatedListHealthChecksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListInstanceGroupManagersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListHealthChecksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListHealthChecksRequest"; }; - return AggregatedListInstanceGroupManagersRequest; + return AggregatedListHealthChecksRequest; })(); - v1.AggregatedListInstanceGroupsRequest = (function() { + v1.AggregatedListInstanceGroupManagersRequest = (function() { /** - * Properties of an AggregatedListInstanceGroupsRequest. + * Properties of an AggregatedListInstanceGroupManagersRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListInstanceGroupsRequest. + * Constructs a new AggregatedListInstanceGroupManagersRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListInstanceGroupsRequest. - * @implements IAggregatedListInstanceGroupsRequest + * @classdesc Represents an AggregatedListInstanceGroupManagersRequest. + * @implements IAggregatedListInstanceGroupManagersRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListInstanceGroupsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListInstanceGroupManagersRequest=} [properties] Properties to set */ - function AggregatedListInstanceGroupsRequest(properties) { + function AggregatedListInstanceGroupManagersRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19317,136 +19317,136 @@ } /** - * AggregatedListInstanceGroupsRequest filter. + * AggregatedListInstanceGroupManagersRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest * @instance */ - AggregatedListInstanceGroupsRequest.prototype.filter = null; + AggregatedListInstanceGroupManagersRequest.prototype.filter = null; /** - * AggregatedListInstanceGroupsRequest includeAllScopes. + * AggregatedListInstanceGroupManagersRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest * @instance */ - AggregatedListInstanceGroupsRequest.prototype.includeAllScopes = null; + AggregatedListInstanceGroupManagersRequest.prototype.includeAllScopes = null; /** - * AggregatedListInstanceGroupsRequest maxResults. + * AggregatedListInstanceGroupManagersRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest * @instance */ - AggregatedListInstanceGroupsRequest.prototype.maxResults = null; + AggregatedListInstanceGroupManagersRequest.prototype.maxResults = null; /** - * AggregatedListInstanceGroupsRequest orderBy. + * AggregatedListInstanceGroupManagersRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest * @instance */ - AggregatedListInstanceGroupsRequest.prototype.orderBy = null; + AggregatedListInstanceGroupManagersRequest.prototype.orderBy = null; /** - * AggregatedListInstanceGroupsRequest pageToken. + * AggregatedListInstanceGroupManagersRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest * @instance */ - AggregatedListInstanceGroupsRequest.prototype.pageToken = null; + AggregatedListInstanceGroupManagersRequest.prototype.pageToken = null; /** - * AggregatedListInstanceGroupsRequest project. + * AggregatedListInstanceGroupManagersRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest * @instance */ - AggregatedListInstanceGroupsRequest.prototype.project = ""; + AggregatedListInstanceGroupManagersRequest.prototype.project = ""; /** - * AggregatedListInstanceGroupsRequest returnPartialSuccess. + * AggregatedListInstanceGroupManagersRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest * @instance */ - AggregatedListInstanceGroupsRequest.prototype.returnPartialSuccess = null; + AggregatedListInstanceGroupManagersRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListInstanceGroupsRequest serviceProjectNumber. + * AggregatedListInstanceGroupManagersRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest * @instance */ - AggregatedListInstanceGroupsRequest.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(AggregatedListInstanceGroupsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListInstanceGroupsRequest instance using the specified properties. + * Creates a new AggregatedListInstanceGroupManagersRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListInstanceGroupsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListInstanceGroupsRequest} AggregatedListInstanceGroupsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListInstanceGroupManagersRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest} AggregatedListInstanceGroupManagersRequest instance */ - AggregatedListInstanceGroupsRequest.create = function create(properties) { - return new AggregatedListInstanceGroupsRequest(properties); + AggregatedListInstanceGroupManagersRequest.create = function create(properties) { + return new AggregatedListInstanceGroupManagersRequest(properties); }; /** - * Encodes the specified AggregatedListInstanceGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInstanceGroupsRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstanceGroupManagersRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListInstanceGroupsRequest} message AggregatedListInstanceGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListInstanceGroupManagersRequest} message AggregatedListInstanceGroupManagersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstanceGroupsRequest.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")) @@ -19469,33 +19469,33 @@ }; /** - * Encodes the specified AggregatedListInstanceGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInstanceGroupsRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstanceGroupManagersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListInstanceGroupsRequest} message AggregatedListInstanceGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListInstanceGroupManagersRequest} message AggregatedListInstanceGroupManagersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstanceGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListInstanceGroupManagersRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListInstanceGroupsRequest message from the specified reader or buffer. + * Decodes an AggregatedListInstanceGroupManagersRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListInstanceGroupsRequest} AggregatedListInstanceGroupsRequest + * @returns {google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest} AggregatedListInstanceGroupManagersRequest * @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) { + 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.v1.AggregatedListInstanceGroupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -19542,30 +19542,30 @@ }; /** - * Decodes an AggregatedListInstanceGroupsRequest 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.v1.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListInstanceGroupsRequest} AggregatedListInstanceGroupsRequest + * @returns {google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest} AggregatedListInstanceGroupManagersRequest * @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) { + AggregatedListInstanceGroupManagersRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListInstanceGroupsRequest message. + * Verifies an AggregatedListInstanceGroupManagersRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest * @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) { + AggregatedListInstanceGroupManagersRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -19611,17 +19611,17 @@ }; /** - * Creates an AggregatedListInstanceGroupsRequest 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.v1.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListInstanceGroupsRequest} AggregatedListInstanceGroupsRequest + * @returns {google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest} AggregatedListInstanceGroupManagersRequest */ - AggregatedListInstanceGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListInstanceGroupsRequest) + AggregatedListInstanceGroupManagersRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListInstanceGroupsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -19649,15 +19649,15 @@ }; /** - * Creates a plain object from an AggregatedListInstanceGroupsRequest 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.v1.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest * @static - * @param {google.cloud.compute.v1.AggregatedListInstanceGroupsRequest} message AggregatedListInstanceGroupsRequest + * @param {google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest} message AggregatedListInstanceGroupManagersRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListInstanceGroupsRequest.toObject = function toObject(message, options) { + AggregatedListInstanceGroupManagersRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -19707,59 +19707,59 @@ }; /** - * Converts this AggregatedListInstanceGroupsRequest to JSON. + * Converts this AggregatedListInstanceGroupManagersRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest * @instance * @returns {Object.} JSON object */ - AggregatedListInstanceGroupsRequest.prototype.toJSON = function toJSON() { + AggregatedListInstanceGroupManagersRequest.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 AggregatedListInstanceGroupManagersRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListInstanceGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListInstanceGroupManagersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListInstanceGroupsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListInstanceGroupManagersRequest"; }; - return AggregatedListInstanceGroupsRequest; + return AggregatedListInstanceGroupManagersRequest; })(); - v1.AggregatedListInstanceTemplatesRequest = (function() { + v1.AggregatedListInstanceGroupsRequest = (function() { /** - * Properties of an AggregatedListInstanceTemplatesRequest. + * Properties of an AggregatedListInstanceGroupsRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListInstanceTemplatesRequest. + * Constructs a new AggregatedListInstanceGroupsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListInstanceTemplatesRequest. - * @implements IAggregatedListInstanceTemplatesRequest + * @classdesc Represents an AggregatedListInstanceGroupsRequest. + * @implements IAggregatedListInstanceGroupsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListInstanceTemplatesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListInstanceGroupsRequest=} [properties] Properties to set */ - function AggregatedListInstanceTemplatesRequest(properties) { + function AggregatedListInstanceGroupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19767,136 +19767,136 @@ } /** - * AggregatedListInstanceTemplatesRequest filter. + * AggregatedListInstanceGroupsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest * @instance */ - AggregatedListInstanceTemplatesRequest.prototype.filter = null; + AggregatedListInstanceGroupsRequest.prototype.filter = null; /** - * AggregatedListInstanceTemplatesRequest includeAllScopes. + * AggregatedListInstanceGroupsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest * @instance */ - AggregatedListInstanceTemplatesRequest.prototype.includeAllScopes = null; + AggregatedListInstanceGroupsRequest.prototype.includeAllScopes = null; /** - * AggregatedListInstanceTemplatesRequest maxResults. + * AggregatedListInstanceGroupsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest * @instance */ - AggregatedListInstanceTemplatesRequest.prototype.maxResults = null; + AggregatedListInstanceGroupsRequest.prototype.maxResults = null; /** - * AggregatedListInstanceTemplatesRequest orderBy. + * AggregatedListInstanceGroupsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest * @instance */ - AggregatedListInstanceTemplatesRequest.prototype.orderBy = null; + AggregatedListInstanceGroupsRequest.prototype.orderBy = null; /** - * AggregatedListInstanceTemplatesRequest pageToken. + * AggregatedListInstanceGroupsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest * @instance */ - AggregatedListInstanceTemplatesRequest.prototype.pageToken = null; + AggregatedListInstanceGroupsRequest.prototype.pageToken = null; /** - * AggregatedListInstanceTemplatesRequest project. + * AggregatedListInstanceGroupsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest * @instance */ - AggregatedListInstanceTemplatesRequest.prototype.project = ""; + AggregatedListInstanceGroupsRequest.prototype.project = ""; /** - * AggregatedListInstanceTemplatesRequest returnPartialSuccess. + * AggregatedListInstanceGroupsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest * @instance */ - AggregatedListInstanceTemplatesRequest.prototype.returnPartialSuccess = null; + AggregatedListInstanceGroupsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListInstanceTemplatesRequest serviceProjectNumber. + * AggregatedListInstanceGroupsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest * @instance */ - AggregatedListInstanceTemplatesRequest.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(AggregatedListInstanceTemplatesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListInstanceTemplatesRequest instance using the specified properties. + * Creates a new AggregatedListInstanceGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListInstanceTemplatesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest} AggregatedListInstanceTemplatesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListInstanceGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListInstanceGroupsRequest} AggregatedListInstanceGroupsRequest instance */ - AggregatedListInstanceTemplatesRequest.create = function create(properties) { - return new AggregatedListInstanceTemplatesRequest(properties); + AggregatedListInstanceGroupsRequest.create = function create(properties) { + return new AggregatedListInstanceGroupsRequest(properties); }; /** - * Encodes the specified AggregatedListInstanceTemplatesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstanceGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInstanceGroupsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListInstanceTemplatesRequest} message AggregatedListInstanceTemplatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListInstanceGroupsRequest} message AggregatedListInstanceGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstanceTemplatesRequest.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")) @@ -19919,33 +19919,33 @@ }; /** - * Encodes the specified AggregatedListInstanceTemplatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstanceGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInstanceGroupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListInstanceTemplatesRequest} message AggregatedListInstanceTemplatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListInstanceGroupsRequest} message AggregatedListInstanceGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstanceTemplatesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListInstanceGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListInstanceTemplatesRequest message from the specified reader or buffer. + * Decodes an AggregatedListInstanceGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListInstanceTemplatesRequest} AggregatedListInstanceTemplatesRequest + * @returns {google.cloud.compute.v1.AggregatedListInstanceGroupsRequest} AggregatedListInstanceGroupsRequest * @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) { + 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.v1.AggregatedListInstanceTemplatesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListInstanceGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -19992,30 +19992,30 @@ }; /** - * Decodes an AggregatedListInstanceTemplatesRequest 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.v1.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest} AggregatedListInstanceTemplatesRequest + * @returns {google.cloud.compute.v1.AggregatedListInstanceGroupsRequest} AggregatedListInstanceGroupsRequest * @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) { + AggregatedListInstanceGroupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListInstanceTemplatesRequest message. + * Verifies an AggregatedListInstanceGroupsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest * @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) { + AggregatedListInstanceGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -20061,17 +20061,17 @@ }; /** - * Creates an AggregatedListInstanceTemplatesRequest 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.v1.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest} AggregatedListInstanceTemplatesRequest + * @returns {google.cloud.compute.v1.AggregatedListInstanceGroupsRequest} AggregatedListInstanceGroupsRequest */ - AggregatedListInstanceTemplatesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest) + AggregatedListInstanceGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListInstanceGroupsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListInstanceGroupsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -20099,15 +20099,15 @@ }; /** - * Creates a plain object from an AggregatedListInstanceTemplatesRequest 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.v1.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest} message AggregatedListInstanceTemplatesRequest + * @param {google.cloud.compute.v1.AggregatedListInstanceGroupsRequest} message AggregatedListInstanceGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListInstanceTemplatesRequest.toObject = function toObject(message, options) { + AggregatedListInstanceGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -20157,59 +20157,59 @@ }; /** - * Converts this AggregatedListInstanceTemplatesRequest to JSON. + * Converts this AggregatedListInstanceGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListInstanceTemplatesRequest.prototype.toJSON = function toJSON() { + AggregatedListInstanceGroupsRequest.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 AggregatedListInstanceGroupsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceGroupsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListInstanceTemplatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListInstanceGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListInstanceGroupsRequest"; }; - return AggregatedListInstanceTemplatesRequest; + return AggregatedListInstanceGroupsRequest; })(); - v1.AggregatedListInstancesRequest = (function() { + v1.AggregatedListInstanceTemplatesRequest = (function() { /** - * Properties of an AggregatedListInstancesRequest. + * Properties of an AggregatedListInstanceTemplatesRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListInstancesRequest. + * Constructs a new AggregatedListInstanceTemplatesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListInstancesRequest. - * @implements IAggregatedListInstancesRequest + * @classdesc Represents an AggregatedListInstanceTemplatesRequest. + * @implements IAggregatedListInstanceTemplatesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListInstancesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListInstanceTemplatesRequest=} [properties] Properties to set */ - function AggregatedListInstancesRequest(properties) { + function AggregatedListInstanceTemplatesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20217,136 +20217,136 @@ } /** - * AggregatedListInstancesRequest filter. + * AggregatedListInstanceTemplatesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @instance */ - AggregatedListInstancesRequest.prototype.filter = null; + AggregatedListInstanceTemplatesRequest.prototype.filter = null; /** - * AggregatedListInstancesRequest includeAllScopes. + * AggregatedListInstanceTemplatesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @instance */ - AggregatedListInstancesRequest.prototype.includeAllScopes = null; + AggregatedListInstanceTemplatesRequest.prototype.includeAllScopes = null; /** - * AggregatedListInstancesRequest maxResults. + * AggregatedListInstanceTemplatesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @instance */ - AggregatedListInstancesRequest.prototype.maxResults = null; + AggregatedListInstanceTemplatesRequest.prototype.maxResults = null; /** - * AggregatedListInstancesRequest orderBy. + * AggregatedListInstanceTemplatesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @instance */ - AggregatedListInstancesRequest.prototype.orderBy = null; + AggregatedListInstanceTemplatesRequest.prototype.orderBy = null; /** - * AggregatedListInstancesRequest pageToken. + * AggregatedListInstanceTemplatesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @instance */ - AggregatedListInstancesRequest.prototype.pageToken = null; + AggregatedListInstanceTemplatesRequest.prototype.pageToken = null; /** - * AggregatedListInstancesRequest project. + * AggregatedListInstanceTemplatesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @instance */ - AggregatedListInstancesRequest.prototype.project = ""; + AggregatedListInstanceTemplatesRequest.prototype.project = ""; /** - * AggregatedListInstancesRequest returnPartialSuccess. + * AggregatedListInstanceTemplatesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @instance */ - AggregatedListInstancesRequest.prototype.returnPartialSuccess = null; + AggregatedListInstanceTemplatesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListInstancesRequest serviceProjectNumber. + * AggregatedListInstanceTemplatesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @instance */ - AggregatedListInstancesRequest.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(AggregatedListInstancesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstancesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstancesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstancesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstancesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstancesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstancesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListInstancesRequest instance using the specified properties. + * Creates a new AggregatedListInstanceTemplatesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListInstancesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListInstancesRequest} AggregatedListInstancesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListInstanceTemplatesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest} AggregatedListInstanceTemplatesRequest instance */ - AggregatedListInstancesRequest.create = function create(properties) { - return new AggregatedListInstancesRequest(properties); + AggregatedListInstanceTemplatesRequest.create = function create(properties) { + return new AggregatedListInstanceTemplatesRequest(properties); }; /** - * Encodes the specified AggregatedListInstancesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInstancesRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstanceTemplatesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListInstancesRequest} message AggregatedListInstancesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListInstanceTemplatesRequest} message AggregatedListInstanceTemplatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstancesRequest.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")) @@ -20369,33 +20369,33 @@ }; /** - * Encodes the specified AggregatedListInstancesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInstancesRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstanceTemplatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListInstancesRequest} message AggregatedListInstancesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListInstanceTemplatesRequest} message AggregatedListInstanceTemplatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstancesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListInstanceTemplatesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListInstancesRequest message from the specified reader or buffer. + * Decodes an AggregatedListInstanceTemplatesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListInstancesRequest} AggregatedListInstancesRequest + * @returns {google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest} AggregatedListInstanceTemplatesRequest * @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) { + 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.v1.AggregatedListInstancesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -20442,30 +20442,30 @@ }; /** - * Decodes an AggregatedListInstancesRequest 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.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListInstancesRequest} AggregatedListInstancesRequest + * @returns {google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest} AggregatedListInstanceTemplatesRequest * @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) { + AggregatedListInstanceTemplatesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListInstancesRequest message. + * Verifies an AggregatedListInstanceTemplatesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @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) { + AggregatedListInstanceTemplatesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -20511,17 +20511,17 @@ }; /** - * Creates an AggregatedListInstancesRequest 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.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListInstancesRequest} AggregatedListInstancesRequest + * @returns {google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest} AggregatedListInstanceTemplatesRequest */ - AggregatedListInstancesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListInstancesRequest) + AggregatedListInstanceTemplatesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListInstancesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -20549,15 +20549,15 @@ }; /** - * Creates a plain object from an AggregatedListInstancesRequest 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.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListInstancesRequest} message AggregatedListInstancesRequest + * @param {google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest} message AggregatedListInstanceTemplatesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListInstancesRequest.toObject = function toObject(message, options) { + AggregatedListInstanceTemplatesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -20607,59 +20607,59 @@ }; /** - * Converts this AggregatedListInstancesRequest to JSON. + * Converts this AggregatedListInstanceTemplatesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListInstancesRequest.prototype.toJSON = function toJSON() { + AggregatedListInstanceTemplatesRequest.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 AggregatedListInstanceTemplatesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListInstancesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListInstanceTemplatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListInstancesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListInstanceTemplatesRequest"; }; - return AggregatedListInstancesRequest; + return AggregatedListInstanceTemplatesRequest; })(); - v1.AggregatedListInstantSnapshotsRequest = (function() { + v1.AggregatedListInstancesRequest = (function() { /** - * Properties of an AggregatedListInstantSnapshotsRequest. + * Properties of an AggregatedListInstancesRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListInstantSnapshotsRequest. + * Constructs a new AggregatedListInstancesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListInstantSnapshotsRequest. - * @implements IAggregatedListInstantSnapshotsRequest + * @classdesc Represents an AggregatedListInstancesRequest. + * @implements IAggregatedListInstancesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListInstantSnapshotsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListInstancesRequest=} [properties] Properties to set */ - function AggregatedListInstantSnapshotsRequest(properties) { + function AggregatedListInstancesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20667,136 +20667,136 @@ } /** - * AggregatedListInstantSnapshotsRequest filter. + * AggregatedListInstancesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @instance */ - AggregatedListInstantSnapshotsRequest.prototype.filter = null; + AggregatedListInstancesRequest.prototype.filter = null; /** - * AggregatedListInstantSnapshotsRequest includeAllScopes. + * AggregatedListInstancesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @instance */ - AggregatedListInstantSnapshotsRequest.prototype.includeAllScopes = null; + AggregatedListInstancesRequest.prototype.includeAllScopes = null; /** - * AggregatedListInstantSnapshotsRequest maxResults. + * AggregatedListInstancesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @instance */ - AggregatedListInstantSnapshotsRequest.prototype.maxResults = null; + AggregatedListInstancesRequest.prototype.maxResults = null; /** - * AggregatedListInstantSnapshotsRequest orderBy. + * AggregatedListInstancesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @instance */ - AggregatedListInstantSnapshotsRequest.prototype.orderBy = null; + AggregatedListInstancesRequest.prototype.orderBy = null; /** - * AggregatedListInstantSnapshotsRequest pageToken. + * AggregatedListInstancesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @instance */ - AggregatedListInstantSnapshotsRequest.prototype.pageToken = null; + AggregatedListInstancesRequest.prototype.pageToken = null; /** - * AggregatedListInstantSnapshotsRequest project. + * AggregatedListInstancesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @instance */ - AggregatedListInstantSnapshotsRequest.prototype.project = ""; + AggregatedListInstancesRequest.prototype.project = ""; /** - * AggregatedListInstantSnapshotsRequest returnPartialSuccess. + * AggregatedListInstancesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @instance */ - AggregatedListInstantSnapshotsRequest.prototype.returnPartialSuccess = null; + AggregatedListInstancesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListInstantSnapshotsRequest serviceProjectNumber. + * AggregatedListInstancesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @instance */ - AggregatedListInstantSnapshotsRequest.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(AggregatedListInstantSnapshotsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListInstancesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListInstancesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListInstancesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListInstancesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListInstancesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListInstancesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListInstancesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListInstantSnapshotsRequest instance using the specified properties. + * Creates a new AggregatedListInstancesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListInstantSnapshotsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest} AggregatedListInstantSnapshotsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListInstancesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListInstancesRequest} AggregatedListInstancesRequest instance */ - AggregatedListInstantSnapshotsRequest.create = function create(properties) { - return new AggregatedListInstantSnapshotsRequest(properties); + AggregatedListInstancesRequest.create = function create(properties) { + return new AggregatedListInstancesRequest(properties); }; /** - * Encodes the specified AggregatedListInstantSnapshotsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstancesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInstancesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListInstantSnapshotsRequest} message AggregatedListInstantSnapshotsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListInstancesRequest} message AggregatedListInstancesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstantSnapshotsRequest.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")) @@ -20819,33 +20819,33 @@ }; /** - * Encodes the specified AggregatedListInstantSnapshotsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstancesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInstancesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListInstantSnapshotsRequest} message AggregatedListInstantSnapshotsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListInstancesRequest} message AggregatedListInstancesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstantSnapshotsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListInstancesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListInstantSnapshotsRequest message from the specified reader or buffer. + * Decodes an AggregatedListInstancesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListInstantSnapshotsRequest} AggregatedListInstantSnapshotsRequest + * @returns {google.cloud.compute.v1.AggregatedListInstancesRequest} AggregatedListInstancesRequest * @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) { + 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.v1.AggregatedListInstantSnapshotsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListInstancesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -20892,30 +20892,30 @@ }; /** - * Decodes an AggregatedListInstantSnapshotsRequest 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.v1.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest} AggregatedListInstantSnapshotsRequest + * @returns {google.cloud.compute.v1.AggregatedListInstancesRequest} AggregatedListInstancesRequest * @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) { + AggregatedListInstancesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListInstantSnapshotsRequest message. + * Verifies an AggregatedListInstancesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @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) { + AggregatedListInstancesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -20961,17 +20961,17 @@ }; /** - * Creates an AggregatedListInstantSnapshotsRequest 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.v1.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest} AggregatedListInstantSnapshotsRequest + * @returns {google.cloud.compute.v1.AggregatedListInstancesRequest} AggregatedListInstancesRequest */ - AggregatedListInstantSnapshotsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest) + AggregatedListInstancesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListInstancesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListInstancesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -20999,15 +20999,15 @@ }; /** - * Creates a plain object from an AggregatedListInstantSnapshotsRequest 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.v1.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest} message AggregatedListInstantSnapshotsRequest + * @param {google.cloud.compute.v1.AggregatedListInstancesRequest} message AggregatedListInstancesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListInstantSnapshotsRequest.toObject = function toObject(message, options) { + AggregatedListInstancesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -21057,59 +21057,59 @@ }; /** - * Converts this AggregatedListInstantSnapshotsRequest to JSON. + * Converts this AggregatedListInstancesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListInstantSnapshotsRequest.prototype.toJSON = function toJSON() { + AggregatedListInstancesRequest.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 AggregatedListInstancesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstancesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListInstantSnapshotsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListInstancesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListInstancesRequest"; }; - return AggregatedListInstantSnapshotsRequest; + return AggregatedListInstancesRequest; })(); - v1.AggregatedListInterconnectAttachmentsRequest = (function() { + v1.AggregatedListInstantSnapshotsRequest = (function() { /** - * Properties of an AggregatedListInterconnectAttachmentsRequest. + * Properties of an AggregatedListInstantSnapshotsRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListInterconnectAttachmentsRequest. + * Constructs a new AggregatedListInstantSnapshotsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListInterconnectAttachmentsRequest. - * @implements IAggregatedListInterconnectAttachmentsRequest + * @classdesc Represents an AggregatedListInstantSnapshotsRequest. + * @implements IAggregatedListInstantSnapshotsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListInterconnectAttachmentsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListInstantSnapshotsRequest=} [properties] Properties to set */ - function AggregatedListInterconnectAttachmentsRequest(properties) { + function AggregatedListInstantSnapshotsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21117,136 +21117,136 @@ } /** - * AggregatedListInterconnectAttachmentsRequest filter. + * AggregatedListInstantSnapshotsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest * @instance */ - AggregatedListInterconnectAttachmentsRequest.prototype.filter = null; + AggregatedListInstantSnapshotsRequest.prototype.filter = null; /** - * AggregatedListInterconnectAttachmentsRequest includeAllScopes. + * AggregatedListInstantSnapshotsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest * @instance */ - AggregatedListInterconnectAttachmentsRequest.prototype.includeAllScopes = null; + AggregatedListInstantSnapshotsRequest.prototype.includeAllScopes = null; /** - * AggregatedListInterconnectAttachmentsRequest maxResults. + * AggregatedListInstantSnapshotsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest * @instance */ - AggregatedListInterconnectAttachmentsRequest.prototype.maxResults = null; + AggregatedListInstantSnapshotsRequest.prototype.maxResults = null; /** - * AggregatedListInterconnectAttachmentsRequest orderBy. + * AggregatedListInstantSnapshotsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest * @instance */ - AggregatedListInterconnectAttachmentsRequest.prototype.orderBy = null; + AggregatedListInstantSnapshotsRequest.prototype.orderBy = null; /** - * AggregatedListInterconnectAttachmentsRequest pageToken. + * AggregatedListInstantSnapshotsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest * @instance */ - AggregatedListInterconnectAttachmentsRequest.prototype.pageToken = null; + AggregatedListInstantSnapshotsRequest.prototype.pageToken = null; /** - * AggregatedListInterconnectAttachmentsRequest project. + * AggregatedListInstantSnapshotsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest * @instance */ - AggregatedListInterconnectAttachmentsRequest.prototype.project = ""; + AggregatedListInstantSnapshotsRequest.prototype.project = ""; /** - * AggregatedListInterconnectAttachmentsRequest returnPartialSuccess. + * AggregatedListInstantSnapshotsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest * @instance */ - AggregatedListInterconnectAttachmentsRequest.prototype.returnPartialSuccess = null; + AggregatedListInstantSnapshotsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListInterconnectAttachmentsRequest serviceProjectNumber. + * AggregatedListInstantSnapshotsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest * @instance */ - AggregatedListInterconnectAttachmentsRequest.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(AggregatedListInterconnectAttachmentsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListInterconnectAttachmentsRequest instance using the specified properties. + * Creates a new AggregatedListInstantSnapshotsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListInterconnectAttachmentsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListInstantSnapshotsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest} AggregatedListInstantSnapshotsRequest instance */ - AggregatedListInterconnectAttachmentsRequest.create = function create(properties) { - return new AggregatedListInterconnectAttachmentsRequest(properties); + AggregatedListInstantSnapshotsRequest.create = function create(properties) { + return new AggregatedListInstantSnapshotsRequest(properties); }; /** - * Encodes the specified AggregatedListInterconnectAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstantSnapshotsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListInterconnectAttachmentsRequest} message AggregatedListInterconnectAttachmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListInstantSnapshotsRequest} message AggregatedListInstantSnapshotsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInterconnectAttachmentsRequest.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")) @@ -21269,33 +21269,33 @@ }; /** - * Encodes the specified AggregatedListInterconnectAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstantSnapshotsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListInterconnectAttachmentsRequest} message AggregatedListInterconnectAttachmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListInstantSnapshotsRequest} message AggregatedListInstantSnapshotsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInterconnectAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListInstantSnapshotsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListInterconnectAttachmentsRequest message from the specified reader or buffer. + * Decodes an AggregatedListInstantSnapshotsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest} AggregatedListInstantSnapshotsRequest * @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) { + 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.v1.AggregatedListInterconnectAttachmentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -21342,30 +21342,30 @@ }; /** - * Decodes an AggregatedListInterconnectAttachmentsRequest 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.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest} AggregatedListInstantSnapshotsRequest * @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) { + AggregatedListInstantSnapshotsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListInterconnectAttachmentsRequest message. + * Verifies an AggregatedListInstantSnapshotsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest * @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) { + AggregatedListInstantSnapshotsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -21411,17 +21411,17 @@ }; /** - * Creates an AggregatedListInterconnectAttachmentsRequest 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.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest} AggregatedListInstantSnapshotsRequest */ - AggregatedListInterconnectAttachmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest) + AggregatedListInstantSnapshotsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -21449,15 +21449,15 @@ }; /** - * Creates a plain object from an AggregatedListInterconnectAttachmentsRequest 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.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest} message AggregatedListInterconnectAttachmentsRequest + * @param {google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest} message AggregatedListInstantSnapshotsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListInterconnectAttachmentsRequest.toObject = function toObject(message, options) { + AggregatedListInstantSnapshotsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -21507,59 +21507,59 @@ }; /** - * Converts this AggregatedListInterconnectAttachmentsRequest to JSON. + * Converts this AggregatedListInstantSnapshotsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListInterconnectAttachmentsRequest.prototype.toJSON = function toJSON() { + AggregatedListInstantSnapshotsRequest.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 AggregatedListInstantSnapshotsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListInterconnectAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListInstantSnapshotsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListInstantSnapshotsRequest"; }; - return AggregatedListInterconnectAttachmentsRequest; + return AggregatedListInstantSnapshotsRequest; })(); - v1.AggregatedListMachineTypesRequest = (function() { + v1.AggregatedListInterconnectAttachmentsRequest = (function() { /** - * Properties of an AggregatedListMachineTypesRequest. + * Properties of an AggregatedListInterconnectAttachmentsRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListMachineTypesRequest. + * Constructs a new AggregatedListInterconnectAttachmentsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListMachineTypesRequest. - * @implements IAggregatedListMachineTypesRequest + * @classdesc Represents an AggregatedListInterconnectAttachmentsRequest. + * @implements IAggregatedListInterconnectAttachmentsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListMachineTypesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListInterconnectAttachmentsRequest=} [properties] Properties to set */ - function AggregatedListMachineTypesRequest(properties) { + function AggregatedListInterconnectAttachmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21567,136 +21567,136 @@ } /** - * AggregatedListMachineTypesRequest filter. + * AggregatedListInterconnectAttachmentsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @instance */ - AggregatedListMachineTypesRequest.prototype.filter = null; + AggregatedListInterconnectAttachmentsRequest.prototype.filter = null; /** - * AggregatedListMachineTypesRequest includeAllScopes. + * AggregatedListInterconnectAttachmentsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @instance */ - AggregatedListMachineTypesRequest.prototype.includeAllScopes = null; + AggregatedListInterconnectAttachmentsRequest.prototype.includeAllScopes = null; /** - * AggregatedListMachineTypesRequest maxResults. + * AggregatedListInterconnectAttachmentsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @instance */ - AggregatedListMachineTypesRequest.prototype.maxResults = null; + AggregatedListInterconnectAttachmentsRequest.prototype.maxResults = null; /** - * AggregatedListMachineTypesRequest orderBy. + * AggregatedListInterconnectAttachmentsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @instance */ - AggregatedListMachineTypesRequest.prototype.orderBy = null; + AggregatedListInterconnectAttachmentsRequest.prototype.orderBy = null; /** - * AggregatedListMachineTypesRequest pageToken. + * AggregatedListInterconnectAttachmentsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @instance */ - AggregatedListMachineTypesRequest.prototype.pageToken = null; + AggregatedListInterconnectAttachmentsRequest.prototype.pageToken = null; /** - * AggregatedListMachineTypesRequest project. + * AggregatedListInterconnectAttachmentsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @instance */ - AggregatedListMachineTypesRequest.prototype.project = ""; + AggregatedListInterconnectAttachmentsRequest.prototype.project = ""; /** - * AggregatedListMachineTypesRequest returnPartialSuccess. + * AggregatedListInterconnectAttachmentsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @instance */ - AggregatedListMachineTypesRequest.prototype.returnPartialSuccess = null; + AggregatedListInterconnectAttachmentsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListMachineTypesRequest serviceProjectNumber. + * AggregatedListInterconnectAttachmentsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @instance */ - AggregatedListMachineTypesRequest.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(AggregatedListMachineTypesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListMachineTypesRequest instance using the specified properties. + * Creates a new AggregatedListInterconnectAttachmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListMachineTypesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListInterconnectAttachmentsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest instance */ - AggregatedListMachineTypesRequest.create = function create(properties) { - return new AggregatedListMachineTypesRequest(properties); + AggregatedListInterconnectAttachmentsRequest.create = function create(properties) { + return new AggregatedListInterconnectAttachmentsRequest(properties); }; /** - * Encodes the specified AggregatedListMachineTypesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListMachineTypesRequest.verify|verify} messages. + * Encodes the specified AggregatedListInterconnectAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListMachineTypesRequest} message AggregatedListMachineTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListInterconnectAttachmentsRequest} message AggregatedListInterconnectAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListMachineTypesRequest.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")) @@ -21719,33 +21719,33 @@ }; /** - * Encodes the specified AggregatedListMachineTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListMachineTypesRequest.verify|verify} messages. + * Encodes the specified AggregatedListInterconnectAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListMachineTypesRequest} message AggregatedListMachineTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListInterconnectAttachmentsRequest} message AggregatedListInterconnectAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListMachineTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListInterconnectAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListMachineTypesRequest message from the specified reader or buffer. + * Decodes an AggregatedListInterconnectAttachmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest + * @returns {google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest * @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) { + 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.v1.AggregatedListMachineTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -21792,30 +21792,30 @@ }; /** - * Decodes an AggregatedListMachineTypesRequest 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.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest + * @returns {google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest * @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) { + AggregatedListInterconnectAttachmentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListMachineTypesRequest message. + * Verifies an AggregatedListInterconnectAttachmentsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @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) { + AggregatedListInterconnectAttachmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -21861,17 +21861,17 @@ }; /** - * Creates an AggregatedListMachineTypesRequest 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.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest + * @returns {google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest */ - AggregatedListMachineTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListMachineTypesRequest) + AggregatedListInterconnectAttachmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListMachineTypesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -21899,15 +21899,15 @@ }; /** - * Creates a plain object from an AggregatedListMachineTypesRequest 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.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListMachineTypesRequest} message AggregatedListMachineTypesRequest + * @param {google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest} message AggregatedListInterconnectAttachmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListMachineTypesRequest.toObject = function toObject(message, options) { + AggregatedListInterconnectAttachmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -21957,59 +21957,59 @@ }; /** - * Converts this AggregatedListMachineTypesRequest to JSON. + * Converts this AggregatedListInterconnectAttachmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListMachineTypesRequest.prototype.toJSON = function toJSON() { + AggregatedListInterconnectAttachmentsRequest.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 AggregatedListInterconnectAttachmentsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListMachineTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListInterconnectAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListMachineTypesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListInterconnectAttachmentsRequest"; }; - return AggregatedListMachineTypesRequest; + return AggregatedListInterconnectAttachmentsRequest; })(); - v1.AggregatedListNetworkAttachmentsRequest = (function() { + v1.AggregatedListMachineTypesRequest = (function() { /** - * Properties of an AggregatedListNetworkAttachmentsRequest. + * Properties of an AggregatedListMachineTypesRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListNetworkAttachmentsRequest. + * Constructs a new AggregatedListMachineTypesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListNetworkAttachmentsRequest. - * @implements IAggregatedListNetworkAttachmentsRequest + * @classdesc Represents an AggregatedListMachineTypesRequest. + * @implements IAggregatedListMachineTypesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListNetworkAttachmentsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListMachineTypesRequest=} [properties] Properties to set */ - function AggregatedListNetworkAttachmentsRequest(properties) { + function AggregatedListMachineTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22017,136 +22017,136 @@ } /** - * AggregatedListNetworkAttachmentsRequest filter. + * AggregatedListMachineTypesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @instance */ - AggregatedListNetworkAttachmentsRequest.prototype.filter = null; + AggregatedListMachineTypesRequest.prototype.filter = null; /** - * AggregatedListNetworkAttachmentsRequest includeAllScopes. + * AggregatedListMachineTypesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @instance */ - AggregatedListNetworkAttachmentsRequest.prototype.includeAllScopes = null; + AggregatedListMachineTypesRequest.prototype.includeAllScopes = null; /** - * AggregatedListNetworkAttachmentsRequest maxResults. + * AggregatedListMachineTypesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @instance */ - AggregatedListNetworkAttachmentsRequest.prototype.maxResults = null; + AggregatedListMachineTypesRequest.prototype.maxResults = null; /** - * AggregatedListNetworkAttachmentsRequest orderBy. + * AggregatedListMachineTypesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @instance */ - AggregatedListNetworkAttachmentsRequest.prototype.orderBy = null; + AggregatedListMachineTypesRequest.prototype.orderBy = null; /** - * AggregatedListNetworkAttachmentsRequest pageToken. + * AggregatedListMachineTypesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @instance */ - AggregatedListNetworkAttachmentsRequest.prototype.pageToken = null; + AggregatedListMachineTypesRequest.prototype.pageToken = null; /** - * AggregatedListNetworkAttachmentsRequest project. + * AggregatedListMachineTypesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @instance */ - AggregatedListNetworkAttachmentsRequest.prototype.project = ""; + AggregatedListMachineTypesRequest.prototype.project = ""; /** - * AggregatedListNetworkAttachmentsRequest returnPartialSuccess. + * AggregatedListMachineTypesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @instance */ - AggregatedListNetworkAttachmentsRequest.prototype.returnPartialSuccess = null; + AggregatedListMachineTypesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListNetworkAttachmentsRequest serviceProjectNumber. + * AggregatedListMachineTypesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @instance */ - AggregatedListNetworkAttachmentsRequest.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(AggregatedListNetworkAttachmentsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNetworkAttachmentsRequest instance using the specified properties. + * Creates a new AggregatedListMachineTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNetworkAttachmentsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListMachineTypesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest instance */ - AggregatedListNetworkAttachmentsRequest.create = function create(properties) { - return new AggregatedListNetworkAttachmentsRequest(properties); + AggregatedListMachineTypesRequest.create = function create(properties) { + return new AggregatedListMachineTypesRequest(properties); }; /** - * Encodes the specified AggregatedListNetworkAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListMachineTypesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListMachineTypesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNetworkAttachmentsRequest} message AggregatedListNetworkAttachmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListMachineTypesRequest} message AggregatedListMachineTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkAttachmentsRequest.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")) @@ -22169,33 +22169,33 @@ }; /** - * Encodes the specified AggregatedListNetworkAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListMachineTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListMachineTypesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNetworkAttachmentsRequest} message AggregatedListNetworkAttachmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListMachineTypesRequest} message AggregatedListMachineTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListMachineTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNetworkAttachmentsRequest message from the specified reader or buffer. + * Decodes an AggregatedListMachineTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest * @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) { + 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.v1.AggregatedListNetworkAttachmentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListMachineTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -22242,30 +22242,30 @@ }; /** - * Decodes an AggregatedListNetworkAttachmentsRequest 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.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest * @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) { + AggregatedListMachineTypesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNetworkAttachmentsRequest message. + * Verifies an AggregatedListMachineTypesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @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) { + AggregatedListMachineTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -22311,17 +22311,17 @@ }; /** - * Creates an AggregatedListNetworkAttachmentsRequest 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.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest */ - AggregatedListNetworkAttachmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest) + AggregatedListMachineTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListMachineTypesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListMachineTypesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -22349,15 +22349,15 @@ }; /** - * Creates a plain object from an AggregatedListNetworkAttachmentsRequest 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.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest} message AggregatedListNetworkAttachmentsRequest + * @param {google.cloud.compute.v1.AggregatedListMachineTypesRequest} message AggregatedListMachineTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNetworkAttachmentsRequest.toObject = function toObject(message, options) { + AggregatedListMachineTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -22407,59 +22407,59 @@ }; /** - * Converts this AggregatedListNetworkAttachmentsRequest to JSON. + * Converts this AggregatedListMachineTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNetworkAttachmentsRequest.prototype.toJSON = function toJSON() { + AggregatedListMachineTypesRequest.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 AggregatedListMachineTypesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListMachineTypesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNetworkAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListMachineTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListMachineTypesRequest"; }; - return AggregatedListNetworkAttachmentsRequest; + return AggregatedListMachineTypesRequest; })(); - v1.AggregatedListNetworkEdgeSecurityServicesRequest = (function() { + v1.AggregatedListNetworkAttachmentsRequest = (function() { /** - * Properties of an AggregatedListNetworkEdgeSecurityServicesRequest. + * Properties of an AggregatedListNetworkAttachmentsRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListNetworkEdgeSecurityServicesRequest. + * Constructs a new AggregatedListNetworkAttachmentsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListNetworkEdgeSecurityServicesRequest. - * @implements IAggregatedListNetworkEdgeSecurityServicesRequest + * @classdesc Represents an AggregatedListNetworkAttachmentsRequest. + * @implements IAggregatedListNetworkAttachmentsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListNetworkEdgeSecurityServicesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListNetworkAttachmentsRequest=} [properties] Properties to set */ - function AggregatedListNetworkEdgeSecurityServicesRequest(properties) { + function AggregatedListNetworkAttachmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22467,136 +22467,136 @@ } /** - * AggregatedListNetworkEdgeSecurityServicesRequest filter. + * AggregatedListNetworkAttachmentsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.filter = null; + AggregatedListNetworkAttachmentsRequest.prototype.filter = null; /** - * AggregatedListNetworkEdgeSecurityServicesRequest includeAllScopes. + * AggregatedListNetworkAttachmentsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.includeAllScopes = null; + AggregatedListNetworkAttachmentsRequest.prototype.includeAllScopes = null; /** - * AggregatedListNetworkEdgeSecurityServicesRequest maxResults. + * AggregatedListNetworkAttachmentsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.maxResults = null; + AggregatedListNetworkAttachmentsRequest.prototype.maxResults = null; /** - * AggregatedListNetworkEdgeSecurityServicesRequest orderBy. + * AggregatedListNetworkAttachmentsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.orderBy = null; + AggregatedListNetworkAttachmentsRequest.prototype.orderBy = null; /** - * AggregatedListNetworkEdgeSecurityServicesRequest pageToken. + * AggregatedListNetworkAttachmentsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.pageToken = null; + AggregatedListNetworkAttachmentsRequest.prototype.pageToken = null; /** - * AggregatedListNetworkEdgeSecurityServicesRequest project. + * AggregatedListNetworkAttachmentsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.project = ""; + AggregatedListNetworkAttachmentsRequest.prototype.project = ""; /** - * AggregatedListNetworkEdgeSecurityServicesRequest returnPartialSuccess. + * AggregatedListNetworkAttachmentsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.returnPartialSuccess = null; + AggregatedListNetworkAttachmentsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListNetworkEdgeSecurityServicesRequest serviceProjectNumber. + * AggregatedListNetworkAttachmentsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.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(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNetworkEdgeSecurityServicesRequest instance using the specified properties. + * Creates a new AggregatedListNetworkAttachmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNetworkEdgeSecurityServicesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListNetworkAttachmentsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.create = function create(properties) { - return new AggregatedListNetworkEdgeSecurityServicesRequest(properties); + AggregatedListNetworkAttachmentsRequest.create = function create(properties) { + return new AggregatedListNetworkAttachmentsRequest(properties); }; /** - * Encodes the specified AggregatedListNetworkEdgeSecurityServicesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNetworkEdgeSecurityServicesRequest} message AggregatedListNetworkEdgeSecurityServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNetworkAttachmentsRequest} message AggregatedListNetworkAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkEdgeSecurityServicesRequest.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")) @@ -22619,33 +22619,33 @@ }; /** - * Encodes the specified AggregatedListNetworkEdgeSecurityServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNetworkEdgeSecurityServicesRequest} message AggregatedListNetworkEdgeSecurityServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNetworkAttachmentsRequest} message AggregatedListNetworkAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkEdgeSecurityServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNetworkAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNetworkEdgeSecurityServicesRequest message from the specified reader or buffer. + * Decodes an AggregatedListNetworkAttachmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest + * @returns {google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest * @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) { + 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.v1.AggregatedListNetworkEdgeSecurityServicesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -22692,30 +22692,30 @@ }; /** - * Decodes an AggregatedListNetworkEdgeSecurityServicesRequest 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.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest + * @returns {google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest * @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) { + AggregatedListNetworkAttachmentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNetworkEdgeSecurityServicesRequest message. + * Verifies an AggregatedListNetworkAttachmentsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @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) { + AggregatedListNetworkAttachmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -22761,17 +22761,17 @@ }; /** - * Creates an AggregatedListNetworkEdgeSecurityServicesRequest 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.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest + * @returns {google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest */ - AggregatedListNetworkEdgeSecurityServicesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest) + AggregatedListNetworkAttachmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -22799,15 +22799,15 @@ }; /** - * Creates a plain object from an AggregatedListNetworkEdgeSecurityServicesRequest 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.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest} message AggregatedListNetworkEdgeSecurityServicesRequest + * @param {google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest} message AggregatedListNetworkAttachmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNetworkEdgeSecurityServicesRequest.toObject = function toObject(message, options) { + AggregatedListNetworkAttachmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -22857,59 +22857,59 @@ }; /** - * Converts this AggregatedListNetworkEdgeSecurityServicesRequest to JSON. + * Converts this AggregatedListNetworkAttachmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.toJSON = function toJSON() { + AggregatedListNetworkAttachmentsRequest.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 AggregatedListNetworkAttachmentsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNetworkEdgeSecurityServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNetworkAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest"; }; - return AggregatedListNetworkEdgeSecurityServicesRequest; + return AggregatedListNetworkAttachmentsRequest; })(); - v1.AggregatedListNetworkEndpointGroupsRequest = (function() { + v1.AggregatedListNetworkEdgeSecurityServicesRequest = (function() { /** - * Properties of an AggregatedListNetworkEndpointGroupsRequest. + * Properties of an AggregatedListNetworkEdgeSecurityServicesRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListNetworkEndpointGroupsRequest. + * Constructs a new AggregatedListNetworkEdgeSecurityServicesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListNetworkEndpointGroupsRequest. - * @implements IAggregatedListNetworkEndpointGroupsRequest + * @classdesc Represents an AggregatedListNetworkEdgeSecurityServicesRequest. + * @implements IAggregatedListNetworkEdgeSecurityServicesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListNetworkEndpointGroupsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListNetworkEdgeSecurityServicesRequest=} [properties] Properties to set */ - function AggregatedListNetworkEndpointGroupsRequest(properties) { + function AggregatedListNetworkEdgeSecurityServicesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22917,136 +22917,136 @@ } /** - * AggregatedListNetworkEndpointGroupsRequest filter. + * AggregatedListNetworkEdgeSecurityServicesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.filter = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.filter = null; /** - * AggregatedListNetworkEndpointGroupsRequest includeAllScopes. + * AggregatedListNetworkEdgeSecurityServicesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.includeAllScopes = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.includeAllScopes = null; /** - * AggregatedListNetworkEndpointGroupsRequest maxResults. + * AggregatedListNetworkEdgeSecurityServicesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.maxResults = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.maxResults = null; /** - * AggregatedListNetworkEndpointGroupsRequest orderBy. + * AggregatedListNetworkEdgeSecurityServicesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.orderBy = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.orderBy = null; /** - * AggregatedListNetworkEndpointGroupsRequest pageToken. + * AggregatedListNetworkEdgeSecurityServicesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.pageToken = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.pageToken = null; /** - * AggregatedListNetworkEndpointGroupsRequest project. + * AggregatedListNetworkEdgeSecurityServicesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.project = ""; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.project = ""; /** - * AggregatedListNetworkEndpointGroupsRequest returnPartialSuccess. + * AggregatedListNetworkEdgeSecurityServicesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.returnPartialSuccess = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListNetworkEndpointGroupsRequest serviceProjectNumber. + * AggregatedListNetworkEdgeSecurityServicesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.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(AggregatedListNetworkEndpointGroupsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNetworkEndpointGroupsRequest instance using the specified properties. + * Creates a new AggregatedListNetworkEdgeSecurityServicesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNetworkEndpointGroupsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListNetworkEdgeSecurityServicesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest instance */ - AggregatedListNetworkEndpointGroupsRequest.create = function create(properties) { - return new AggregatedListNetworkEndpointGroupsRequest(properties); + AggregatedListNetworkEdgeSecurityServicesRequest.create = function create(properties) { + return new AggregatedListNetworkEdgeSecurityServicesRequest(properties); }; /** - * Encodes the specified AggregatedListNetworkEndpointGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkEdgeSecurityServicesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNetworkEndpointGroupsRequest} message AggregatedListNetworkEndpointGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNetworkEdgeSecurityServicesRequest} message AggregatedListNetworkEdgeSecurityServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkEndpointGroupsRequest.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")) @@ -23069,33 +23069,33 @@ }; /** - * Encodes the specified AggregatedListNetworkEndpointGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkEdgeSecurityServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNetworkEndpointGroupsRequest} message AggregatedListNetworkEndpointGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNetworkEdgeSecurityServicesRequest} message AggregatedListNetworkEdgeSecurityServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkEndpointGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNetworkEdgeSecurityServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNetworkEndpointGroupsRequest message from the specified reader or buffer. + * Decodes an AggregatedListNetworkEdgeSecurityServicesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest * @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) { + 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.v1.AggregatedListNetworkEndpointGroupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -23142,30 +23142,30 @@ }; /** - * Decodes an AggregatedListNetworkEndpointGroupsRequest 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.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest * @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) { + AggregatedListNetworkEdgeSecurityServicesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNetworkEndpointGroupsRequest message. + * Verifies an AggregatedListNetworkEdgeSecurityServicesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @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) { + AggregatedListNetworkEdgeSecurityServicesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -23211,17 +23211,17 @@ }; /** - * Creates an AggregatedListNetworkEndpointGroupsRequest 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.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest */ - AggregatedListNetworkEndpointGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest) + AggregatedListNetworkEdgeSecurityServicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -23249,15 +23249,15 @@ }; /** - * Creates a plain object from an AggregatedListNetworkEndpointGroupsRequest 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.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest} message AggregatedListNetworkEndpointGroupsRequest + * @param {google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest} message AggregatedListNetworkEdgeSecurityServicesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNetworkEndpointGroupsRequest.toObject = function toObject(message, options) { + AggregatedListNetworkEdgeSecurityServicesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -23307,59 +23307,59 @@ }; /** - * Converts this AggregatedListNetworkEndpointGroupsRequest to JSON. + * Converts this AggregatedListNetworkEdgeSecurityServicesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNetworkEndpointGroupsRequest.prototype.toJSON = function toJSON() { + AggregatedListNetworkEdgeSecurityServicesRequest.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 AggregatedListNetworkEdgeSecurityServicesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNetworkEndpointGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNetworkEdgeSecurityServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest"; }; - return AggregatedListNetworkEndpointGroupsRequest; + return AggregatedListNetworkEdgeSecurityServicesRequest; })(); - v1.AggregatedListNetworkFirewallPoliciesRequest = (function() { + v1.AggregatedListNetworkEndpointGroupsRequest = (function() { /** - * Properties of an AggregatedListNetworkFirewallPoliciesRequest. + * Properties of an AggregatedListNetworkEndpointGroupsRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListNetworkFirewallPoliciesRequest. + * Constructs a new AggregatedListNetworkEndpointGroupsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListNetworkFirewallPoliciesRequest. - * @implements IAggregatedListNetworkFirewallPoliciesRequest + * @classdesc Represents an AggregatedListNetworkEndpointGroupsRequest. + * @implements IAggregatedListNetworkEndpointGroupsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListNetworkFirewallPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListNetworkEndpointGroupsRequest=} [properties] Properties to set */ - function AggregatedListNetworkFirewallPoliciesRequest(properties) { + function AggregatedListNetworkEndpointGroupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23367,136 +23367,136 @@ } /** - * AggregatedListNetworkFirewallPoliciesRequest filter. + * AggregatedListNetworkEndpointGroupsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNetworkFirewallPoliciesRequest.prototype.filter = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.filter = null; /** - * AggregatedListNetworkFirewallPoliciesRequest includeAllScopes. + * AggregatedListNetworkEndpointGroupsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNetworkFirewallPoliciesRequest.prototype.includeAllScopes = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.includeAllScopes = null; /** - * AggregatedListNetworkFirewallPoliciesRequest maxResults. + * AggregatedListNetworkEndpointGroupsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNetworkFirewallPoliciesRequest.prototype.maxResults = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.maxResults = null; /** - * AggregatedListNetworkFirewallPoliciesRequest orderBy. + * AggregatedListNetworkEndpointGroupsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNetworkFirewallPoliciesRequest.prototype.orderBy = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.orderBy = null; /** - * AggregatedListNetworkFirewallPoliciesRequest pageToken. + * AggregatedListNetworkEndpointGroupsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNetworkFirewallPoliciesRequest.prototype.pageToken = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.pageToken = null; /** - * AggregatedListNetworkFirewallPoliciesRequest project. + * AggregatedListNetworkEndpointGroupsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNetworkFirewallPoliciesRequest.prototype.project = ""; + AggregatedListNetworkEndpointGroupsRequest.prototype.project = ""; /** - * AggregatedListNetworkFirewallPoliciesRequest returnPartialSuccess. + * AggregatedListNetworkEndpointGroupsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNetworkFirewallPoliciesRequest.prototype.returnPartialSuccess = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListNetworkFirewallPoliciesRequest serviceProjectNumber. + * AggregatedListNetworkEndpointGroupsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNetworkFirewallPoliciesRequest.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(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNetworkFirewallPoliciesRequest instance using the specified properties. + * Creates a new AggregatedListNetworkEndpointGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNetworkFirewallPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest} AggregatedListNetworkFirewallPoliciesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListNetworkEndpointGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest instance */ - AggregatedListNetworkFirewallPoliciesRequest.create = function create(properties) { - return new AggregatedListNetworkFirewallPoliciesRequest(properties); + AggregatedListNetworkEndpointGroupsRequest.create = function create(properties) { + return new AggregatedListNetworkEndpointGroupsRequest(properties); }; /** - * Encodes the specified AggregatedListNetworkFirewallPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkEndpointGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNetworkFirewallPoliciesRequest} message AggregatedListNetworkFirewallPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNetworkEndpointGroupsRequest} message AggregatedListNetworkEndpointGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkFirewallPoliciesRequest.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")) @@ -23519,33 +23519,33 @@ }; /** - * Encodes the specified AggregatedListNetworkFirewallPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkEndpointGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNetworkFirewallPoliciesRequest} message AggregatedListNetworkFirewallPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNetworkEndpointGroupsRequest} message AggregatedListNetworkEndpointGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkFirewallPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNetworkEndpointGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNetworkFirewallPoliciesRequest message from the specified reader or buffer. + * Decodes an AggregatedListNetworkEndpointGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListNetworkFirewallPoliciesRequest} AggregatedListNetworkFirewallPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest * @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) { + 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.v1.AggregatedListNetworkFirewallPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -23592,30 +23592,30 @@ }; /** - * Decodes an AggregatedListNetworkFirewallPoliciesRequest 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.v1.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest} AggregatedListNetworkFirewallPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest * @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) { + AggregatedListNetworkEndpointGroupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNetworkFirewallPoliciesRequest message. + * Verifies an AggregatedListNetworkEndpointGroupsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @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) { + AggregatedListNetworkEndpointGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -23661,17 +23661,17 @@ }; /** - * Creates an AggregatedListNetworkFirewallPoliciesRequest 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.v1.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest} AggregatedListNetworkFirewallPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest */ - AggregatedListNetworkFirewallPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest) + AggregatedListNetworkEndpointGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -23699,15 +23699,15 @@ }; /** - * Creates a plain object from an AggregatedListNetworkFirewallPoliciesRequest 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.v1.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest} message AggregatedListNetworkFirewallPoliciesRequest + * @param {google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest} message AggregatedListNetworkEndpointGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNetworkFirewallPoliciesRequest.toObject = function toObject(message, options) { + AggregatedListNetworkEndpointGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -23757,59 +23757,59 @@ }; /** - * Converts this AggregatedListNetworkFirewallPoliciesRequest to JSON. + * Converts this AggregatedListNetworkEndpointGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNetworkFirewallPoliciesRequest.prototype.toJSON = function toJSON() { + AggregatedListNetworkEndpointGroupsRequest.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 AggregatedListNetworkEndpointGroupsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNetworkFirewallPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNetworkEndpointGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest"; }; - return AggregatedListNetworkFirewallPoliciesRequest; + return AggregatedListNetworkEndpointGroupsRequest; })(); - v1.AggregatedListNodeGroupsRequest = (function() { + v1.AggregatedListNetworkFirewallPoliciesRequest = (function() { /** - * Properties of an AggregatedListNodeGroupsRequest. + * Properties of an AggregatedListNetworkFirewallPoliciesRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListNodeGroupsRequest. + * Constructs a new AggregatedListNetworkFirewallPoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListNodeGroupsRequest. - * @implements IAggregatedListNodeGroupsRequest + * @classdesc Represents an AggregatedListNetworkFirewallPoliciesRequest. + * @implements IAggregatedListNetworkFirewallPoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListNodeGroupsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListNetworkFirewallPoliciesRequest=} [properties] Properties to set */ - function AggregatedListNodeGroupsRequest(properties) { + function AggregatedListNetworkFirewallPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23817,136 +23817,136 @@ } /** - * AggregatedListNodeGroupsRequest filter. + * AggregatedListNetworkFirewallPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.filter = null; + AggregatedListNetworkFirewallPoliciesRequest.prototype.filter = null; /** - * AggregatedListNodeGroupsRequest includeAllScopes. + * AggregatedListNetworkFirewallPoliciesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.includeAllScopes = null; + AggregatedListNetworkFirewallPoliciesRequest.prototype.includeAllScopes = null; /** - * AggregatedListNodeGroupsRequest maxResults. + * AggregatedListNetworkFirewallPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.maxResults = null; + AggregatedListNetworkFirewallPoliciesRequest.prototype.maxResults = null; /** - * AggregatedListNodeGroupsRequest orderBy. + * AggregatedListNetworkFirewallPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.orderBy = null; + AggregatedListNetworkFirewallPoliciesRequest.prototype.orderBy = null; /** - * AggregatedListNodeGroupsRequest pageToken. + * AggregatedListNetworkFirewallPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.pageToken = null; + AggregatedListNetworkFirewallPoliciesRequest.prototype.pageToken = null; /** - * AggregatedListNodeGroupsRequest project. + * AggregatedListNetworkFirewallPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.project = ""; + AggregatedListNetworkFirewallPoliciesRequest.prototype.project = ""; /** - * AggregatedListNodeGroupsRequest returnPartialSuccess. + * AggregatedListNetworkFirewallPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.returnPartialSuccess = null; + AggregatedListNetworkFirewallPoliciesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListNodeGroupsRequest serviceProjectNumber. + * AggregatedListNetworkFirewallPoliciesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest * @instance */ - AggregatedListNodeGroupsRequest.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(AggregatedListNodeGroupsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNodeGroupsRequest instance using the specified properties. + * Creates a new AggregatedListNetworkFirewallPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNodeGroupsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListNetworkFirewallPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest} AggregatedListNetworkFirewallPoliciesRequest instance */ - AggregatedListNodeGroupsRequest.create = function create(properties) { - return new AggregatedListNodeGroupsRequest(properties); + AggregatedListNetworkFirewallPoliciesRequest.create = function create(properties) { + return new AggregatedListNetworkFirewallPoliciesRequest(properties); }; /** - * Encodes the specified AggregatedListNodeGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeGroupsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkFirewallPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNetworkFirewallPoliciesRequest} message AggregatedListNetworkFirewallPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNodeGroupsRequest.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")) @@ -23969,33 +23969,33 @@ }; /** - * Encodes the specified AggregatedListNodeGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeGroupsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkFirewallPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNetworkFirewallPoliciesRequest} message AggregatedListNetworkFirewallPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNodeGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNetworkFirewallPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNodeGroupsRequest message from the specified reader or buffer. + * Decodes an AggregatedListNetworkFirewallPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest + * @returns {google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest} AggregatedListNetworkFirewallPoliciesRequest * @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) { + 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.v1.AggregatedListNodeGroupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -24042,30 +24042,30 @@ }; /** - * Decodes an AggregatedListNodeGroupsRequest 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.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest + * @returns {google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest} AggregatedListNetworkFirewallPoliciesRequest * @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) { + AggregatedListNetworkFirewallPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNodeGroupsRequest message. + * Verifies an AggregatedListNetworkFirewallPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest * @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) { + AggregatedListNetworkFirewallPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -24111,17 +24111,17 @@ }; /** - * Creates an AggregatedListNodeGroupsRequest 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.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest + * @returns {google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest} AggregatedListNetworkFirewallPoliciesRequest */ - AggregatedListNodeGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListNodeGroupsRequest) + AggregatedListNetworkFirewallPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListNodeGroupsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -24149,15 +24149,15 @@ }; /** - * Creates a plain object from an AggregatedListNodeGroupsRequest 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.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest + * @param {google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest} message AggregatedListNetworkFirewallPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNodeGroupsRequest.toObject = function toObject(message, options) { + AggregatedListNetworkFirewallPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -24207,59 +24207,59 @@ }; /** - * Converts this AggregatedListNodeGroupsRequest to JSON. + * Converts this AggregatedListNetworkFirewallPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNodeGroupsRequest.prototype.toJSON = function toJSON() { + AggregatedListNetworkFirewallPoliciesRequest.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 AggregatedListNetworkFirewallPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNodeGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNetworkFirewallPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNodeGroupsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest"; }; - return AggregatedListNodeGroupsRequest; + return AggregatedListNetworkFirewallPoliciesRequest; })(); - v1.AggregatedListNodeTemplatesRequest = (function() { + v1.AggregatedListNodeGroupsRequest = (function() { /** - * Properties of an AggregatedListNodeTemplatesRequest. + * Properties of an AggregatedListNodeGroupsRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListNodeTemplatesRequest. + * Constructs a new AggregatedListNodeGroupsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListNodeTemplatesRequest. - * @implements IAggregatedListNodeTemplatesRequest + * @classdesc Represents an AggregatedListNodeGroupsRequest. + * @implements IAggregatedListNodeGroupsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListNodeTemplatesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListNodeGroupsRequest=} [properties] Properties to set */ - function AggregatedListNodeTemplatesRequest(properties) { + function AggregatedListNodeGroupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24267,136 +24267,136 @@ } /** - * AggregatedListNodeTemplatesRequest filter. + * AggregatedListNodeGroupsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.filter = null; + AggregatedListNodeGroupsRequest.prototype.filter = null; /** - * AggregatedListNodeTemplatesRequest includeAllScopes. + * AggregatedListNodeGroupsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.includeAllScopes = null; + AggregatedListNodeGroupsRequest.prototype.includeAllScopes = null; /** - * AggregatedListNodeTemplatesRequest maxResults. + * AggregatedListNodeGroupsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.maxResults = null; + AggregatedListNodeGroupsRequest.prototype.maxResults = null; /** - * AggregatedListNodeTemplatesRequest orderBy. + * AggregatedListNodeGroupsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.orderBy = null; + AggregatedListNodeGroupsRequest.prototype.orderBy = null; /** - * AggregatedListNodeTemplatesRequest pageToken. + * AggregatedListNodeGroupsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.pageToken = null; + AggregatedListNodeGroupsRequest.prototype.pageToken = null; /** - * AggregatedListNodeTemplatesRequest project. + * AggregatedListNodeGroupsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.project = ""; + AggregatedListNodeGroupsRequest.prototype.project = ""; /** - * AggregatedListNodeTemplatesRequest returnPartialSuccess. + * AggregatedListNodeGroupsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.returnPartialSuccess = null; + AggregatedListNodeGroupsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListNodeTemplatesRequest serviceProjectNumber. + * AggregatedListNodeGroupsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNodeTemplatesRequest.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(AggregatedListNodeTemplatesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNodeTemplatesRequest instance using the specified properties. + * Creates a new AggregatedListNodeGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNodeTemplatesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListNodeGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest instance */ - AggregatedListNodeTemplatesRequest.create = function create(properties) { - return new AggregatedListNodeTemplatesRequest(properties); + AggregatedListNodeGroupsRequest.create = function create(properties) { + return new AggregatedListNodeGroupsRequest(properties); }; /** - * Encodes the specified AggregatedListNodeTemplatesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeTemplatesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNodeGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeGroupsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNodeTemplatesRequest} message AggregatedListNodeTemplatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNodeTemplatesRequest.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")) @@ -24419,33 +24419,33 @@ }; /** - * Encodes the specified AggregatedListNodeTemplatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeTemplatesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNodeGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeGroupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNodeTemplatesRequest} message AggregatedListNodeTemplatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNodeTemplatesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNodeGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNodeTemplatesRequest message from the specified reader or buffer. + * Decodes an AggregatedListNodeGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest + * @returns {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest * @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) { + 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.v1.AggregatedListNodeTemplatesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListNodeGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -24492,30 +24492,30 @@ }; /** - * Decodes an AggregatedListNodeTemplatesRequest 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.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest + * @returns {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest * @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) { + AggregatedListNodeGroupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNodeTemplatesRequest message. + * Verifies an AggregatedListNodeGroupsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @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) { + AggregatedListNodeGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -24561,17 +24561,17 @@ }; /** - * Creates an AggregatedListNodeTemplatesRequest 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.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest + * @returns {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest */ - AggregatedListNodeTemplatesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListNodeTemplatesRequest) + AggregatedListNodeGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListNodeGroupsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListNodeTemplatesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListNodeGroupsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -24599,15 +24599,15 @@ }; /** - * Creates a plain object from an AggregatedListNodeTemplatesRequest 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.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListNodeTemplatesRequest} message AggregatedListNodeTemplatesRequest + * @param {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNodeTemplatesRequest.toObject = function toObject(message, options) { + AggregatedListNodeGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -24657,59 +24657,59 @@ }; /** - * Converts this AggregatedListNodeTemplatesRequest to JSON. + * Converts this AggregatedListNodeGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNodeTemplatesRequest.prototype.toJSON = function toJSON() { + AggregatedListNodeGroupsRequest.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 AggregatedListNodeGroupsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNodeTemplatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNodeGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNodeTemplatesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNodeGroupsRequest"; }; - return AggregatedListNodeTemplatesRequest; + return AggregatedListNodeGroupsRequest; })(); - v1.AggregatedListNodeTypesRequest = (function() { + v1.AggregatedListNodeTemplatesRequest = (function() { /** - * Properties of an AggregatedListNodeTypesRequest. + * Properties of an AggregatedListNodeTemplatesRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListNodeTypesRequest. + * Constructs a new AggregatedListNodeTemplatesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListNodeTypesRequest. - * @implements IAggregatedListNodeTypesRequest + * @classdesc Represents an AggregatedListNodeTemplatesRequest. + * @implements IAggregatedListNodeTemplatesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListNodeTypesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListNodeTemplatesRequest=} [properties] Properties to set */ - function AggregatedListNodeTypesRequest(properties) { + function AggregatedListNodeTemplatesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24717,136 +24717,136 @@ } /** - * AggregatedListNodeTypesRequest filter. + * AggregatedListNodeTemplatesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.filter = null; + AggregatedListNodeTemplatesRequest.prototype.filter = null; /** - * AggregatedListNodeTypesRequest includeAllScopes. + * AggregatedListNodeTemplatesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.includeAllScopes = null; + AggregatedListNodeTemplatesRequest.prototype.includeAllScopes = null; /** - * AggregatedListNodeTypesRequest maxResults. + * AggregatedListNodeTemplatesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.maxResults = null; + AggregatedListNodeTemplatesRequest.prototype.maxResults = null; /** - * AggregatedListNodeTypesRequest orderBy. + * AggregatedListNodeTemplatesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.orderBy = null; + AggregatedListNodeTemplatesRequest.prototype.orderBy = null; /** - * AggregatedListNodeTypesRequest pageToken. + * AggregatedListNodeTemplatesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.pageToken = null; + AggregatedListNodeTemplatesRequest.prototype.pageToken = null; /** - * AggregatedListNodeTypesRequest project. + * AggregatedListNodeTemplatesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.project = ""; + AggregatedListNodeTemplatesRequest.prototype.project = ""; /** - * AggregatedListNodeTypesRequest returnPartialSuccess. + * AggregatedListNodeTemplatesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.returnPartialSuccess = null; + AggregatedListNodeTemplatesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListNodeTypesRequest serviceProjectNumber. + * AggregatedListNodeTemplatesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListNodeTypesRequest.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(AggregatedListNodeTypesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNodeTypesRequest instance using the specified properties. + * Creates a new AggregatedListNodeTemplatesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNodeTypesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListNodeTemplatesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest instance */ - AggregatedListNodeTypesRequest.create = function create(properties) { - return new AggregatedListNodeTypesRequest(properties); + AggregatedListNodeTemplatesRequest.create = function create(properties) { + return new AggregatedListNodeTemplatesRequest(properties); }; /** - * Encodes the specified AggregatedListNodeTypesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeTypesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNodeTemplatesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeTemplatesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNodeTypesRequest} message AggregatedListNodeTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNodeTemplatesRequest} message AggregatedListNodeTemplatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNodeTypesRequest.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")) @@ -24869,33 +24869,33 @@ }; /** - * Encodes the specified AggregatedListNodeTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeTypesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNodeTemplatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeTemplatesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNodeTypesRequest} message AggregatedListNodeTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNodeTemplatesRequest} message AggregatedListNodeTemplatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNodeTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNodeTemplatesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNodeTypesRequest message from the specified reader or buffer. + * Decodes an AggregatedListNodeTemplatesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest + * @returns {google.cloud.compute.v1.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest * @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) { + 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.v1.AggregatedListNodeTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListNodeTemplatesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -24942,30 +24942,30 @@ }; /** - * Decodes an AggregatedListNodeTypesRequest 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.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest + * @returns {google.cloud.compute.v1.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest * @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) { + AggregatedListNodeTemplatesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNodeTypesRequest message. + * Verifies an AggregatedListNodeTemplatesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @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) { + AggregatedListNodeTemplatesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -25011,17 +25011,17 @@ }; /** - * Creates an AggregatedListNodeTypesRequest 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.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest + * @returns {google.cloud.compute.v1.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest */ - AggregatedListNodeTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListNodeTypesRequest) + AggregatedListNodeTemplatesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListNodeTemplatesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListNodeTypesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListNodeTemplatesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -25049,15 +25049,15 @@ }; /** - * Creates a plain object from an AggregatedListNodeTypesRequest 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.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListNodeTypesRequest} message AggregatedListNodeTypesRequest + * @param {google.cloud.compute.v1.AggregatedListNodeTemplatesRequest} message AggregatedListNodeTemplatesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNodeTypesRequest.toObject = function toObject(message, options) { + AggregatedListNodeTemplatesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -25107,59 +25107,59 @@ }; /** - * Converts this AggregatedListNodeTypesRequest to JSON. + * Converts this AggregatedListNodeTemplatesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNodeTypesRequest.prototype.toJSON = function toJSON() { + AggregatedListNodeTemplatesRequest.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 AggregatedListNodeTemplatesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNodeTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNodeTemplatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNodeTypesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNodeTemplatesRequest"; }; - return AggregatedListNodeTypesRequest; + return AggregatedListNodeTemplatesRequest; })(); - v1.AggregatedListPacketMirroringsRequest = (function() { + v1.AggregatedListNodeTypesRequest = (function() { /** - * Properties of an AggregatedListPacketMirroringsRequest. + * Properties of an AggregatedListNodeTypesRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListPacketMirroringsRequest. + * Constructs a new AggregatedListNodeTypesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListPacketMirroringsRequest. - * @implements IAggregatedListPacketMirroringsRequest + * @classdesc Represents an AggregatedListNodeTypesRequest. + * @implements IAggregatedListNodeTypesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListPacketMirroringsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListNodeTypesRequest=} [properties] Properties to set */ - function AggregatedListPacketMirroringsRequest(properties) { + function AggregatedListNodeTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25167,136 +25167,136 @@ } /** - * AggregatedListPacketMirroringsRequest filter. + * AggregatedListNodeTypesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.filter = null; + AggregatedListNodeTypesRequest.prototype.filter = null; /** - * AggregatedListPacketMirroringsRequest includeAllScopes. + * AggregatedListNodeTypesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.includeAllScopes = null; + AggregatedListNodeTypesRequest.prototype.includeAllScopes = null; /** - * AggregatedListPacketMirroringsRequest maxResults. + * AggregatedListNodeTypesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.maxResults = null; + AggregatedListNodeTypesRequest.prototype.maxResults = null; /** - * AggregatedListPacketMirroringsRequest orderBy. + * AggregatedListNodeTypesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.orderBy = null; + AggregatedListNodeTypesRequest.prototype.orderBy = null; /** - * AggregatedListPacketMirroringsRequest pageToken. + * AggregatedListNodeTypesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.pageToken = null; + AggregatedListNodeTypesRequest.prototype.pageToken = null; /** - * AggregatedListPacketMirroringsRequest project. + * AggregatedListNodeTypesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.project = ""; + AggregatedListNodeTypesRequest.prototype.project = ""; /** - * AggregatedListPacketMirroringsRequest returnPartialSuccess. + * AggregatedListNodeTypesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.returnPartialSuccess = null; + AggregatedListNodeTypesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListPacketMirroringsRequest serviceProjectNumber. + * AggregatedListNodeTypesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - AggregatedListPacketMirroringsRequest.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(AggregatedListPacketMirroringsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListPacketMirroringsRequest instance using the specified properties. + * Creates a new AggregatedListNodeTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListPacketMirroringsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListNodeTypesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest instance */ - AggregatedListPacketMirroringsRequest.create = function create(properties) { - return new AggregatedListPacketMirroringsRequest(properties); + AggregatedListNodeTypesRequest.create = function create(properties) { + return new AggregatedListNodeTypesRequest(properties); }; /** - * Encodes the specified AggregatedListPacketMirroringsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListPacketMirroringsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNodeTypesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeTypesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListPacketMirroringsRequest} message AggregatedListPacketMirroringsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNodeTypesRequest} message AggregatedListNodeTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListPacketMirroringsRequest.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")) @@ -25319,33 +25319,33 @@ }; /** - * Encodes the specified AggregatedListPacketMirroringsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListPacketMirroringsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNodeTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeTypesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListPacketMirroringsRequest} message AggregatedListPacketMirroringsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNodeTypesRequest} message AggregatedListNodeTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListPacketMirroringsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNodeTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListPacketMirroringsRequest message from the specified reader or buffer. + * Decodes an AggregatedListNodeTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest + * @returns {google.cloud.compute.v1.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest * @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) { + 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.v1.AggregatedListPacketMirroringsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListNodeTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -25392,30 +25392,30 @@ }; /** - * Decodes an AggregatedListPacketMirroringsRequest 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.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest + * @returns {google.cloud.compute.v1.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest * @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) { + AggregatedListNodeTypesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListPacketMirroringsRequest message. + * Verifies an AggregatedListNodeTypesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @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) { + AggregatedListNodeTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -25461,17 +25461,17 @@ }; /** - * Creates an AggregatedListPacketMirroringsRequest 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.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest + * @returns {google.cloud.compute.v1.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest */ - AggregatedListPacketMirroringsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListPacketMirroringsRequest) + AggregatedListNodeTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListNodeTypesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListPacketMirroringsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListNodeTypesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -25499,15 +25499,15 @@ }; /** - * Creates a plain object from an AggregatedListPacketMirroringsRequest 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.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListPacketMirroringsRequest} message AggregatedListPacketMirroringsRequest + * @param {google.cloud.compute.v1.AggregatedListNodeTypesRequest} message AggregatedListNodeTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListPacketMirroringsRequest.toObject = function toObject(message, options) { + AggregatedListNodeTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -25557,59 +25557,59 @@ }; /** - * Converts this AggregatedListPacketMirroringsRequest to JSON. + * Converts this AggregatedListNodeTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListPacketMirroringsRequest.prototype.toJSON = function toJSON() { + AggregatedListNodeTypesRequest.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 AggregatedListNodeTypesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListPacketMirroringsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNodeTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListPacketMirroringsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNodeTypesRequest"; }; - return AggregatedListPacketMirroringsRequest; + return AggregatedListNodeTypesRequest; })(); - v1.AggregatedListPublicDelegatedPrefixesRequest = (function() { + v1.AggregatedListPacketMirroringsRequest = (function() { /** - * Properties of an AggregatedListPublicDelegatedPrefixesRequest. + * Properties of an AggregatedListPacketMirroringsRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListPublicDelegatedPrefixesRequest. + * Constructs a new AggregatedListPacketMirroringsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListPublicDelegatedPrefixesRequest. - * @implements IAggregatedListPublicDelegatedPrefixesRequest + * @classdesc Represents an AggregatedListPacketMirroringsRequest. + * @implements IAggregatedListPacketMirroringsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListPublicDelegatedPrefixesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListPacketMirroringsRequest=} [properties] Properties to set */ - function AggregatedListPublicDelegatedPrefixesRequest(properties) { + function AggregatedListPacketMirroringsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25617,136 +25617,136 @@ } /** - * AggregatedListPublicDelegatedPrefixesRequest filter. + * AggregatedListPacketMirroringsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.filter = null; + AggregatedListPacketMirroringsRequest.prototype.filter = null; /** - * AggregatedListPublicDelegatedPrefixesRequest includeAllScopes. + * AggregatedListPacketMirroringsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.includeAllScopes = null; + AggregatedListPacketMirroringsRequest.prototype.includeAllScopes = null; /** - * AggregatedListPublicDelegatedPrefixesRequest maxResults. + * AggregatedListPacketMirroringsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.maxResults = null; + AggregatedListPacketMirroringsRequest.prototype.maxResults = null; /** - * AggregatedListPublicDelegatedPrefixesRequest orderBy. + * AggregatedListPacketMirroringsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.orderBy = null; + AggregatedListPacketMirroringsRequest.prototype.orderBy = null; /** - * AggregatedListPublicDelegatedPrefixesRequest pageToken. + * AggregatedListPacketMirroringsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.pageToken = null; + AggregatedListPacketMirroringsRequest.prototype.pageToken = null; /** - * AggregatedListPublicDelegatedPrefixesRequest project. + * AggregatedListPacketMirroringsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.project = ""; + AggregatedListPacketMirroringsRequest.prototype.project = ""; /** - * AggregatedListPublicDelegatedPrefixesRequest returnPartialSuccess. + * AggregatedListPacketMirroringsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.returnPartialSuccess = null; + AggregatedListPacketMirroringsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListPublicDelegatedPrefixesRequest serviceProjectNumber. + * AggregatedListPacketMirroringsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.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(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListPublicDelegatedPrefixesRequest instance using the specified properties. + * Creates a new AggregatedListPacketMirroringsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListPublicDelegatedPrefixesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListPacketMirroringsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest instance */ - AggregatedListPublicDelegatedPrefixesRequest.create = function create(properties) { - return new AggregatedListPublicDelegatedPrefixesRequest(properties); + AggregatedListPacketMirroringsRequest.create = function create(properties) { + return new AggregatedListPacketMirroringsRequest(properties); }; /** - * Encodes the specified AggregatedListPublicDelegatedPrefixesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest.verify|verify} messages. + * Encodes the specified AggregatedListPacketMirroringsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListPacketMirroringsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListPublicDelegatedPrefixesRequest} message AggregatedListPublicDelegatedPrefixesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListPacketMirroringsRequest} message AggregatedListPacketMirroringsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListPublicDelegatedPrefixesRequest.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")) @@ -25769,33 +25769,33 @@ }; /** - * Encodes the specified AggregatedListPublicDelegatedPrefixesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest.verify|verify} messages. + * Encodes the specified AggregatedListPacketMirroringsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListPacketMirroringsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListPublicDelegatedPrefixesRequest} message AggregatedListPublicDelegatedPrefixesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListPacketMirroringsRequest} message AggregatedListPacketMirroringsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListPublicDelegatedPrefixesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListPacketMirroringsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListPublicDelegatedPrefixesRequest message from the specified reader or buffer. + * Decodes an AggregatedListPacketMirroringsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest + * @returns {google.cloud.compute.v1.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest * @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) { + 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.v1.AggregatedListPublicDelegatedPrefixesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListPacketMirroringsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -25842,30 +25842,30 @@ }; /** - * Decodes an AggregatedListPublicDelegatedPrefixesRequest 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.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest + * @returns {google.cloud.compute.v1.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest * @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) { + AggregatedListPacketMirroringsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListPublicDelegatedPrefixesRequest message. + * Verifies an AggregatedListPacketMirroringsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @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) { + AggregatedListPacketMirroringsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -25911,17 +25911,17 @@ }; /** - * Creates an AggregatedListPublicDelegatedPrefixesRequest 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.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest + * @returns {google.cloud.compute.v1.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest */ - AggregatedListPublicDelegatedPrefixesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest) + AggregatedListPacketMirroringsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListPacketMirroringsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListPacketMirroringsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -25949,15 +25949,15 @@ }; /** - * Creates a plain object from an AggregatedListPublicDelegatedPrefixesRequest 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.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest} message AggregatedListPublicDelegatedPrefixesRequest + * @param {google.cloud.compute.v1.AggregatedListPacketMirroringsRequest} message AggregatedListPacketMirroringsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListPublicDelegatedPrefixesRequest.toObject = function toObject(message, options) { + AggregatedListPacketMirroringsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -26007,59 +26007,59 @@ }; /** - * Converts this AggregatedListPublicDelegatedPrefixesRequest to JSON. + * Converts this AggregatedListPacketMirroringsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.toJSON = function toJSON() { + AggregatedListPacketMirroringsRequest.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 AggregatedListPacketMirroringsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListPublicDelegatedPrefixesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListPacketMirroringsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListPacketMirroringsRequest"; }; - return AggregatedListPublicDelegatedPrefixesRequest; + return AggregatedListPacketMirroringsRequest; })(); - v1.AggregatedListRegionCommitmentsRequest = (function() { + v1.AggregatedListPublicDelegatedPrefixesRequest = (function() { /** - * Properties of an AggregatedListRegionCommitmentsRequest. + * Properties of an AggregatedListPublicDelegatedPrefixesRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListRegionCommitmentsRequest. + * Constructs a new AggregatedListPublicDelegatedPrefixesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListRegionCommitmentsRequest. - * @implements IAggregatedListRegionCommitmentsRequest + * @classdesc Represents an AggregatedListPublicDelegatedPrefixesRequest. + * @implements IAggregatedListPublicDelegatedPrefixesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListRegionCommitmentsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListPublicDelegatedPrefixesRequest=} [properties] Properties to set */ - function AggregatedListRegionCommitmentsRequest(properties) { + function AggregatedListPublicDelegatedPrefixesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26067,136 +26067,136 @@ } /** - * AggregatedListRegionCommitmentsRequest filter. + * AggregatedListPublicDelegatedPrefixesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.filter = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.filter = null; /** - * AggregatedListRegionCommitmentsRequest includeAllScopes. + * AggregatedListPublicDelegatedPrefixesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.includeAllScopes = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.includeAllScopes = null; /** - * AggregatedListRegionCommitmentsRequest maxResults. + * AggregatedListPublicDelegatedPrefixesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.maxResults = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.maxResults = null; /** - * AggregatedListRegionCommitmentsRequest orderBy. + * AggregatedListPublicDelegatedPrefixesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.orderBy = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.orderBy = null; /** - * AggregatedListRegionCommitmentsRequest pageToken. + * AggregatedListPublicDelegatedPrefixesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.pageToken = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.pageToken = null; /** - * AggregatedListRegionCommitmentsRequest project. + * AggregatedListPublicDelegatedPrefixesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.project = ""; + AggregatedListPublicDelegatedPrefixesRequest.prototype.project = ""; /** - * AggregatedListRegionCommitmentsRequest returnPartialSuccess. + * AggregatedListPublicDelegatedPrefixesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.returnPartialSuccess = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListRegionCommitmentsRequest serviceProjectNumber. + * AggregatedListPublicDelegatedPrefixesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListRegionCommitmentsRequest.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(AggregatedListRegionCommitmentsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListRegionCommitmentsRequest instance using the specified properties. + * Creates a new AggregatedListPublicDelegatedPrefixesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRegionCommitmentsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListPublicDelegatedPrefixesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest instance */ - AggregatedListRegionCommitmentsRequest.create = function create(properties) { - return new AggregatedListRegionCommitmentsRequest(properties); + AggregatedListPublicDelegatedPrefixesRequest.create = function create(properties) { + return new AggregatedListPublicDelegatedPrefixesRequest(properties); }; /** - * Encodes the specified AggregatedListRegionCommitmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListPublicDelegatedPrefixesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRegionCommitmentsRequest} message AggregatedListRegionCommitmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListPublicDelegatedPrefixesRequest} message AggregatedListPublicDelegatedPrefixesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionCommitmentsRequest.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")) @@ -26219,33 +26219,33 @@ }; /** - * Encodes the specified AggregatedListRegionCommitmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListPublicDelegatedPrefixesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRegionCommitmentsRequest} message AggregatedListRegionCommitmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListPublicDelegatedPrefixesRequest} message AggregatedListPublicDelegatedPrefixesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionCommitmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListPublicDelegatedPrefixesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListRegionCommitmentsRequest message from the specified reader or buffer. + * Decodes an AggregatedListPublicDelegatedPrefixesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest * @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) { + 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.v1.AggregatedListRegionCommitmentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -26292,30 +26292,30 @@ }; /** - * Decodes an AggregatedListRegionCommitmentsRequest 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.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest * @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) { + AggregatedListPublicDelegatedPrefixesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListRegionCommitmentsRequest message. + * Verifies an AggregatedListPublicDelegatedPrefixesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @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) { + AggregatedListPublicDelegatedPrefixesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -26361,17 +26361,17 @@ }; /** - * Creates an AggregatedListRegionCommitmentsRequest 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.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest */ - AggregatedListRegionCommitmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest) + AggregatedListPublicDelegatedPrefixesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -26399,15 +26399,15 @@ }; /** - * Creates a plain object from an AggregatedListRegionCommitmentsRequest 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.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest} message AggregatedListRegionCommitmentsRequest + * @param {google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest} message AggregatedListPublicDelegatedPrefixesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListRegionCommitmentsRequest.toObject = function toObject(message, options) { + AggregatedListPublicDelegatedPrefixesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -26457,59 +26457,59 @@ }; /** - * Converts this AggregatedListRegionCommitmentsRequest to JSON. + * Converts this AggregatedListPublicDelegatedPrefixesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListRegionCommitmentsRequest.prototype.toJSON = function toJSON() { + AggregatedListPublicDelegatedPrefixesRequest.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 AggregatedListPublicDelegatedPrefixesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListRegionCommitmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListPublicDelegatedPrefixesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest"; }; - return AggregatedListRegionCommitmentsRequest; + return AggregatedListPublicDelegatedPrefixesRequest; })(); - v1.AggregatedListRegionCompositeHealthChecksRequest = (function() { + v1.AggregatedListRegionCommitmentsRequest = (function() { /** - * Properties of an AggregatedListRegionCompositeHealthChecksRequest. + * Properties of an AggregatedListRegionCommitmentsRequest. * @memberof google.cloud.compute.v1 - * @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 + * @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 AggregatedListRegionCompositeHealthChecksRequest. + * Constructs a new AggregatedListRegionCommitmentsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListRegionCompositeHealthChecksRequest. - * @implements IAggregatedListRegionCompositeHealthChecksRequest + * @classdesc Represents an AggregatedListRegionCommitmentsRequest. + * @implements IAggregatedListRegionCommitmentsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListRegionCompositeHealthChecksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListRegionCommitmentsRequest=} [properties] Properties to set */ - function AggregatedListRegionCompositeHealthChecksRequest(properties) { + function AggregatedListRegionCommitmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26517,136 +26517,136 @@ } /** - * AggregatedListRegionCompositeHealthChecksRequest filter. + * AggregatedListRegionCommitmentsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListRegionCompositeHealthChecksRequest.prototype.filter = null; + AggregatedListRegionCommitmentsRequest.prototype.filter = null; /** - * AggregatedListRegionCompositeHealthChecksRequest includeAllScopes. + * AggregatedListRegionCommitmentsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListRegionCompositeHealthChecksRequest.prototype.includeAllScopes = null; + AggregatedListRegionCommitmentsRequest.prototype.includeAllScopes = null; /** - * AggregatedListRegionCompositeHealthChecksRequest maxResults. + * AggregatedListRegionCommitmentsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListRegionCompositeHealthChecksRequest.prototype.maxResults = null; + AggregatedListRegionCommitmentsRequest.prototype.maxResults = null; /** - * AggregatedListRegionCompositeHealthChecksRequest orderBy. + * AggregatedListRegionCommitmentsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListRegionCompositeHealthChecksRequest.prototype.orderBy = null; + AggregatedListRegionCommitmentsRequest.prototype.orderBy = null; /** - * AggregatedListRegionCompositeHealthChecksRequest pageToken. + * AggregatedListRegionCommitmentsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListRegionCompositeHealthChecksRequest.prototype.pageToken = null; + AggregatedListRegionCommitmentsRequest.prototype.pageToken = null; /** - * AggregatedListRegionCompositeHealthChecksRequest project. + * AggregatedListRegionCommitmentsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListRegionCompositeHealthChecksRequest.prototype.project = ""; + AggregatedListRegionCommitmentsRequest.prototype.project = ""; /** - * AggregatedListRegionCompositeHealthChecksRequest returnPartialSuccess. + * AggregatedListRegionCommitmentsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListRegionCompositeHealthChecksRequest.prototype.returnPartialSuccess = null; + AggregatedListRegionCommitmentsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListRegionCompositeHealthChecksRequest serviceProjectNumber. + * AggregatedListRegionCommitmentsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListRegionCompositeHealthChecksRequest.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(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListRegionCompositeHealthChecksRequest instance using the specified properties. + * Creates a new AggregatedListRegionCommitmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRegionCompositeHealthChecksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest} AggregatedListRegionCompositeHealthChecksRequest instance + * @param {google.cloud.compute.v1.IAggregatedListRegionCommitmentsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest instance */ - AggregatedListRegionCompositeHealthChecksRequest.create = function create(properties) { - return new AggregatedListRegionCompositeHealthChecksRequest(properties); + AggregatedListRegionCommitmentsRequest.create = function create(properties) { + return new AggregatedListRegionCommitmentsRequest(properties); }; /** - * Encodes the specified AggregatedListRegionCompositeHealthChecksRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionCommitmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRegionCompositeHealthChecksRequest} message AggregatedListRegionCompositeHealthChecksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRegionCommitmentsRequest} message AggregatedListRegionCommitmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionCompositeHealthChecksRequest.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")) @@ -26669,33 +26669,33 @@ }; /** - * Encodes the specified AggregatedListRegionCompositeHealthChecksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionCommitmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRegionCompositeHealthChecksRequest} message AggregatedListRegionCompositeHealthChecksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRegionCommitmentsRequest} message AggregatedListRegionCommitmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionCompositeHealthChecksRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRegionCommitmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListRegionCompositeHealthChecksRequest message from the specified reader or buffer. + * Decodes an AggregatedListRegionCommitmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListRegionCompositeHealthChecksRequest} AggregatedListRegionCompositeHealthChecksRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRegionCompositeHealthChecksRequest.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.v1.AggregatedListRegionCompositeHealthChecksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -26742,30 +26742,30 @@ }; /** - * Decodes an AggregatedListRegionCompositeHealthChecksRequest 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.v1.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest} AggregatedListRegionCompositeHealthChecksRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRegionCompositeHealthChecksRequest.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 AggregatedListRegionCompositeHealthChecksRequest message. + * Verifies an AggregatedListRegionCommitmentsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListRegionCompositeHealthChecksRequest.verify = function verify(message) { + AggregatedListRegionCommitmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -26811,17 +26811,17 @@ }; /** - * Creates an AggregatedListRegionCompositeHealthChecksRequest 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.v1.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest} AggregatedListRegionCompositeHealthChecksRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest */ - AggregatedListRegionCompositeHealthChecksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest) + AggregatedListRegionCommitmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -26849,15 +26849,15 @@ }; /** - * Creates a plain object from an AggregatedListRegionCompositeHealthChecksRequest 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.v1.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest} message AggregatedListRegionCompositeHealthChecksRequest + * @param {google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest} message AggregatedListRegionCommitmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListRegionCompositeHealthChecksRequest.toObject = function toObject(message, options) { + AggregatedListRegionCommitmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -26907,59 +26907,59 @@ }; /** - * Converts this AggregatedListRegionCompositeHealthChecksRequest to JSON. + * Converts this AggregatedListRegionCommitmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListRegionCompositeHealthChecksRequest.prototype.toJSON = function toJSON() { + AggregatedListRegionCommitmentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListRegionCompositeHealthChecksRequest + * Gets the default type url for AggregatedListRegionCommitmentsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListRegionCompositeHealthChecksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRegionCommitmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest"; }; - return AggregatedListRegionCompositeHealthChecksRequest; + return AggregatedListRegionCommitmentsRequest; })(); - v1.AggregatedListRegionHealthAggregationPoliciesRequest = (function() { + v1.AggregatedListRegionCompositeHealthChecksRequest = (function() { /** - * Properties of an AggregatedListRegionHealthAggregationPoliciesRequest. + * Properties of an AggregatedListRegionCompositeHealthChecksRequest. * @memberof google.cloud.compute.v1 - * @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 + * @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 AggregatedListRegionHealthAggregationPoliciesRequest. + * Constructs a new AggregatedListRegionCompositeHealthChecksRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListRegionHealthAggregationPoliciesRequest. - * @implements IAggregatedListRegionHealthAggregationPoliciesRequest + * @classdesc Represents an AggregatedListRegionCompositeHealthChecksRequest. + * @implements IAggregatedListRegionCompositeHealthChecksRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListRegionHealthAggregationPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListRegionCompositeHealthChecksRequest=} [properties] Properties to set */ - function AggregatedListRegionHealthAggregationPoliciesRequest(properties) { + function AggregatedListRegionCompositeHealthChecksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26967,136 +26967,136 @@ } /** - * AggregatedListRegionHealthAggregationPoliciesRequest filter. + * AggregatedListRegionCompositeHealthChecksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListRegionHealthAggregationPoliciesRequest.prototype.filter = null; + AggregatedListRegionCompositeHealthChecksRequest.prototype.filter = null; /** - * AggregatedListRegionHealthAggregationPoliciesRequest includeAllScopes. + * AggregatedListRegionCompositeHealthChecksRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListRegionHealthAggregationPoliciesRequest.prototype.includeAllScopes = null; + AggregatedListRegionCompositeHealthChecksRequest.prototype.includeAllScopes = null; /** - * AggregatedListRegionHealthAggregationPoliciesRequest maxResults. + * AggregatedListRegionCompositeHealthChecksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListRegionHealthAggregationPoliciesRequest.prototype.maxResults = null; + AggregatedListRegionCompositeHealthChecksRequest.prototype.maxResults = null; /** - * AggregatedListRegionHealthAggregationPoliciesRequest orderBy. + * AggregatedListRegionCompositeHealthChecksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListRegionHealthAggregationPoliciesRequest.prototype.orderBy = null; + AggregatedListRegionCompositeHealthChecksRequest.prototype.orderBy = null; /** - * AggregatedListRegionHealthAggregationPoliciesRequest pageToken. + * AggregatedListRegionCompositeHealthChecksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListRegionHealthAggregationPoliciesRequest.prototype.pageToken = null; + AggregatedListRegionCompositeHealthChecksRequest.prototype.pageToken = null; /** - * AggregatedListRegionHealthAggregationPoliciesRequest project. + * AggregatedListRegionCompositeHealthChecksRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListRegionHealthAggregationPoliciesRequest.prototype.project = ""; + AggregatedListRegionCompositeHealthChecksRequest.prototype.project = ""; /** - * AggregatedListRegionHealthAggregationPoliciesRequest returnPartialSuccess. + * AggregatedListRegionCompositeHealthChecksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListRegionHealthAggregationPoliciesRequest.prototype.returnPartialSuccess = null; + AggregatedListRegionCompositeHealthChecksRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListRegionHealthAggregationPoliciesRequest serviceProjectNumber. + * AggregatedListRegionCompositeHealthChecksRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListRegionHealthAggregationPoliciesRequest.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(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListRegionHealthAggregationPoliciesRequest instance using the specified properties. + * Creates a new AggregatedListRegionCompositeHealthChecksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRegionHealthAggregationPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest} AggregatedListRegionHealthAggregationPoliciesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListRegionCompositeHealthChecksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest} AggregatedListRegionCompositeHealthChecksRequest instance */ - AggregatedListRegionHealthAggregationPoliciesRequest.create = function create(properties) { - return new AggregatedListRegionHealthAggregationPoliciesRequest(properties); + AggregatedListRegionCompositeHealthChecksRequest.create = function create(properties) { + return new AggregatedListRegionCompositeHealthChecksRequest(properties); }; /** - * Encodes the specified AggregatedListRegionHealthAggregationPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionCompositeHealthChecksRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRegionHealthAggregationPoliciesRequest} message AggregatedListRegionHealthAggregationPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRegionCompositeHealthChecksRequest} message AggregatedListRegionCompositeHealthChecksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionHealthAggregationPoliciesRequest.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")) @@ -27119,33 +27119,33 @@ }; /** - * Encodes the specified AggregatedListRegionHealthAggregationPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionCompositeHealthChecksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRegionHealthAggregationPoliciesRequest} message AggregatedListRegionHealthAggregationPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRegionCompositeHealthChecksRequest} message AggregatedListRegionCompositeHealthChecksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionHealthAggregationPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRegionCompositeHealthChecksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListRegionHealthAggregationPoliciesRequest message from the specified reader or buffer. + * Decodes an AggregatedListRegionCompositeHealthChecksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListRegionHealthAggregationPoliciesRequest} AggregatedListRegionHealthAggregationPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest} AggregatedListRegionCompositeHealthChecksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRegionHealthAggregationPoliciesRequest.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.v1.AggregatedListRegionHealthAggregationPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -27192,30 +27192,30 @@ }; /** - * Decodes an AggregatedListRegionHealthAggregationPoliciesRequest 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.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest} AggregatedListRegionHealthAggregationPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest} AggregatedListRegionCompositeHealthChecksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRegionHealthAggregationPoliciesRequest.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 AggregatedListRegionHealthAggregationPoliciesRequest message. + * Verifies an AggregatedListRegionCompositeHealthChecksRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListRegionHealthAggregationPoliciesRequest.verify = function verify(message) { + AggregatedListRegionCompositeHealthChecksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -27261,17 +27261,17 @@ }; /** - * Creates an AggregatedListRegionHealthAggregationPoliciesRequest 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.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest} AggregatedListRegionHealthAggregationPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest} AggregatedListRegionCompositeHealthChecksRequest */ - AggregatedListRegionHealthAggregationPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest) + AggregatedListRegionCompositeHealthChecksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -27299,15 +27299,15 @@ }; /** - * Creates a plain object from an AggregatedListRegionHealthAggregationPoliciesRequest 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.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @static - * @param {google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest} message AggregatedListRegionHealthAggregationPoliciesRequest + * @param {google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest} message AggregatedListRegionCompositeHealthChecksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListRegionHealthAggregationPoliciesRequest.toObject = function toObject(message, options) { + AggregatedListRegionCompositeHealthChecksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -27357,59 +27357,59 @@ }; /** - * Converts this AggregatedListRegionHealthAggregationPoliciesRequest to JSON. + * Converts this AggregatedListRegionCompositeHealthChecksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @instance * @returns {Object.} JSON object */ - AggregatedListRegionHealthAggregationPoliciesRequest.prototype.toJSON = function toJSON() { + AggregatedListRegionCompositeHealthChecksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListRegionHealthAggregationPoliciesRequest + * Gets the default type url for AggregatedListRegionCompositeHealthChecksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListRegionHealthAggregationPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRegionCompositeHealthChecksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest"; }; - return AggregatedListRegionHealthAggregationPoliciesRequest; + return AggregatedListRegionCompositeHealthChecksRequest; })(); - v1.AggregatedListRegionHealthCheckServicesRequest = (function() { + v1.AggregatedListRegionHealthAggregationPoliciesRequest = (function() { /** - * Properties of an AggregatedListRegionHealthCheckServicesRequest. + * Properties of an AggregatedListRegionHealthAggregationPoliciesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListRegionHealthCheckServicesRequest - * @property {string|null} [filter] AggregatedListRegionHealthCheckServicesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListRegionHealthCheckServicesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListRegionHealthCheckServicesRequest maxResults - * @property {string|null} [orderBy] AggregatedListRegionHealthCheckServicesRequest orderBy - * @property {string|null} [pageToken] AggregatedListRegionHealthCheckServicesRequest pageToken - * @property {string|null} [project] AggregatedListRegionHealthCheckServicesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListRegionHealthCheckServicesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListRegionHealthCheckServicesRequest 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 AggregatedListRegionHealthCheckServicesRequest. + * Constructs a new AggregatedListRegionHealthAggregationPoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListRegionHealthCheckServicesRequest. - * @implements IAggregatedListRegionHealthCheckServicesRequest + * @classdesc Represents an AggregatedListRegionHealthAggregationPoliciesRequest. + * @implements IAggregatedListRegionHealthAggregationPoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListRegionHealthCheckServicesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListRegionHealthAggregationPoliciesRequest=} [properties] Properties to set */ - function AggregatedListRegionHealthCheckServicesRequest(properties) { + function AggregatedListRegionHealthAggregationPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27417,136 +27417,136 @@ } /** - * AggregatedListRegionHealthCheckServicesRequest filter. + * AggregatedListRegionHealthAggregationPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListRegionHealthCheckServicesRequest.prototype.filter = null; + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.filter = null; /** - * AggregatedListRegionHealthCheckServicesRequest includeAllScopes. + * AggregatedListRegionHealthAggregationPoliciesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListRegionHealthCheckServicesRequest.prototype.includeAllScopes = null; + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.includeAllScopes = null; /** - * AggregatedListRegionHealthCheckServicesRequest maxResults. + * AggregatedListRegionHealthAggregationPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListRegionHealthCheckServicesRequest.prototype.maxResults = null; + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.maxResults = null; /** - * AggregatedListRegionHealthCheckServicesRequest orderBy. + * AggregatedListRegionHealthAggregationPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListRegionHealthCheckServicesRequest.prototype.orderBy = null; + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.orderBy = null; /** - * AggregatedListRegionHealthCheckServicesRequest pageToken. + * AggregatedListRegionHealthAggregationPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListRegionHealthCheckServicesRequest.prototype.pageToken = null; + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.pageToken = null; /** - * AggregatedListRegionHealthCheckServicesRequest project. + * AggregatedListRegionHealthAggregationPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListRegionHealthCheckServicesRequest.prototype.project = ""; + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.project = ""; /** - * AggregatedListRegionHealthCheckServicesRequest returnPartialSuccess. + * AggregatedListRegionHealthAggregationPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListRegionHealthCheckServicesRequest.prototype.returnPartialSuccess = null; + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListRegionHealthCheckServicesRequest serviceProjectNumber. + * AggregatedListRegionHealthAggregationPoliciesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListRegionHealthCheckServicesRequest.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(AggregatedListRegionHealthCheckServicesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthCheckServicesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthCheckServicesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthCheckServicesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthCheckServicesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthCheckServicesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthCheckServicesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListRegionHealthCheckServicesRequest instance using the specified properties. + * Creates a new AggregatedListRegionHealthAggregationPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRegionHealthCheckServicesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest} AggregatedListRegionHealthCheckServicesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListRegionHealthAggregationPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest} AggregatedListRegionHealthAggregationPoliciesRequest instance */ - AggregatedListRegionHealthCheckServicesRequest.create = function create(properties) { - return new AggregatedListRegionHealthCheckServicesRequest(properties); + AggregatedListRegionHealthAggregationPoliciesRequest.create = function create(properties) { + return new AggregatedListRegionHealthAggregationPoliciesRequest(properties); }; /** - * Encodes the specified AggregatedListRegionHealthCheckServicesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionHealthAggregationPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRegionHealthCheckServicesRequest} message AggregatedListRegionHealthCheckServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRegionHealthAggregationPoliciesRequest} message AggregatedListRegionHealthAggregationPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionHealthCheckServicesRequest.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")) @@ -27569,33 +27569,33 @@ }; /** - * Encodes the specified AggregatedListRegionHealthCheckServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionHealthAggregationPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRegionHealthCheckServicesRequest} message AggregatedListRegionHealthCheckServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRegionHealthAggregationPoliciesRequest} message AggregatedListRegionHealthAggregationPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionHealthCheckServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRegionHealthAggregationPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListRegionHealthCheckServicesRequest message from the specified reader or buffer. + * Decodes an AggregatedListRegionHealthAggregationPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListRegionHealthCheckServicesRequest} AggregatedListRegionHealthCheckServicesRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest} AggregatedListRegionHealthAggregationPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRegionHealthCheckServicesRequest.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.v1.AggregatedListRegionHealthCheckServicesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -27642,30 +27642,30 @@ }; /** - * Decodes an AggregatedListRegionHealthCheckServicesRequest 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.v1.AggregatedListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest} AggregatedListRegionHealthCheckServicesRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest} AggregatedListRegionHealthAggregationPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRegionHealthCheckServicesRequest.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 AggregatedListRegionHealthCheckServicesRequest message. + * Verifies an AggregatedListRegionHealthAggregationPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListRegionHealthCheckServicesRequest.verify = function verify(message) { + AggregatedListRegionHealthAggregationPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -27711,17 +27711,17 @@ }; /** - * Creates an AggregatedListRegionHealthCheckServicesRequest 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.v1.AggregatedListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest} AggregatedListRegionHealthCheckServicesRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest} AggregatedListRegionHealthAggregationPoliciesRequest */ - AggregatedListRegionHealthCheckServicesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest) + AggregatedListRegionHealthAggregationPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -27749,15 +27749,15 @@ }; /** - * Creates a plain object from an AggregatedListRegionHealthCheckServicesRequest 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.v1.AggregatedListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest} message AggregatedListRegionHealthCheckServicesRequest + * @param {google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest} message AggregatedListRegionHealthAggregationPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListRegionHealthCheckServicesRequest.toObject = function toObject(message, options) { + AggregatedListRegionHealthAggregationPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -27807,59 +27807,59 @@ }; /** - * Converts this AggregatedListRegionHealthCheckServicesRequest to JSON. + * Converts this AggregatedListRegionHealthAggregationPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListRegionHealthCheckServicesRequest.prototype.toJSON = function toJSON() { + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListRegionHealthCheckServicesRequest + * Gets the default type url for AggregatedListRegionHealthAggregationPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListRegionHealthCheckServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRegionHealthAggregationPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest"; }; - return AggregatedListRegionHealthCheckServicesRequest; + return AggregatedListRegionHealthAggregationPoliciesRequest; })(); - v1.AggregatedListRegionHealthSourcesRequest = (function() { + v1.AggregatedListRegionHealthCheckServicesRequest = (function() { /** - * Properties of an AggregatedListRegionHealthSourcesRequest. + * Properties of an AggregatedListRegionHealthCheckServicesRequest. * @memberof google.cloud.compute.v1 - * @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 IAggregatedListRegionHealthCheckServicesRequest + * @property {string|null} [filter] AggregatedListRegionHealthCheckServicesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListRegionHealthCheckServicesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListRegionHealthCheckServicesRequest maxResults + * @property {string|null} [orderBy] AggregatedListRegionHealthCheckServicesRequest orderBy + * @property {string|null} [pageToken] AggregatedListRegionHealthCheckServicesRequest pageToken + * @property {string|null} [project] AggregatedListRegionHealthCheckServicesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListRegionHealthCheckServicesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListRegionHealthCheckServicesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListRegionHealthSourcesRequest. + * Constructs a new AggregatedListRegionHealthCheckServicesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListRegionHealthSourcesRequest. - * @implements IAggregatedListRegionHealthSourcesRequest + * @classdesc Represents an AggregatedListRegionHealthCheckServicesRequest. + * @implements IAggregatedListRegionHealthCheckServicesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListRegionHealthSourcesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListRegionHealthCheckServicesRequest=} [properties] Properties to set */ - function AggregatedListRegionHealthSourcesRequest(properties) { + function AggregatedListRegionHealthCheckServicesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27867,136 +27867,136 @@ } /** - * AggregatedListRegionHealthSourcesRequest filter. + * AggregatedListRegionHealthCheckServicesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @instance */ - AggregatedListRegionHealthSourcesRequest.prototype.filter = null; + AggregatedListRegionHealthCheckServicesRequest.prototype.filter = null; /** - * AggregatedListRegionHealthSourcesRequest includeAllScopes. + * AggregatedListRegionHealthCheckServicesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @instance */ - AggregatedListRegionHealthSourcesRequest.prototype.includeAllScopes = null; + AggregatedListRegionHealthCheckServicesRequest.prototype.includeAllScopes = null; /** - * AggregatedListRegionHealthSourcesRequest maxResults. + * AggregatedListRegionHealthCheckServicesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @instance */ - AggregatedListRegionHealthSourcesRequest.prototype.maxResults = null; + AggregatedListRegionHealthCheckServicesRequest.prototype.maxResults = null; /** - * AggregatedListRegionHealthSourcesRequest orderBy. + * AggregatedListRegionHealthCheckServicesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @instance */ - AggregatedListRegionHealthSourcesRequest.prototype.orderBy = null; + AggregatedListRegionHealthCheckServicesRequest.prototype.orderBy = null; /** - * AggregatedListRegionHealthSourcesRequest pageToken. + * AggregatedListRegionHealthCheckServicesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @instance */ - AggregatedListRegionHealthSourcesRequest.prototype.pageToken = null; + AggregatedListRegionHealthCheckServicesRequest.prototype.pageToken = null; /** - * AggregatedListRegionHealthSourcesRequest project. + * AggregatedListRegionHealthCheckServicesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @instance */ - AggregatedListRegionHealthSourcesRequest.prototype.project = ""; + AggregatedListRegionHealthCheckServicesRequest.prototype.project = ""; /** - * AggregatedListRegionHealthSourcesRequest returnPartialSuccess. + * AggregatedListRegionHealthCheckServicesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @instance */ - AggregatedListRegionHealthSourcesRequest.prototype.returnPartialSuccess = null; + AggregatedListRegionHealthCheckServicesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListRegionHealthSourcesRequest serviceProjectNumber. + * AggregatedListRegionHealthCheckServicesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @instance */ - AggregatedListRegionHealthSourcesRequest.prototype.serviceProjectNumber = null; + AggregatedListRegionHealthCheckServicesRequest.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(AggregatedListRegionHealthCheckServicesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRegionHealthCheckServicesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRegionHealthCheckServicesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRegionHealthCheckServicesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRegionHealthCheckServicesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRegionHealthCheckServicesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListRegionHealthCheckServicesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListRegionHealthSourcesRequest instance using the specified properties. + * Creates a new AggregatedListRegionHealthCheckServicesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRegionHealthSourcesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest} AggregatedListRegionHealthSourcesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListRegionHealthCheckServicesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest} AggregatedListRegionHealthCheckServicesRequest instance */ - AggregatedListRegionHealthSourcesRequest.create = function create(properties) { - return new AggregatedListRegionHealthSourcesRequest(properties); + AggregatedListRegionHealthCheckServicesRequest.create = function create(properties) { + return new AggregatedListRegionHealthCheckServicesRequest(properties); }; /** - * Encodes the specified AggregatedListRegionHealthSourcesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionHealthCheckServicesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRegionHealthSourcesRequest} message AggregatedListRegionHealthSourcesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRegionHealthCheckServicesRequest} message AggregatedListRegionHealthCheckServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionHealthSourcesRequest.encode = function encode(message, writer) { + AggregatedListRegionHealthCheckServicesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -28019,33 +28019,33 @@ }; /** - * Encodes the specified AggregatedListRegionHealthSourcesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionHealthCheckServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRegionHealthSourcesRequest} message AggregatedListRegionHealthSourcesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRegionHealthCheckServicesRequest} message AggregatedListRegionHealthCheckServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionHealthSourcesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRegionHealthCheckServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListRegionHealthSourcesRequest message from the specified reader or buffer. + * Decodes an AggregatedListRegionHealthCheckServicesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest} AggregatedListRegionHealthSourcesRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest} AggregatedListRegionHealthCheckServicesRequest * @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) { + AggregatedListRegionHealthCheckServicesRequest.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.v1.AggregatedListRegionHealthSourcesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -28092,30 +28092,30 @@ }; /** - * Decodes an AggregatedListRegionHealthSourcesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListRegionHealthCheckServicesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest} AggregatedListRegionHealthSourcesRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest} AggregatedListRegionHealthCheckServicesRequest * @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) { + AggregatedListRegionHealthCheckServicesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListRegionHealthSourcesRequest message. + * Verifies an AggregatedListRegionHealthCheckServicesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @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) { + AggregatedListRegionHealthCheckServicesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -28161,17 +28161,17 @@ }; /** - * Creates an AggregatedListRegionHealthSourcesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListRegionHealthCheckServicesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest} AggregatedListRegionHealthSourcesRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest} AggregatedListRegionHealthCheckServicesRequest */ - AggregatedListRegionHealthSourcesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest) + AggregatedListRegionHealthCheckServicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -28199,15 +28199,15 @@ }; /** - * Creates a plain object from an AggregatedListRegionHealthSourcesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListRegionHealthCheckServicesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest} message AggregatedListRegionHealthSourcesRequest + * @param {google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest} message AggregatedListRegionHealthCheckServicesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListRegionHealthSourcesRequest.toObject = function toObject(message, options) { + AggregatedListRegionHealthCheckServicesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -28257,59 +28257,59 @@ }; /** - * Converts this AggregatedListRegionHealthSourcesRequest to JSON. + * Converts this AggregatedListRegionHealthCheckServicesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListRegionHealthSourcesRequest.prototype.toJSON = function toJSON() { + AggregatedListRegionHealthCheckServicesRequest.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 AggregatedListRegionHealthCheckServicesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListRegionHealthSourcesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRegionHealthCheckServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest"; }; - return AggregatedListRegionHealthSourcesRequest; + return AggregatedListRegionHealthCheckServicesRequest; })(); - v1.AggregatedListRegionNotificationEndpointsRequest = (function() { + v1.AggregatedListRegionHealthSourcesRequest = (function() { /** - * Properties of an AggregatedListRegionNotificationEndpointsRequest. + * Properties of an AggregatedListRegionHealthSourcesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListRegionNotificationEndpointsRequest - * @property {string|null} [filter] AggregatedListRegionNotificationEndpointsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListRegionNotificationEndpointsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListRegionNotificationEndpointsRequest maxResults - * @property {string|null} [orderBy] AggregatedListRegionNotificationEndpointsRequest orderBy - * @property {string|null} [pageToken] AggregatedListRegionNotificationEndpointsRequest pageToken - * @property {string|null} [project] AggregatedListRegionNotificationEndpointsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListRegionNotificationEndpointsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListRegionNotificationEndpointsRequest 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 AggregatedListRegionNotificationEndpointsRequest. + * Constructs a new AggregatedListRegionHealthSourcesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListRegionNotificationEndpointsRequest. - * @implements IAggregatedListRegionNotificationEndpointsRequest + * @classdesc Represents an AggregatedListRegionHealthSourcesRequest. + * @implements IAggregatedListRegionHealthSourcesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListRegionNotificationEndpointsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListRegionHealthSourcesRequest=} [properties] Properties to set */ - function AggregatedListRegionNotificationEndpointsRequest(properties) { + function AggregatedListRegionHealthSourcesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28317,136 +28317,136 @@ } /** - * AggregatedListRegionNotificationEndpointsRequest filter. + * AggregatedListRegionHealthSourcesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRegionNotificationEndpointsRequest.prototype.filter = null; + AggregatedListRegionHealthSourcesRequest.prototype.filter = null; /** - * AggregatedListRegionNotificationEndpointsRequest includeAllScopes. + * AggregatedListRegionHealthSourcesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRegionNotificationEndpointsRequest.prototype.includeAllScopes = null; + AggregatedListRegionHealthSourcesRequest.prototype.includeAllScopes = null; /** - * AggregatedListRegionNotificationEndpointsRequest maxResults. + * AggregatedListRegionHealthSourcesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRegionNotificationEndpointsRequest.prototype.maxResults = null; + AggregatedListRegionHealthSourcesRequest.prototype.maxResults = null; /** - * AggregatedListRegionNotificationEndpointsRequest orderBy. + * AggregatedListRegionHealthSourcesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRegionNotificationEndpointsRequest.prototype.orderBy = null; + AggregatedListRegionHealthSourcesRequest.prototype.orderBy = null; /** - * AggregatedListRegionNotificationEndpointsRequest pageToken. + * AggregatedListRegionHealthSourcesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRegionNotificationEndpointsRequest.prototype.pageToken = null; + AggregatedListRegionHealthSourcesRequest.prototype.pageToken = null; /** - * AggregatedListRegionNotificationEndpointsRequest project. + * AggregatedListRegionHealthSourcesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRegionNotificationEndpointsRequest.prototype.project = ""; + AggregatedListRegionHealthSourcesRequest.prototype.project = ""; /** - * AggregatedListRegionNotificationEndpointsRequest returnPartialSuccess. + * AggregatedListRegionHealthSourcesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRegionNotificationEndpointsRequest.prototype.returnPartialSuccess = null; + AggregatedListRegionHealthSourcesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListRegionNotificationEndpointsRequest serviceProjectNumber. + * AggregatedListRegionHealthSourcesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRegionNotificationEndpointsRequest.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(AggregatedListRegionNotificationEndpointsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionNotificationEndpointsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionNotificationEndpointsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionNotificationEndpointsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionNotificationEndpointsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionNotificationEndpointsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionNotificationEndpointsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListRegionNotificationEndpointsRequest instance using the specified properties. + * Creates a new AggregatedListRegionHealthSourcesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRegionNotificationEndpointsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest} AggregatedListRegionNotificationEndpointsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListRegionHealthSourcesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest} AggregatedListRegionHealthSourcesRequest instance */ - AggregatedListRegionNotificationEndpointsRequest.create = function create(properties) { - return new AggregatedListRegionNotificationEndpointsRequest(properties); + AggregatedListRegionHealthSourcesRequest.create = function create(properties) { + return new AggregatedListRegionHealthSourcesRequest(properties); }; /** - * Encodes the specified AggregatedListRegionNotificationEndpointsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionHealthSourcesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRegionNotificationEndpointsRequest} message AggregatedListRegionNotificationEndpointsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRegionHealthSourcesRequest} message AggregatedListRegionHealthSourcesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionNotificationEndpointsRequest.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")) @@ -28469,33 +28469,33 @@ }; /** - * Encodes the specified AggregatedListRegionNotificationEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionHealthSourcesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRegionNotificationEndpointsRequest} message AggregatedListRegionNotificationEndpointsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRegionHealthSourcesRequest} message AggregatedListRegionHealthSourcesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionNotificationEndpointsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRegionHealthSourcesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListRegionNotificationEndpointsRequest message from the specified reader or buffer. + * Decodes an AggregatedListRegionHealthSourcesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListRegionNotificationEndpointsRequest} AggregatedListRegionNotificationEndpointsRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest} AggregatedListRegionHealthSourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRegionNotificationEndpointsRequest.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.v1.AggregatedListRegionNotificationEndpointsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -28542,30 +28542,30 @@ }; /** - * Decodes an AggregatedListRegionNotificationEndpointsRequest 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.v1.AggregatedListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest} AggregatedListRegionNotificationEndpointsRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest} AggregatedListRegionHealthSourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRegionNotificationEndpointsRequest.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 AggregatedListRegionNotificationEndpointsRequest message. + * Verifies an AggregatedListRegionHealthSourcesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListRegionNotificationEndpointsRequest.verify = function verify(message) { + AggregatedListRegionHealthSourcesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -28611,17 +28611,17 @@ }; /** - * Creates an AggregatedListRegionNotificationEndpointsRequest 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.v1.AggregatedListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest} AggregatedListRegionNotificationEndpointsRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest} AggregatedListRegionHealthSourcesRequest */ - AggregatedListRegionNotificationEndpointsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest) + AggregatedListRegionHealthSourcesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -28649,15 +28649,15 @@ }; /** - * Creates a plain object from an AggregatedListRegionNotificationEndpointsRequest 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.v1.AggregatedListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest} message AggregatedListRegionNotificationEndpointsRequest + * @param {google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest} message AggregatedListRegionHealthSourcesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListRegionNotificationEndpointsRequest.toObject = function toObject(message, options) { + AggregatedListRegionHealthSourcesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -28707,59 +28707,59 @@ }; /** - * Converts this AggregatedListRegionNotificationEndpointsRequest to JSON. + * Converts this AggregatedListRegionHealthSourcesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListRegionNotificationEndpointsRequest.prototype.toJSON = function toJSON() { + AggregatedListRegionHealthSourcesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListRegionNotificationEndpointsRequest + * Gets the default type url for AggregatedListRegionHealthSourcesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListRegionNotificationEndpointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRegionHealthSourcesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest"; }; - return AggregatedListRegionNotificationEndpointsRequest; + return AggregatedListRegionHealthSourcesRequest; })(); - v1.AggregatedListReservationsRequest = (function() { + v1.AggregatedListRegionNotificationEndpointsRequest = (function() { /** - * Properties of an AggregatedListReservationsRequest. + * Properties of an AggregatedListRegionNotificationEndpointsRequest. * @memberof google.cloud.compute.v1 - * @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 IAggregatedListRegionNotificationEndpointsRequest + * @property {string|null} [filter] AggregatedListRegionNotificationEndpointsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListRegionNotificationEndpointsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListRegionNotificationEndpointsRequest maxResults + * @property {string|null} [orderBy] AggregatedListRegionNotificationEndpointsRequest orderBy + * @property {string|null} [pageToken] AggregatedListRegionNotificationEndpointsRequest pageToken + * @property {string|null} [project] AggregatedListRegionNotificationEndpointsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListRegionNotificationEndpointsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListRegionNotificationEndpointsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListReservationsRequest. + * Constructs a new AggregatedListRegionNotificationEndpointsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListReservationsRequest. - * @implements IAggregatedListReservationsRequest + * @classdesc Represents an AggregatedListRegionNotificationEndpointsRequest. + * @implements IAggregatedListRegionNotificationEndpointsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListRegionNotificationEndpointsRequest=} [properties] Properties to set */ - function AggregatedListReservationsRequest(properties) { + function AggregatedListRegionNotificationEndpointsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28767,136 +28767,136 @@ } /** - * AggregatedListReservationsRequest filter. + * AggregatedListRegionNotificationEndpointsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @instance */ - AggregatedListReservationsRequest.prototype.filter = null; + AggregatedListRegionNotificationEndpointsRequest.prototype.filter = null; /** - * AggregatedListReservationsRequest includeAllScopes. + * AggregatedListRegionNotificationEndpointsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @instance */ - AggregatedListReservationsRequest.prototype.includeAllScopes = null; + AggregatedListRegionNotificationEndpointsRequest.prototype.includeAllScopes = null; /** - * AggregatedListReservationsRequest maxResults. + * AggregatedListRegionNotificationEndpointsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @instance */ - AggregatedListReservationsRequest.prototype.maxResults = null; + AggregatedListRegionNotificationEndpointsRequest.prototype.maxResults = null; /** - * AggregatedListReservationsRequest orderBy. + * AggregatedListRegionNotificationEndpointsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @instance */ - AggregatedListReservationsRequest.prototype.orderBy = null; + AggregatedListRegionNotificationEndpointsRequest.prototype.orderBy = null; /** - * AggregatedListReservationsRequest pageToken. + * AggregatedListRegionNotificationEndpointsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @instance */ - AggregatedListReservationsRequest.prototype.pageToken = null; + AggregatedListRegionNotificationEndpointsRequest.prototype.pageToken = null; /** - * AggregatedListReservationsRequest project. + * AggregatedListRegionNotificationEndpointsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @instance */ - AggregatedListReservationsRequest.prototype.project = ""; + AggregatedListRegionNotificationEndpointsRequest.prototype.project = ""; /** - * AggregatedListReservationsRequest returnPartialSuccess. + * AggregatedListRegionNotificationEndpointsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @instance */ - AggregatedListReservationsRequest.prototype.returnPartialSuccess = null; + AggregatedListRegionNotificationEndpointsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListReservationsRequest serviceProjectNumber. + * AggregatedListRegionNotificationEndpointsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @instance */ - AggregatedListReservationsRequest.prototype.serviceProjectNumber = null; + AggregatedListRegionNotificationEndpointsRequest.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(AggregatedListRegionNotificationEndpointsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRegionNotificationEndpointsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRegionNotificationEndpointsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRegionNotificationEndpointsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRegionNotificationEndpointsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRegionNotificationEndpointsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListRegionNotificationEndpointsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListReservationsRequest instance using the specified properties. + * Creates a new AggregatedListRegionNotificationEndpointsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListRegionNotificationEndpointsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest} AggregatedListRegionNotificationEndpointsRequest instance */ - AggregatedListReservationsRequest.create = function create(properties) { - return new AggregatedListReservationsRequest(properties); + AggregatedListRegionNotificationEndpointsRequest.create = function create(properties) { + return new AggregatedListRegionNotificationEndpointsRequest(properties); }; /** - * Encodes the specified AggregatedListReservationsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListReservationsRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionNotificationEndpointsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest} message AggregatedListReservationsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRegionNotificationEndpointsRequest} message AggregatedListRegionNotificationEndpointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListReservationsRequest.encode = function encode(message, writer) { + AggregatedListRegionNotificationEndpointsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -28919,33 +28919,33 @@ }; /** - * Encodes the specified AggregatedListReservationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListReservationsRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionNotificationEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest} message AggregatedListReservationsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRegionNotificationEndpointsRequest} message AggregatedListRegionNotificationEndpointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListReservationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRegionNotificationEndpointsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListReservationsRequest message from the specified reader or buffer. + * Decodes an AggregatedListRegionNotificationEndpointsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest} AggregatedListRegionNotificationEndpointsRequest * @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) { + AggregatedListRegionNotificationEndpointsRequest.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.v1.AggregatedListReservationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -28992,30 +28992,30 @@ }; /** - * Decodes an AggregatedListReservationsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListRegionNotificationEndpointsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest} AggregatedListRegionNotificationEndpointsRequest * @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) { + AggregatedListRegionNotificationEndpointsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListReservationsRequest message. + * Verifies an AggregatedListRegionNotificationEndpointsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @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) { + AggregatedListRegionNotificationEndpointsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -29061,17 +29061,17 @@ }; /** - * Creates an AggregatedListReservationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListRegionNotificationEndpointsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest} AggregatedListRegionNotificationEndpointsRequest */ - AggregatedListReservationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListReservationsRequest) + AggregatedListRegionNotificationEndpointsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListReservationsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -29099,15 +29099,15 @@ }; /** - * Creates a plain object from an AggregatedListReservationsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListRegionNotificationEndpointsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListReservationsRequest} message AggregatedListReservationsRequest + * @param {google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest} message AggregatedListRegionNotificationEndpointsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListReservationsRequest.toObject = function toObject(message, options) { + AggregatedListRegionNotificationEndpointsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -29157,59 +29157,59 @@ }; /** - * Converts this AggregatedListReservationsRequest to JSON. + * Converts this AggregatedListRegionNotificationEndpointsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListReservationsRequest.prototype.toJSON = function toJSON() { + AggregatedListRegionNotificationEndpointsRequest.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 AggregatedListRegionNotificationEndpointsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListReservationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRegionNotificationEndpointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListReservationsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest"; }; - return AggregatedListReservationsRequest; + return AggregatedListRegionNotificationEndpointsRequest; })(); - v1.AggregatedListResourcePoliciesRequest = (function() { + v1.AggregatedListReservationsRequest = (function() { /** - * Properties of an AggregatedListResourcePoliciesRequest. + * Properties of an AggregatedListReservationsRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListResourcePoliciesRequest. + * Constructs a new AggregatedListReservationsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListResourcePoliciesRequest. - * @implements IAggregatedListResourcePoliciesRequest + * @classdesc Represents an AggregatedListReservationsRequest. + * @implements IAggregatedListReservationsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest=} [properties] Properties to set */ - function AggregatedListResourcePoliciesRequest(properties) { + function AggregatedListReservationsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -29217,136 +29217,136 @@ } /** - * AggregatedListResourcePoliciesRequest filter. + * AggregatedListReservationsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.filter = null; + AggregatedListReservationsRequest.prototype.filter = null; /** - * AggregatedListResourcePoliciesRequest includeAllScopes. + * AggregatedListReservationsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.includeAllScopes = null; + AggregatedListReservationsRequest.prototype.includeAllScopes = null; /** - * AggregatedListResourcePoliciesRequest maxResults. + * AggregatedListReservationsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.maxResults = null; + AggregatedListReservationsRequest.prototype.maxResults = null; /** - * AggregatedListResourcePoliciesRequest orderBy. + * AggregatedListReservationsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.orderBy = null; + AggregatedListReservationsRequest.prototype.orderBy = null; /** - * AggregatedListResourcePoliciesRequest pageToken. + * AggregatedListReservationsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.pageToken = null; + AggregatedListReservationsRequest.prototype.pageToken = null; /** - * AggregatedListResourcePoliciesRequest project. + * AggregatedListReservationsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.project = ""; + AggregatedListReservationsRequest.prototype.project = ""; /** - * AggregatedListResourcePoliciesRequest returnPartialSuccess. + * AggregatedListReservationsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.returnPartialSuccess = null; + AggregatedListReservationsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListResourcePoliciesRequest serviceProjectNumber. + * AggregatedListReservationsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListResourcePoliciesRequest.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(AggregatedListResourcePoliciesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListResourcePoliciesRequest instance using the specified properties. + * Creates a new AggregatedListReservationsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest instance */ - AggregatedListResourcePoliciesRequest.create = function create(properties) { - return new AggregatedListResourcePoliciesRequest(properties); + AggregatedListReservationsRequest.create = function create(properties) { + return new AggregatedListReservationsRequest(properties); }; /** - * Encodes the specified AggregatedListResourcePoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListResourcePoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListReservationsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListReservationsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest} message AggregatedListReservationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListResourcePoliciesRequest.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")) @@ -29369,33 +29369,33 @@ }; /** - * Encodes the specified AggregatedListResourcePoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListResourcePoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListReservationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListReservationsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest} message AggregatedListReservationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListResourcePoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListReservationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListResourcePoliciesRequest message from the specified reader or buffer. + * Decodes an AggregatedListReservationsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest * @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) { + 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.v1.AggregatedListResourcePoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListReservationsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -29442,30 +29442,30 @@ }; /** - * Decodes an AggregatedListResourcePoliciesRequest 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.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest * @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) { + AggregatedListReservationsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListResourcePoliciesRequest message. + * Verifies an AggregatedListReservationsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @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) { + AggregatedListReservationsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -29511,17 +29511,17 @@ }; /** - * Creates an AggregatedListResourcePoliciesRequest 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.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest */ - AggregatedListResourcePoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListResourcePoliciesRequest) + AggregatedListReservationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListReservationsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListResourcePoliciesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListReservationsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -29549,15 +29549,15 @@ }; /** - * Creates a plain object from an AggregatedListResourcePoliciesRequest 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.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest + * @param {google.cloud.compute.v1.AggregatedListReservationsRequest} message AggregatedListReservationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListResourcePoliciesRequest.toObject = function toObject(message, options) { + AggregatedListReservationsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -29607,59 +29607,59 @@ }; /** - * Converts this AggregatedListResourcePoliciesRequest to JSON. + * Converts this AggregatedListReservationsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListResourcePoliciesRequest.prototype.toJSON = function toJSON() { + AggregatedListReservationsRequest.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 AggregatedListReservationsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListResourcePoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListReservationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListResourcePoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListReservationsRequest"; }; - return AggregatedListResourcePoliciesRequest; + return AggregatedListReservationsRequest; })(); - v1.AggregatedListRoutersRequest = (function() { + v1.AggregatedListResourcePoliciesRequest = (function() { /** - * Properties of an AggregatedListRoutersRequest. + * Properties of an AggregatedListResourcePoliciesRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListRoutersRequest. + * Constructs a new AggregatedListResourcePoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListRoutersRequest. - * @implements IAggregatedListRoutersRequest + * @classdesc Represents an AggregatedListResourcePoliciesRequest. + * @implements IAggregatedListResourcePoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest=} [properties] Properties to set */ - function AggregatedListRoutersRequest(properties) { + function AggregatedListResourcePoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -29667,136 +29667,136 @@ } /** - * AggregatedListRoutersRequest filter. + * AggregatedListResourcePoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListRoutersRequest.prototype.filter = null; + AggregatedListResourcePoliciesRequest.prototype.filter = null; /** - * AggregatedListRoutersRequest includeAllScopes. + * AggregatedListResourcePoliciesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListRoutersRequest.prototype.includeAllScopes = null; + AggregatedListResourcePoliciesRequest.prototype.includeAllScopes = null; /** - * AggregatedListRoutersRequest maxResults. + * AggregatedListResourcePoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListRoutersRequest.prototype.maxResults = null; + AggregatedListResourcePoliciesRequest.prototype.maxResults = null; /** - * AggregatedListRoutersRequest orderBy. + * AggregatedListResourcePoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListRoutersRequest.prototype.orderBy = null; + AggregatedListResourcePoliciesRequest.prototype.orderBy = null; /** - * AggregatedListRoutersRequest pageToken. + * AggregatedListResourcePoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListRoutersRequest.prototype.pageToken = null; + AggregatedListResourcePoliciesRequest.prototype.pageToken = null; /** - * AggregatedListRoutersRequest project. + * AggregatedListResourcePoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListRoutersRequest.prototype.project = ""; + AggregatedListResourcePoliciesRequest.prototype.project = ""; /** - * AggregatedListRoutersRequest returnPartialSuccess. + * AggregatedListResourcePoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListRoutersRequest.prototype.returnPartialSuccess = null; + AggregatedListResourcePoliciesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListRoutersRequest serviceProjectNumber. + * AggregatedListResourcePoliciesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListRoutersRequest.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(AggregatedListRoutersRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListRoutersRequest instance using the specified properties. + * Creates a new AggregatedListResourcePoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest instance + * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest instance */ - AggregatedListRoutersRequest.create = function create(properties) { - return new AggregatedListRoutersRequest(properties); + AggregatedListResourcePoliciesRequest.create = function create(properties) { + return new AggregatedListResourcePoliciesRequest(properties); }; /** - * Encodes the specified AggregatedListRoutersRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRoutersRequest.verify|verify} messages. + * Encodes the specified AggregatedListResourcePoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListResourcePoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest} message AggregatedListRoutersRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRoutersRequest.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")) @@ -29819,33 +29819,33 @@ }; /** - * Encodes the specified AggregatedListRoutersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRoutersRequest.verify|verify} messages. + * Encodes the specified AggregatedListResourcePoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListResourcePoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest} message AggregatedListRoutersRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRoutersRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListResourcePoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListRoutersRequest message from the specified reader or buffer. + * Decodes an AggregatedListResourcePoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest + * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest * @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) { + 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.v1.AggregatedListRoutersRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListResourcePoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -29892,30 +29892,30 @@ }; /** - * Decodes an AggregatedListRoutersRequest 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.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest + * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest * @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) { + AggregatedListResourcePoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListRoutersRequest message. + * Verifies an AggregatedListResourcePoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @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) { + AggregatedListResourcePoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -29961,17 +29961,17 @@ }; /** - * Creates an AggregatedListRoutersRequest 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.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest + * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest */ - AggregatedListRoutersRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListRoutersRequest) + AggregatedListResourcePoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListResourcePoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListRoutersRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListResourcePoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -29999,15 +29999,15 @@ }; /** - * Creates a plain object from an AggregatedListRoutersRequest 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.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListRoutersRequest} message AggregatedListRoutersRequest + * @param {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListRoutersRequest.toObject = function toObject(message, options) { + AggregatedListResourcePoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -30057,59 +30057,59 @@ }; /** - * Converts this AggregatedListRoutersRequest to JSON. + * Converts this AggregatedListResourcePoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListRoutersRequest.prototype.toJSON = function toJSON() { + AggregatedListResourcePoliciesRequest.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 AggregatedListResourcePoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListRoutersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListResourcePoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRoutersRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListResourcePoliciesRequest"; }; - return AggregatedListRoutersRequest; + return AggregatedListResourcePoliciesRequest; })(); - v1.AggregatedListSecurityPoliciesRequest = (function() { + v1.AggregatedListRoutersRequest = (function() { /** - * Properties of an AggregatedListSecurityPoliciesRequest. + * Properties of an AggregatedListRoutersRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListSecurityPoliciesRequest. + * Constructs a new AggregatedListRoutersRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListSecurityPoliciesRequest. - * @implements IAggregatedListSecurityPoliciesRequest + * @classdesc Represents an AggregatedListRoutersRequest. + * @implements IAggregatedListRoutersRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest=} [properties] Properties to set */ - function AggregatedListSecurityPoliciesRequest(properties) { + function AggregatedListRoutersRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30117,136 +30117,136 @@ } /** - * AggregatedListSecurityPoliciesRequest filter. + * AggregatedListRoutersRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.filter = null; + AggregatedListRoutersRequest.prototype.filter = null; /** - * AggregatedListSecurityPoliciesRequest includeAllScopes. + * AggregatedListRoutersRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.includeAllScopes = null; + AggregatedListRoutersRequest.prototype.includeAllScopes = null; /** - * AggregatedListSecurityPoliciesRequest maxResults. + * AggregatedListRoutersRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.maxResults = null; + AggregatedListRoutersRequest.prototype.maxResults = null; /** - * AggregatedListSecurityPoliciesRequest orderBy. + * AggregatedListRoutersRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.orderBy = null; + AggregatedListRoutersRequest.prototype.orderBy = null; /** - * AggregatedListSecurityPoliciesRequest pageToken. + * AggregatedListRoutersRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.pageToken = null; + AggregatedListRoutersRequest.prototype.pageToken = null; /** - * AggregatedListSecurityPoliciesRequest project. + * AggregatedListRoutersRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.project = ""; + AggregatedListRoutersRequest.prototype.project = ""; /** - * AggregatedListSecurityPoliciesRequest returnPartialSuccess. + * AggregatedListRoutersRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.returnPartialSuccess = null; + AggregatedListRoutersRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListSecurityPoliciesRequest serviceProjectNumber. + * AggregatedListRoutersRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSecurityPoliciesRequest.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(AggregatedListSecurityPoliciesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListSecurityPoliciesRequest instance using the specified properties. + * Creates a new AggregatedListRoutersRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest instance */ - AggregatedListSecurityPoliciesRequest.create = function create(properties) { - return new AggregatedListSecurityPoliciesRequest(properties); + AggregatedListRoutersRequest.create = function create(properties) { + return new AggregatedListRoutersRequest(properties); }; /** - * Encodes the specified AggregatedListSecurityPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRoutersRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRoutersRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest} message AggregatedListRoutersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSecurityPoliciesRequest.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")) @@ -30269,33 +30269,33 @@ }; /** - * Encodes the specified AggregatedListSecurityPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRoutersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRoutersRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest} message AggregatedListRoutersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSecurityPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRoutersRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListSecurityPoliciesRequest message from the specified reader or buffer. + * Decodes an AggregatedListRoutersRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest * @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) { + 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.v1.AggregatedListSecurityPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListRoutersRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -30342,30 +30342,30 @@ }; /** - * Decodes an AggregatedListSecurityPoliciesRequest 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.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest * @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) { + AggregatedListRoutersRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListSecurityPoliciesRequest message. + * Verifies an AggregatedListRoutersRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @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) { + AggregatedListRoutersRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -30411,17 +30411,17 @@ }; /** - * Creates an AggregatedListSecurityPoliciesRequest 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.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest */ - AggregatedListSecurityPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest) + AggregatedListRoutersRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListRoutersRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListRoutersRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -30449,15 +30449,15 @@ }; /** - * Creates a plain object from an AggregatedListSecurityPoliciesRequest 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.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static - * @param {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest + * @param {google.cloud.compute.v1.AggregatedListRoutersRequest} message AggregatedListRoutersRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListSecurityPoliciesRequest.toObject = function toObject(message, options) { + AggregatedListRoutersRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -30507,59 +30507,59 @@ }; /** - * Converts this AggregatedListSecurityPoliciesRequest to JSON. + * Converts this AggregatedListRoutersRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance * @returns {Object.} JSON object */ - AggregatedListSecurityPoliciesRequest.prototype.toJSON = function toJSON() { + AggregatedListRoutersRequest.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 AggregatedListRoutersRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListSecurityPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRoutersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRoutersRequest"; }; - return AggregatedListSecurityPoliciesRequest; + return AggregatedListRoutersRequest; })(); - v1.AggregatedListServiceAttachmentsRequest = (function() { + v1.AggregatedListSecurityPoliciesRequest = (function() { /** - * Properties of an AggregatedListServiceAttachmentsRequest. + * Properties of an AggregatedListSecurityPoliciesRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListServiceAttachmentsRequest. + * Constructs a new AggregatedListSecurityPoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListServiceAttachmentsRequest. - * @implements IAggregatedListServiceAttachmentsRequest + * @classdesc Represents an AggregatedListSecurityPoliciesRequest. + * @implements IAggregatedListSecurityPoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest=} [properties] Properties to set */ - function AggregatedListServiceAttachmentsRequest(properties) { + function AggregatedListSecurityPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30567,136 +30567,136 @@ } /** - * AggregatedListServiceAttachmentsRequest filter. + * AggregatedListSecurityPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.filter = null; + AggregatedListSecurityPoliciesRequest.prototype.filter = null; /** - * AggregatedListServiceAttachmentsRequest includeAllScopes. + * AggregatedListSecurityPoliciesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.includeAllScopes = null; + AggregatedListSecurityPoliciesRequest.prototype.includeAllScopes = null; /** - * AggregatedListServiceAttachmentsRequest maxResults. + * AggregatedListSecurityPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.maxResults = null; + AggregatedListSecurityPoliciesRequest.prototype.maxResults = null; /** - * AggregatedListServiceAttachmentsRequest orderBy. + * AggregatedListSecurityPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.orderBy = null; + AggregatedListSecurityPoliciesRequest.prototype.orderBy = null; /** - * AggregatedListServiceAttachmentsRequest pageToken. + * AggregatedListSecurityPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.pageToken = null; + AggregatedListSecurityPoliciesRequest.prototype.pageToken = null; /** - * AggregatedListServiceAttachmentsRequest project. + * AggregatedListSecurityPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.project = ""; + AggregatedListSecurityPoliciesRequest.prototype.project = ""; /** - * AggregatedListServiceAttachmentsRequest returnPartialSuccess. + * AggregatedListSecurityPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.returnPartialSuccess = null; + AggregatedListSecurityPoliciesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListServiceAttachmentsRequest serviceProjectNumber. + * AggregatedListSecurityPoliciesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListServiceAttachmentsRequest.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(AggregatedListServiceAttachmentsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListServiceAttachmentsRequest instance using the specified properties. + * Creates a new AggregatedListSecurityPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest instance */ - AggregatedListServiceAttachmentsRequest.create = function create(properties) { - return new AggregatedListServiceAttachmentsRequest(properties); + AggregatedListSecurityPoliciesRequest.create = function create(properties) { + return new AggregatedListSecurityPoliciesRequest(properties); }; /** - * Encodes the specified AggregatedListServiceAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListSecurityPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListServiceAttachmentsRequest.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")) @@ -30719,33 +30719,33 @@ }; /** - * Encodes the specified AggregatedListServiceAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListSecurityPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListServiceAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListSecurityPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListServiceAttachmentsRequest message from the specified reader or buffer. + * Decodes an AggregatedListSecurityPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest * @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) { + 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.v1.AggregatedListServiceAttachmentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -30792,30 +30792,30 @@ }; /** - * Decodes an AggregatedListServiceAttachmentsRequest 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.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest * @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) { + AggregatedListSecurityPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListServiceAttachmentsRequest message. + * Verifies an AggregatedListSecurityPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @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) { + AggregatedListSecurityPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -30861,17 +30861,17 @@ }; /** - * Creates an AggregatedListServiceAttachmentsRequest 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.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest */ - AggregatedListServiceAttachmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest) + AggregatedListSecurityPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -30899,15 +30899,15 @@ }; /** - * Creates a plain object from an AggregatedListServiceAttachmentsRequest 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.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest + * @param {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListServiceAttachmentsRequest.toObject = function toObject(message, options) { + AggregatedListSecurityPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -30957,59 +30957,59 @@ }; /** - * Converts this AggregatedListServiceAttachmentsRequest to JSON. + * Converts this AggregatedListSecurityPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListServiceAttachmentsRequest.prototype.toJSON = function toJSON() { + AggregatedListSecurityPoliciesRequest.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 AggregatedListSecurityPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListServiceAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListSecurityPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest"; }; - return AggregatedListServiceAttachmentsRequest; + return AggregatedListSecurityPoliciesRequest; })(); - v1.AggregatedListSslCertificatesRequest = (function() { + v1.AggregatedListServiceAttachmentsRequest = (function() { /** - * Properties of an AggregatedListSslCertificatesRequest. + * Properties of an AggregatedListServiceAttachmentsRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListSslCertificatesRequest. + * Constructs a new AggregatedListServiceAttachmentsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListSslCertificatesRequest. - * @implements IAggregatedListSslCertificatesRequest + * @classdesc Represents an AggregatedListServiceAttachmentsRequest. + * @implements IAggregatedListServiceAttachmentsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest=} [properties] Properties to set */ - function AggregatedListSslCertificatesRequest(properties) { + function AggregatedListServiceAttachmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31017,136 +31017,136 @@ } /** - * AggregatedListSslCertificatesRequest filter. + * AggregatedListServiceAttachmentsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.filter = null; + AggregatedListServiceAttachmentsRequest.prototype.filter = null; /** - * AggregatedListSslCertificatesRequest includeAllScopes. + * AggregatedListServiceAttachmentsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.includeAllScopes = null; + AggregatedListServiceAttachmentsRequest.prototype.includeAllScopes = null; /** - * AggregatedListSslCertificatesRequest maxResults. + * AggregatedListServiceAttachmentsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.maxResults = null; + AggregatedListServiceAttachmentsRequest.prototype.maxResults = null; /** - * AggregatedListSslCertificatesRequest orderBy. + * AggregatedListServiceAttachmentsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.orderBy = null; + AggregatedListServiceAttachmentsRequest.prototype.orderBy = null; /** - * AggregatedListSslCertificatesRequest pageToken. + * AggregatedListServiceAttachmentsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.pageToken = null; + AggregatedListServiceAttachmentsRequest.prototype.pageToken = null; /** - * AggregatedListSslCertificatesRequest project. + * AggregatedListServiceAttachmentsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.project = ""; + AggregatedListServiceAttachmentsRequest.prototype.project = ""; /** - * AggregatedListSslCertificatesRequest returnPartialSuccess. + * AggregatedListServiceAttachmentsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.returnPartialSuccess = null; + AggregatedListServiceAttachmentsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListSslCertificatesRequest serviceProjectNumber. + * AggregatedListServiceAttachmentsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListSslCertificatesRequest.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(AggregatedListSslCertificatesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListSslCertificatesRequest instance using the specified properties. + * Creates a new AggregatedListServiceAttachmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest instance */ - AggregatedListSslCertificatesRequest.create = function create(properties) { - return new AggregatedListSslCertificatesRequest(properties); + AggregatedListServiceAttachmentsRequest.create = function create(properties) { + return new AggregatedListServiceAttachmentsRequest(properties); }; /** - * Encodes the specified AggregatedListSslCertificatesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslCertificatesRequest.verify|verify} messages. + * Encodes the specified AggregatedListServiceAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSslCertificatesRequest.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")) @@ -31169,33 +31169,33 @@ }; /** - * Encodes the specified AggregatedListSslCertificatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslCertificatesRequest.verify|verify} messages. + * Encodes the specified AggregatedListServiceAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSslCertificatesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListServiceAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListSslCertificatesRequest message from the specified reader or buffer. + * Decodes an AggregatedListServiceAttachmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest + * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest * @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) { + 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.v1.AggregatedListSslCertificatesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -31242,30 +31242,30 @@ }; /** - * Decodes an AggregatedListSslCertificatesRequest 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.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest + * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest * @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) { + AggregatedListServiceAttachmentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListSslCertificatesRequest message. + * Verifies an AggregatedListServiceAttachmentsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @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) { + AggregatedListServiceAttachmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -31311,17 +31311,17 @@ }; /** - * Creates an AggregatedListSslCertificatesRequest 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.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest + * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest */ - AggregatedListSslCertificatesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListSslCertificatesRequest) + AggregatedListServiceAttachmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListSslCertificatesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -31349,15 +31349,15 @@ }; /** - * Creates a plain object from an AggregatedListSslCertificatesRequest 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.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest + * @param {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListSslCertificatesRequest.toObject = function toObject(message, options) { + AggregatedListServiceAttachmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -31407,59 +31407,59 @@ }; /** - * Converts this AggregatedListSslCertificatesRequest to JSON. + * Converts this AggregatedListServiceAttachmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListSslCertificatesRequest.prototype.toJSON = function toJSON() { + AggregatedListServiceAttachmentsRequest.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 AggregatedListServiceAttachmentsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListSslCertificatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListServiceAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSslCertificatesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest"; }; - return AggregatedListSslCertificatesRequest; + return AggregatedListServiceAttachmentsRequest; })(); - v1.AggregatedListSslPoliciesRequest = (function() { + v1.AggregatedListSslCertificatesRequest = (function() { /** - * Properties of an AggregatedListSslPoliciesRequest. + * Properties of an AggregatedListSslCertificatesRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListSslPoliciesRequest. + * Constructs a new AggregatedListSslCertificatesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListSslPoliciesRequest. - * @implements IAggregatedListSslPoliciesRequest + * @classdesc Represents an AggregatedListSslCertificatesRequest. + * @implements IAggregatedListSslCertificatesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest=} [properties] Properties to set */ - function AggregatedListSslPoliciesRequest(properties) { + function AggregatedListSslCertificatesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31467,136 +31467,136 @@ } /** - * AggregatedListSslPoliciesRequest filter. + * AggregatedListSslCertificatesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.filter = null; + AggregatedListSslCertificatesRequest.prototype.filter = null; /** - * AggregatedListSslPoliciesRequest includeAllScopes. + * AggregatedListSslCertificatesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.includeAllScopes = null; + AggregatedListSslCertificatesRequest.prototype.includeAllScopes = null; /** - * AggregatedListSslPoliciesRequest maxResults. + * AggregatedListSslCertificatesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.maxResults = null; + AggregatedListSslCertificatesRequest.prototype.maxResults = null; /** - * AggregatedListSslPoliciesRequest orderBy. + * AggregatedListSslCertificatesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.orderBy = null; + AggregatedListSslCertificatesRequest.prototype.orderBy = null; /** - * AggregatedListSslPoliciesRequest pageToken. + * AggregatedListSslCertificatesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.pageToken = null; + AggregatedListSslCertificatesRequest.prototype.pageToken = null; /** - * AggregatedListSslPoliciesRequest project. + * AggregatedListSslCertificatesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.project = ""; + AggregatedListSslCertificatesRequest.prototype.project = ""; /** - * AggregatedListSslPoliciesRequest returnPartialSuccess. + * AggregatedListSslCertificatesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.returnPartialSuccess = null; + AggregatedListSslCertificatesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListSslPoliciesRequest serviceProjectNumber. + * AggregatedListSslCertificatesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSslPoliciesRequest.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(AggregatedListSslPoliciesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListSslPoliciesRequest instance using the specified properties. + * Creates a new AggregatedListSslCertificatesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest instance */ - AggregatedListSslPoliciesRequest.create = function create(properties) { - return new AggregatedListSslPoliciesRequest(properties); + AggregatedListSslCertificatesRequest.create = function create(properties) { + return new AggregatedListSslCertificatesRequest(properties); }; /** - * Encodes the specified AggregatedListSslPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListSslCertificatesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslCertificatesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSslPoliciesRequest.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")) @@ -31619,33 +31619,33 @@ }; /** - * Encodes the specified AggregatedListSslPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListSslCertificatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslCertificatesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSslPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListSslCertificatesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListSslPoliciesRequest message from the specified reader or buffer. + * Decodes an AggregatedListSslCertificatesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest * @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) { + 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.v1.AggregatedListSslPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListSslCertificatesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -31692,30 +31692,30 @@ }; /** - * Decodes an AggregatedListSslPoliciesRequest 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.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest * @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) { + AggregatedListSslCertificatesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListSslPoliciesRequest message. + * Verifies an AggregatedListSslCertificatesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @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) { + AggregatedListSslCertificatesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -31761,17 +31761,17 @@ }; /** - * Creates an AggregatedListSslPoliciesRequest 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.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest */ - AggregatedListSslPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListSslPoliciesRequest) + AggregatedListSslCertificatesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListSslCertificatesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListSslPoliciesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListSslCertificatesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -31799,15 +31799,15 @@ }; /** - * Creates a plain object from an AggregatedListSslPoliciesRequest 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.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest + * @param {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListSslPoliciesRequest.toObject = function toObject(message, options) { + AggregatedListSslCertificatesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -31857,59 +31857,59 @@ }; /** - * Converts this AggregatedListSslPoliciesRequest to JSON. + * Converts this AggregatedListSslCertificatesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListSslPoliciesRequest.prototype.toJSON = function toJSON() { + AggregatedListSslCertificatesRequest.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 AggregatedListSslCertificatesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListSslPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListSslCertificatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSslPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSslCertificatesRequest"; }; - return AggregatedListSslPoliciesRequest; + return AggregatedListSslCertificatesRequest; })(); - v1.AggregatedListStoragePoolTypesRequest = (function() { + v1.AggregatedListSslPoliciesRequest = (function() { /** - * Properties of an AggregatedListStoragePoolTypesRequest. + * Properties of an AggregatedListSslPoliciesRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListStoragePoolTypesRequest. + * Constructs a new AggregatedListSslPoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListStoragePoolTypesRequest. - * @implements IAggregatedListStoragePoolTypesRequest + * @classdesc Represents an AggregatedListSslPoliciesRequest. + * @implements IAggregatedListSslPoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListStoragePoolTypesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest=} [properties] Properties to set */ - function AggregatedListStoragePoolTypesRequest(properties) { + function AggregatedListSslPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31917,136 +31917,136 @@ } /** - * AggregatedListStoragePoolTypesRequest filter. + * AggregatedListSslPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListStoragePoolTypesRequest.prototype.filter = null; + AggregatedListSslPoliciesRequest.prototype.filter = null; /** - * AggregatedListStoragePoolTypesRequest includeAllScopes. + * AggregatedListSslPoliciesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListStoragePoolTypesRequest.prototype.includeAllScopes = null; + AggregatedListSslPoliciesRequest.prototype.includeAllScopes = null; /** - * AggregatedListStoragePoolTypesRequest maxResults. + * AggregatedListSslPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListStoragePoolTypesRequest.prototype.maxResults = null; + AggregatedListSslPoliciesRequest.prototype.maxResults = null; /** - * AggregatedListStoragePoolTypesRequest orderBy. + * AggregatedListSslPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListStoragePoolTypesRequest.prototype.orderBy = null; + AggregatedListSslPoliciesRequest.prototype.orderBy = null; /** - * AggregatedListStoragePoolTypesRequest pageToken. + * AggregatedListSslPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListStoragePoolTypesRequest.prototype.pageToken = null; + AggregatedListSslPoliciesRequest.prototype.pageToken = null; /** - * AggregatedListStoragePoolTypesRequest project. + * AggregatedListSslPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListStoragePoolTypesRequest.prototype.project = ""; + AggregatedListSslPoliciesRequest.prototype.project = ""; /** - * AggregatedListStoragePoolTypesRequest returnPartialSuccess. + * AggregatedListSslPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListStoragePoolTypesRequest.prototype.returnPartialSuccess = null; + AggregatedListSslPoliciesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListStoragePoolTypesRequest serviceProjectNumber. + * AggregatedListSslPoliciesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListStoragePoolTypesRequest.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(AggregatedListStoragePoolTypesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListStoragePoolTypesRequest instance using the specified properties. + * Creates a new AggregatedListSslPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListStoragePoolTypesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest} AggregatedListStoragePoolTypesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest instance */ - AggregatedListStoragePoolTypesRequest.create = function create(properties) { - return new AggregatedListStoragePoolTypesRequest(properties); + AggregatedListSslPoliciesRequest.create = function create(properties) { + return new AggregatedListSslPoliciesRequest(properties); }; /** - * Encodes the specified AggregatedListStoragePoolTypesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest.verify|verify} messages. + * Encodes the specified AggregatedListSslPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListStoragePoolTypesRequest} message AggregatedListStoragePoolTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListStoragePoolTypesRequest.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")) @@ -32069,33 +32069,33 @@ }; /** - * Encodes the specified AggregatedListStoragePoolTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest.verify|verify} messages. + * Encodes the specified AggregatedListSslPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListStoragePoolTypesRequest} message AggregatedListStoragePoolTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListStoragePoolTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListSslPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListStoragePoolTypesRequest message from the specified reader or buffer. + * Decodes an AggregatedListSslPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListStoragePoolTypesRequest} AggregatedListStoragePoolTypesRequest + * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest * @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) { + 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.v1.AggregatedListStoragePoolTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListSslPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -32142,30 +32142,30 @@ }; /** - * Decodes an AggregatedListStoragePoolTypesRequest 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.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest} AggregatedListStoragePoolTypesRequest + * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest * @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) { + AggregatedListSslPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListStoragePoolTypesRequest message. + * Verifies an AggregatedListSslPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @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) { + AggregatedListSslPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -32211,17 +32211,17 @@ }; /** - * Creates an AggregatedListStoragePoolTypesRequest 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.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest} AggregatedListStoragePoolTypesRequest + * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest */ - AggregatedListStoragePoolTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest) + AggregatedListSslPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListSslPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListSslPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -32249,15 +32249,15 @@ }; /** - * Creates a plain object from an AggregatedListStoragePoolTypesRequest 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.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest} message AggregatedListStoragePoolTypesRequest + * @param {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListStoragePoolTypesRequest.toObject = function toObject(message, options) { + AggregatedListSslPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -32307,59 +32307,59 @@ }; /** - * Converts this AggregatedListStoragePoolTypesRequest to JSON. + * Converts this AggregatedListSslPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListStoragePoolTypesRequest.prototype.toJSON = function toJSON() { + AggregatedListSslPoliciesRequest.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 AggregatedListSslPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListStoragePoolTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListSslPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSslPoliciesRequest"; }; - return AggregatedListStoragePoolTypesRequest; + return AggregatedListSslPoliciesRequest; })(); - v1.AggregatedListStoragePoolsRequest = (function() { + v1.AggregatedListStoragePoolTypesRequest = (function() { /** - * Properties of an AggregatedListStoragePoolsRequest. + * Properties of an AggregatedListStoragePoolTypesRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListStoragePoolsRequest. + * Constructs a new AggregatedListStoragePoolTypesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListStoragePoolsRequest. - * @implements IAggregatedListStoragePoolsRequest + * @classdesc Represents an AggregatedListStoragePoolTypesRequest. + * @implements IAggregatedListStoragePoolTypesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListStoragePoolsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListStoragePoolTypesRequest=} [properties] Properties to set */ - function AggregatedListStoragePoolsRequest(properties) { + function AggregatedListStoragePoolTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -32367,136 +32367,136 @@ } /** - * AggregatedListStoragePoolsRequest filter. + * AggregatedListStoragePoolTypesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListStoragePoolsRequest.prototype.filter = null; + AggregatedListStoragePoolTypesRequest.prototype.filter = null; /** - * AggregatedListStoragePoolsRequest includeAllScopes. + * AggregatedListStoragePoolTypesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListStoragePoolsRequest.prototype.includeAllScopes = null; + AggregatedListStoragePoolTypesRequest.prototype.includeAllScopes = null; /** - * AggregatedListStoragePoolsRequest maxResults. + * AggregatedListStoragePoolTypesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListStoragePoolsRequest.prototype.maxResults = null; + AggregatedListStoragePoolTypesRequest.prototype.maxResults = null; /** - * AggregatedListStoragePoolsRequest orderBy. + * AggregatedListStoragePoolTypesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListStoragePoolsRequest.prototype.orderBy = null; + AggregatedListStoragePoolTypesRequest.prototype.orderBy = null; /** - * AggregatedListStoragePoolsRequest pageToken. + * AggregatedListStoragePoolTypesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListStoragePoolsRequest.prototype.pageToken = null; + AggregatedListStoragePoolTypesRequest.prototype.pageToken = null; /** - * AggregatedListStoragePoolsRequest project. + * AggregatedListStoragePoolTypesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListStoragePoolsRequest.prototype.project = ""; + AggregatedListStoragePoolTypesRequest.prototype.project = ""; /** - * AggregatedListStoragePoolsRequest returnPartialSuccess. + * AggregatedListStoragePoolTypesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListStoragePoolsRequest.prototype.returnPartialSuccess = null; + AggregatedListStoragePoolTypesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListStoragePoolsRequest serviceProjectNumber. + * AggregatedListStoragePoolTypesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListStoragePoolsRequest.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(AggregatedListStoragePoolsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListStoragePoolsRequest instance using the specified properties. + * Creates a new AggregatedListStoragePoolTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListStoragePoolsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListStoragePoolsRequest} AggregatedListStoragePoolsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListStoragePoolTypesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest} AggregatedListStoragePoolTypesRequest instance */ - AggregatedListStoragePoolsRequest.create = function create(properties) { - return new AggregatedListStoragePoolsRequest(properties); + AggregatedListStoragePoolTypesRequest.create = function create(properties) { + return new AggregatedListStoragePoolTypesRequest(properties); }; /** - * Encodes the specified AggregatedListStoragePoolsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListStoragePoolsRequest.verify|verify} messages. + * Encodes the specified AggregatedListStoragePoolTypesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListStoragePoolsRequest} message AggregatedListStoragePoolsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListStoragePoolTypesRequest} message AggregatedListStoragePoolTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListStoragePoolsRequest.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")) @@ -32519,33 +32519,33 @@ }; /** - * Encodes the specified AggregatedListStoragePoolsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListStoragePoolsRequest.verify|verify} messages. + * Encodes the specified AggregatedListStoragePoolTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListStoragePoolsRequest} message AggregatedListStoragePoolsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListStoragePoolTypesRequest} message AggregatedListStoragePoolTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListStoragePoolsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListStoragePoolTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListStoragePoolsRequest message from the specified reader or buffer. + * Decodes an AggregatedListStoragePoolTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListStoragePoolsRequest} AggregatedListStoragePoolsRequest + * @returns {google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest} AggregatedListStoragePoolTypesRequest * @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) { + 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.v1.AggregatedListStoragePoolsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -32592,30 +32592,30 @@ }; /** - * Decodes an AggregatedListStoragePoolsRequest 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.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListStoragePoolsRequest} AggregatedListStoragePoolsRequest + * @returns {google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest} AggregatedListStoragePoolTypesRequest * @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) { + AggregatedListStoragePoolTypesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListStoragePoolsRequest message. + * Verifies an AggregatedListStoragePoolTypesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @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) { + AggregatedListStoragePoolTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -32661,17 +32661,17 @@ }; /** - * Creates an AggregatedListStoragePoolsRequest 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.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListStoragePoolsRequest} AggregatedListStoragePoolsRequest + * @returns {google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest} AggregatedListStoragePoolTypesRequest */ - AggregatedListStoragePoolsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListStoragePoolsRequest) + AggregatedListStoragePoolTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListStoragePoolsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -32699,15 +32699,15 @@ }; /** - * Creates a plain object from an AggregatedListStoragePoolsRequest 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.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListStoragePoolsRequest} message AggregatedListStoragePoolsRequest + * @param {google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest} message AggregatedListStoragePoolTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListStoragePoolsRequest.toObject = function toObject(message, options) { + AggregatedListStoragePoolTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -32757,60 +32757,59 @@ }; /** - * Converts this AggregatedListStoragePoolsRequest to JSON. + * Converts this AggregatedListStoragePoolTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListStoragePoolsRequest.prototype.toJSON = function toJSON() { + AggregatedListStoragePoolTypesRequest.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 AggregatedListStoragePoolTypesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListStoragePoolsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListStoragePoolTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListStoragePoolsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest"; }; - return AggregatedListStoragePoolsRequest; + return AggregatedListStoragePoolTypesRequest; })(); - v1.AggregatedListSubnetworksRequest = (function() { + v1.AggregatedListStoragePoolsRequest = (function() { /** - * Properties of an AggregatedListSubnetworksRequest. + * Properties of an AggregatedListStoragePoolsRequest. * @memberof google.cloud.compute.v1 - * @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 + * @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 AggregatedListSubnetworksRequest. + * Constructs a new AggregatedListStoragePoolsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListSubnetworksRequest. - * @implements IAggregatedListSubnetworksRequest + * @classdesc Represents an AggregatedListStoragePoolsRequest. + * @implements IAggregatedListStoragePoolsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListStoragePoolsRequest=} [properties] Properties to set */ - function AggregatedListSubnetworksRequest(properties) { + function AggregatedListStoragePoolsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -32818,158 +32817,142 @@ } /** - * AggregatedListSubnetworksRequest filter. + * AggregatedListStoragePoolsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.filter = null; + AggregatedListStoragePoolsRequest.prototype.filter = null; /** - * AggregatedListSubnetworksRequest includeAllScopes. + * AggregatedListStoragePoolsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.includeAllScopes = null; + AggregatedListStoragePoolsRequest.prototype.includeAllScopes = null; /** - * AggregatedListSubnetworksRequest maxResults. + * AggregatedListStoragePoolsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.maxResults = null; + AggregatedListStoragePoolsRequest.prototype.maxResults = null; /** - * AggregatedListSubnetworksRequest orderBy. + * AggregatedListStoragePoolsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.orderBy = null; + AggregatedListStoragePoolsRequest.prototype.orderBy = null; /** - * AggregatedListSubnetworksRequest pageToken. + * AggregatedListStoragePoolsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.pageToken = null; + AggregatedListStoragePoolsRequest.prototype.pageToken = null; /** - * AggregatedListSubnetworksRequest project. + * AggregatedListStoragePoolsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.project = ""; + AggregatedListStoragePoolsRequest.prototype.project = ""; /** - * AggregatedListSubnetworksRequest returnPartialSuccess. + * AggregatedListStoragePoolsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.returnPartialSuccess = null; + AggregatedListStoragePoolsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListSubnetworksRequest serviceProjectNumber. + * AggregatedListStoragePoolsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest - * @instance - */ - AggregatedListSubnetworksRequest.prototype.serviceProjectNumber = null; - - /** - * AggregatedListSubnetworksRequest views. - * @member {string|null|undefined} views - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.views = null; + AggregatedListStoragePoolsRequest.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(AggregatedListStoragePoolsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListStoragePoolsRequest.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 AggregatedListSubnetworksRequest instance using the specified properties. + * Creates a new AggregatedListStoragePoolsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest instance + * @param {google.cloud.compute.v1.IAggregatedListStoragePoolsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListStoragePoolsRequest} AggregatedListStoragePoolsRequest instance */ - AggregatedListSubnetworksRequest.create = function create(properties) { - return new AggregatedListSubnetworksRequest(properties); + AggregatedListStoragePoolsRequest.create = function create(properties) { + return new AggregatedListStoragePoolsRequest(properties); }; /** - * Encodes the specified AggregatedListSubnetworksRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSubnetworksRequest.verify|verify} messages. + * Encodes the specified AggregatedListStoragePoolsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListStoragePoolsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListStoragePoolsRequest} message AggregatedListStoragePoolsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSubnetworksRequest.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")) 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")) @@ -32986,33 +32969,33 @@ }; /** - * Encodes the specified AggregatedListSubnetworksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSubnetworksRequest.verify|verify} messages. + * Encodes the specified AggregatedListStoragePoolsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListStoragePoolsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListStoragePoolsRequest} message AggregatedListStoragePoolsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSubnetworksRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListStoragePoolsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListSubnetworksRequest message from the specified reader or buffer. + * Decodes an AggregatedListStoragePoolsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest + * @returns {google.cloud.compute.v1.AggregatedListStoragePoolsRequest} AggregatedListStoragePoolsRequest * @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) { + 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.v1.AggregatedListSubnetworksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListStoragePoolsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -33050,10 +33033,6 @@ message.serviceProjectNumber = reader.int64(); break; } - case 112204398: { - message.views = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -33063,30 +33042,30 @@ }; /** - * Decodes an AggregatedListSubnetworksRequest 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.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest + * @returns {google.cloud.compute.v1.AggregatedListStoragePoolsRequest} AggregatedListStoragePoolsRequest * @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) { + AggregatedListStoragePoolsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListSubnetworksRequest message. + * Verifies an AggregatedListStoragePoolsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @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) { + AggregatedListStoragePoolsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -33128,26 +33107,21 @@ 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 AggregatedListSubnetworksRequest 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.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest + * @returns {google.cloud.compute.v1.AggregatedListStoragePoolsRequest} AggregatedListStoragePoolsRequest */ - AggregatedListSubnetworksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListSubnetworksRequest) + AggregatedListStoragePoolsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListStoragePoolsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListSubnetworksRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListStoragePoolsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -33171,21 +33145,19 @@ 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 AggregatedListSubnetworksRequest 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.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest + * @param {google.cloud.compute.v1.AggregatedListStoragePoolsRequest} message AggregatedListStoragePoolsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListSubnetworksRequest.toObject = function toObject(message, options) { + AggregatedListStoragePoolsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -33201,11 +33173,6 @@ 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) @@ -33240,75 +33207,60 @@ }; /** - * Converts this AggregatedListSubnetworksRequest to JSON. + * Converts this AggregatedListStoragePoolsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListSubnetworksRequest.prototype.toJSON = function toJSON() { + AggregatedListStoragePoolsRequest.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 AggregatedListStoragePoolsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListSubnetworksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListStoragePoolsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSubnetworksRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListStoragePoolsRequest"; }; - /** - * Views enum. - * @name google.cloud.compute.v1.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; + return AggregatedListStoragePoolsRequest; })(); - v1.AggregatedListTargetHttpProxiesRequest = (function() { + v1.AggregatedListSubnetworksRequest = (function() { /** - * Properties of an AggregatedListTargetHttpProxiesRequest. + * Properties of an AggregatedListSubnetworksRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListTargetHttpProxiesRequest. + * Constructs a new AggregatedListSubnetworksRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListTargetHttpProxiesRequest. - * @implements IAggregatedListTargetHttpProxiesRequest + * @classdesc Represents an AggregatedListSubnetworksRequest. + * @implements IAggregatedListSubnetworksRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest=} [properties] Properties to set */ - function AggregatedListTargetHttpProxiesRequest(properties) { + function AggregatedListSubnetworksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33316,142 +33268,158 @@ } /** - * AggregatedListTargetHttpProxiesRequest filter. + * AggregatedListSubnetworksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.filter = null; + AggregatedListSubnetworksRequest.prototype.filter = null; /** - * AggregatedListTargetHttpProxiesRequest includeAllScopes. + * AggregatedListSubnetworksRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.includeAllScopes = null; + AggregatedListSubnetworksRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetHttpProxiesRequest maxResults. + * AggregatedListSubnetworksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.maxResults = null; + AggregatedListSubnetworksRequest.prototype.maxResults = null; /** - * AggregatedListTargetHttpProxiesRequest orderBy. + * AggregatedListSubnetworksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.orderBy = null; + AggregatedListSubnetworksRequest.prototype.orderBy = null; /** - * AggregatedListTargetHttpProxiesRequest pageToken. + * AggregatedListSubnetworksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.pageToken = null; + AggregatedListSubnetworksRequest.prototype.pageToken = null; /** - * AggregatedListTargetHttpProxiesRequest project. + * AggregatedListSubnetworksRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.project = ""; + AggregatedListSubnetworksRequest.prototype.project = ""; /** - * AggregatedListTargetHttpProxiesRequest returnPartialSuccess. + * AggregatedListSubnetworksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.returnPartialSuccess = null; + AggregatedListSubnetworksRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListTargetHttpProxiesRequest serviceProjectNumber. + * AggregatedListSubnetworksRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.serviceProjectNumber = null; + AggregatedListSubnetworksRequest.prototype.serviceProjectNumber = null; + + /** + * AggregatedListSubnetworksRequest views. + * @member {string|null|undefined} views + * @memberof google.cloud.compute.v1.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(AggregatedListTargetHttpProxiesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.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 AggregatedListTargetHttpProxiesRequest instance using the specified properties. + * Creates a new AggregatedListSubnetworksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest instance */ - AggregatedListTargetHttpProxiesRequest.create = function create(properties) { - return new AggregatedListTargetHttpProxiesRequest(properties); + AggregatedListSubnetworksRequest.create = function create(properties) { + return new AggregatedListSubnetworksRequest(properties); }; /** - * Encodes the specified AggregatedListTargetHttpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest.verify|verify} messages. + * Encodes the specified AggregatedListSubnetworksRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSubnetworksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetHttpProxiesRequest.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")) @@ -33468,33 +33436,33 @@ }; /** - * Encodes the specified AggregatedListTargetHttpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest.verify|verify} messages. + * Encodes the specified AggregatedListSubnetworksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSubnetworksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetHttpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListSubnetworksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetHttpProxiesRequest message from the specified reader or buffer. + * Decodes an AggregatedListSubnetworksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest * @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) { + 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.v1.AggregatedListTargetHttpProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListSubnetworksRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -33532,6 +33500,10 @@ message.serviceProjectNumber = reader.int64(); break; } + case 112204398: { + message.views = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -33541,30 +33513,30 @@ }; /** - * Decodes an AggregatedListTargetHttpProxiesRequest 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.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest * @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) { + AggregatedListSubnetworksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListTargetHttpProxiesRequest message. + * Verifies an AggregatedListSubnetworksRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @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) { + AggregatedListSubnetworksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -33606,21 +33578,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 AggregatedListTargetHttpProxiesRequest 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.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest */ - AggregatedListTargetHttpProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest) + AggregatedListSubnetworksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListSubnetworksRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListSubnetworksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -33644,19 +33621,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 AggregatedListTargetHttpProxiesRequest 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.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static - * @param {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest + * @param {google.cloud.compute.v1.AggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetHttpProxiesRequest.toObject = function toObject(message, options) { + AggregatedListSubnetworksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -33672,6 +33651,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) @@ -33706,59 +33690,75 @@ }; /** - * Converts this AggregatedListTargetHttpProxiesRequest to JSON. + * Converts this AggregatedListSubnetworksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetHttpProxiesRequest.prototype.toJSON = function toJSON() { + AggregatedListSubnetworksRequest.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 AggregatedListSubnetworksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetHttpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListSubnetworksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSubnetworksRequest"; }; - return AggregatedListTargetHttpProxiesRequest; + /** + * Views enum. + * @name google.cloud.compute.v1.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; })(); - v1.AggregatedListTargetHttpsProxiesRequest = (function() { + v1.AggregatedListTargetHttpProxiesRequest = (function() { /** - * Properties of an AggregatedListTargetHttpsProxiesRequest. + * Properties of an AggregatedListTargetHttpProxiesRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListTargetHttpsProxiesRequest. + * Constructs a new AggregatedListTargetHttpProxiesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListTargetHttpsProxiesRequest. - * @implements IAggregatedListTargetHttpsProxiesRequest + * @classdesc Represents an AggregatedListTargetHttpProxiesRequest. + * @implements IAggregatedListTargetHttpProxiesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest=} [properties] Properties to set */ - function AggregatedListTargetHttpsProxiesRequest(properties) { + function AggregatedListTargetHttpProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33766,136 +33766,136 @@ } /** - * AggregatedListTargetHttpsProxiesRequest filter. + * AggregatedListTargetHttpProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.filter = null; + AggregatedListTargetHttpProxiesRequest.prototype.filter = null; /** - * AggregatedListTargetHttpsProxiesRequest includeAllScopes. + * AggregatedListTargetHttpProxiesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.includeAllScopes = null; + AggregatedListTargetHttpProxiesRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetHttpsProxiesRequest maxResults. + * AggregatedListTargetHttpProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.maxResults = null; + AggregatedListTargetHttpProxiesRequest.prototype.maxResults = null; /** - * AggregatedListTargetHttpsProxiesRequest orderBy. + * AggregatedListTargetHttpProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.orderBy = null; + AggregatedListTargetHttpProxiesRequest.prototype.orderBy = null; /** - * AggregatedListTargetHttpsProxiesRequest pageToken. + * AggregatedListTargetHttpProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.pageToken = null; + AggregatedListTargetHttpProxiesRequest.prototype.pageToken = null; /** - * AggregatedListTargetHttpsProxiesRequest project. + * AggregatedListTargetHttpProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.project = ""; + AggregatedListTargetHttpProxiesRequest.prototype.project = ""; /** - * AggregatedListTargetHttpsProxiesRequest returnPartialSuccess. + * AggregatedListTargetHttpProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetHttpProxiesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListTargetHttpsProxiesRequest serviceProjectNumber. + * AggregatedListTargetHttpProxiesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.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(AggregatedListTargetHttpsProxiesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetHttpsProxiesRequest instance using the specified properties. + * Creates a new AggregatedListTargetHttpProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest instance */ - AggregatedListTargetHttpsProxiesRequest.create = function create(properties) { - return new AggregatedListTargetHttpsProxiesRequest(properties); + AggregatedListTargetHttpProxiesRequest.create = function create(properties) { + return new AggregatedListTargetHttpProxiesRequest(properties); }; /** - * Encodes the specified AggregatedListTargetHttpsProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetHttpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetHttpsProxiesRequest.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")) @@ -33918,33 +33918,33 @@ }; /** - * Encodes the specified AggregatedListTargetHttpsProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetHttpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetHttpsProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListTargetHttpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetHttpsProxiesRequest message from the specified reader or buffer. + * Decodes an AggregatedListTargetHttpProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest * @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) { + 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.v1.AggregatedListTargetHttpsProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -33991,30 +33991,30 @@ }; /** - * Decodes an AggregatedListTargetHttpsProxiesRequest 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.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest * @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) { + AggregatedListTargetHttpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListTargetHttpsProxiesRequest message. + * Verifies an AggregatedListTargetHttpProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @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) { + AggregatedListTargetHttpProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -34060,17 +34060,17 @@ }; /** - * Creates an AggregatedListTargetHttpsProxiesRequest 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.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest */ - AggregatedListTargetHttpsProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest) + AggregatedListTargetHttpProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -34098,15 +34098,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetHttpsProxiesRequest 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.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest + * @param {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetHttpsProxiesRequest.toObject = function toObject(message, options) { + AggregatedListTargetHttpProxiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -34156,59 +34156,59 @@ }; /** - * Converts this AggregatedListTargetHttpsProxiesRequest to JSON. + * Converts this AggregatedListTargetHttpProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetHttpsProxiesRequest.prototype.toJSON = function toJSON() { + AggregatedListTargetHttpProxiesRequest.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 AggregatedListTargetHttpProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetHttpsProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListTargetHttpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest"; }; - return AggregatedListTargetHttpsProxiesRequest; + return AggregatedListTargetHttpProxiesRequest; })(); - v1.AggregatedListTargetInstancesRequest = (function() { + v1.AggregatedListTargetHttpsProxiesRequest = (function() { /** - * Properties of an AggregatedListTargetInstancesRequest. + * Properties of an AggregatedListTargetHttpsProxiesRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListTargetInstancesRequest. + * Constructs a new AggregatedListTargetHttpsProxiesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListTargetInstancesRequest. - * @implements IAggregatedListTargetInstancesRequest + * @classdesc Represents an AggregatedListTargetHttpsProxiesRequest. + * @implements IAggregatedListTargetHttpsProxiesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest=} [properties] Properties to set */ - function AggregatedListTargetInstancesRequest(properties) { + function AggregatedListTargetHttpsProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34216,136 +34216,136 @@ } /** - * AggregatedListTargetInstancesRequest filter. + * AggregatedListTargetHttpsProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.filter = null; + AggregatedListTargetHttpsProxiesRequest.prototype.filter = null; /** - * AggregatedListTargetInstancesRequest includeAllScopes. + * AggregatedListTargetHttpsProxiesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.includeAllScopes = null; + AggregatedListTargetHttpsProxiesRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetInstancesRequest maxResults. + * AggregatedListTargetHttpsProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.maxResults = null; + AggregatedListTargetHttpsProxiesRequest.prototype.maxResults = null; /** - * AggregatedListTargetInstancesRequest orderBy. + * AggregatedListTargetHttpsProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.orderBy = null; + AggregatedListTargetHttpsProxiesRequest.prototype.orderBy = null; /** - * AggregatedListTargetInstancesRequest pageToken. + * AggregatedListTargetHttpsProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.pageToken = null; + AggregatedListTargetHttpsProxiesRequest.prototype.pageToken = null; /** - * AggregatedListTargetInstancesRequest project. + * AggregatedListTargetHttpsProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.project = ""; + AggregatedListTargetHttpsProxiesRequest.prototype.project = ""; /** - * AggregatedListTargetInstancesRequest returnPartialSuccess. + * AggregatedListTargetHttpsProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetHttpsProxiesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListTargetInstancesRequest serviceProjectNumber. + * AggregatedListTargetHttpsProxiesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetInstancesRequest.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(AggregatedListTargetInstancesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetInstancesRequest instance using the specified properties. + * Creates a new AggregatedListTargetHttpsProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest instance */ - AggregatedListTargetInstancesRequest.create = function create(properties) { - return new AggregatedListTargetInstancesRequest(properties); + AggregatedListTargetHttpsProxiesRequest.create = function create(properties) { + return new AggregatedListTargetHttpsProxiesRequest(properties); }; /** - * Encodes the specified AggregatedListTargetInstancesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetInstancesRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetHttpsProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetInstancesRequest.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")) @@ -34368,33 +34368,33 @@ }; /** - * Encodes the specified AggregatedListTargetInstancesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetInstancesRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetHttpsProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetInstancesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListTargetHttpsProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetInstancesRequest message from the specified reader or buffer. + * Decodes an AggregatedListTargetHttpsProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest * @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) { + 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.v1.AggregatedListTargetInstancesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -34441,30 +34441,30 @@ }; /** - * Decodes an AggregatedListTargetInstancesRequest 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.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest * @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) { + AggregatedListTargetHttpsProxiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListTargetInstancesRequest message. + * Verifies an AggregatedListTargetHttpsProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @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) { + AggregatedListTargetHttpsProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -34510,17 +34510,17 @@ }; /** - * Creates an AggregatedListTargetInstancesRequest 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.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest */ - AggregatedListTargetInstancesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetInstancesRequest) + AggregatedListTargetHttpsProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListTargetInstancesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -34548,15 +34548,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetInstancesRequest 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.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest + * @param {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetInstancesRequest.toObject = function toObject(message, options) { + AggregatedListTargetHttpsProxiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -34606,59 +34606,59 @@ }; /** - * Converts this AggregatedListTargetInstancesRequest to JSON. + * Converts this AggregatedListTargetHttpsProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetInstancesRequest.prototype.toJSON = function toJSON() { + AggregatedListTargetHttpsProxiesRequest.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 AggregatedListTargetHttpsProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetInstancesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListTargetHttpsProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetInstancesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest"; }; - return AggregatedListTargetInstancesRequest; + return AggregatedListTargetHttpsProxiesRequest; })(); - v1.AggregatedListTargetPoolsRequest = (function() { + v1.AggregatedListTargetInstancesRequest = (function() { /** - * Properties of an AggregatedListTargetPoolsRequest. + * Properties of an AggregatedListTargetInstancesRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListTargetPoolsRequest. + * Constructs a new AggregatedListTargetInstancesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListTargetPoolsRequest. - * @implements IAggregatedListTargetPoolsRequest + * @classdesc Represents an AggregatedListTargetInstancesRequest. + * @implements IAggregatedListTargetInstancesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest=} [properties] Properties to set */ - function AggregatedListTargetPoolsRequest(properties) { + function AggregatedListTargetInstancesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34666,136 +34666,136 @@ } /** - * AggregatedListTargetPoolsRequest filter. + * AggregatedListTargetInstancesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.filter = null; + AggregatedListTargetInstancesRequest.prototype.filter = null; /** - * AggregatedListTargetPoolsRequest includeAllScopes. + * AggregatedListTargetInstancesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.includeAllScopes = null; + AggregatedListTargetInstancesRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetPoolsRequest maxResults. + * AggregatedListTargetInstancesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.maxResults = null; + AggregatedListTargetInstancesRequest.prototype.maxResults = null; /** - * AggregatedListTargetPoolsRequest orderBy. + * AggregatedListTargetInstancesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.orderBy = null; + AggregatedListTargetInstancesRequest.prototype.orderBy = null; /** - * AggregatedListTargetPoolsRequest pageToken. + * AggregatedListTargetInstancesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.pageToken = null; + AggregatedListTargetInstancesRequest.prototype.pageToken = null; /** - * AggregatedListTargetPoolsRequest project. + * AggregatedListTargetInstancesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.project = ""; + AggregatedListTargetInstancesRequest.prototype.project = ""; /** - * AggregatedListTargetPoolsRequest returnPartialSuccess. + * AggregatedListTargetInstancesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetInstancesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListTargetPoolsRequest serviceProjectNumber. + * AggregatedListTargetInstancesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListTargetPoolsRequest.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(AggregatedListTargetPoolsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetPoolsRequest instance using the specified properties. + * Creates a new AggregatedListTargetInstancesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest instance */ - AggregatedListTargetPoolsRequest.create = function create(properties) { - return new AggregatedListTargetPoolsRequest(properties); + AggregatedListTargetInstancesRequest.create = function create(properties) { + return new AggregatedListTargetInstancesRequest(properties); }; /** - * Encodes the specified AggregatedListTargetPoolsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetPoolsRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetInstancesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetInstancesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetPoolsRequest.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")) @@ -34818,33 +34818,33 @@ }; /** - * Encodes the specified AggregatedListTargetPoolsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetPoolsRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetInstancesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetInstancesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetPoolsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListTargetInstancesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetPoolsRequest message from the specified reader or buffer. + * Decodes an AggregatedListTargetInstancesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest * @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) { + 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.v1.AggregatedListTargetPoolsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetInstancesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -34891,30 +34891,30 @@ }; /** - * Decodes an AggregatedListTargetPoolsRequest 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.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest * @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) { + AggregatedListTargetInstancesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListTargetPoolsRequest message. + * Verifies an AggregatedListTargetInstancesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @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) { + AggregatedListTargetInstancesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -34960,17 +34960,17 @@ }; /** - * Creates an AggregatedListTargetPoolsRequest 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.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest */ - AggregatedListTargetPoolsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetPoolsRequest) + AggregatedListTargetInstancesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetInstancesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListTargetPoolsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListTargetInstancesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -34998,15 +34998,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetPoolsRequest 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.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest + * @param {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetPoolsRequest.toObject = function toObject(message, options) { + AggregatedListTargetInstancesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -35056,59 +35056,59 @@ }; /** - * Converts this AggregatedListTargetPoolsRequest to JSON. + * Converts this AggregatedListTargetInstancesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetPoolsRequest.prototype.toJSON = function toJSON() { + AggregatedListTargetInstancesRequest.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 AggregatedListTargetInstancesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetPoolsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListTargetInstancesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetPoolsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetInstancesRequest"; }; - return AggregatedListTargetPoolsRequest; + return AggregatedListTargetInstancesRequest; })(); - v1.AggregatedListTargetTcpProxiesRequest = (function() { + v1.AggregatedListTargetPoolsRequest = (function() { /** - * Properties of an AggregatedListTargetTcpProxiesRequest. + * Properties of an AggregatedListTargetPoolsRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListTargetTcpProxiesRequest. + * Constructs a new AggregatedListTargetPoolsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListTargetTcpProxiesRequest. - * @implements IAggregatedListTargetTcpProxiesRequest + * @classdesc Represents an AggregatedListTargetPoolsRequest. + * @implements IAggregatedListTargetPoolsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest=} [properties] Properties to set */ - function AggregatedListTargetTcpProxiesRequest(properties) { + function AggregatedListTargetPoolsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35116,136 +35116,136 @@ } /** - * AggregatedListTargetTcpProxiesRequest filter. + * AggregatedListTargetPoolsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.filter = null; + AggregatedListTargetPoolsRequest.prototype.filter = null; /** - * AggregatedListTargetTcpProxiesRequest includeAllScopes. + * AggregatedListTargetPoolsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.includeAllScopes = null; + AggregatedListTargetPoolsRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetTcpProxiesRequest maxResults. + * AggregatedListTargetPoolsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.maxResults = null; + AggregatedListTargetPoolsRequest.prototype.maxResults = null; /** - * AggregatedListTargetTcpProxiesRequest orderBy. + * AggregatedListTargetPoolsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.orderBy = null; + AggregatedListTargetPoolsRequest.prototype.orderBy = null; /** - * AggregatedListTargetTcpProxiesRequest pageToken. + * AggregatedListTargetPoolsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.pageToken = null; + AggregatedListTargetPoolsRequest.prototype.pageToken = null; /** - * AggregatedListTargetTcpProxiesRequest project. + * AggregatedListTargetPoolsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.project = ""; + AggregatedListTargetPoolsRequest.prototype.project = ""; /** - * AggregatedListTargetTcpProxiesRequest returnPartialSuccess. + * AggregatedListTargetPoolsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetPoolsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListTargetTcpProxiesRequest serviceProjectNumber. + * AggregatedListTargetPoolsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.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(AggregatedListTargetTcpProxiesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetTcpProxiesRequest instance using the specified properties. + * Creates a new AggregatedListTargetPoolsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest instance */ - AggregatedListTargetTcpProxiesRequest.create = function create(properties) { - return new AggregatedListTargetTcpProxiesRequest(properties); + AggregatedListTargetPoolsRequest.create = function create(properties) { + return new AggregatedListTargetPoolsRequest(properties); }; /** - * Encodes the specified AggregatedListTargetTcpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetPoolsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetPoolsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetTcpProxiesRequest.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")) @@ -35268,33 +35268,33 @@ }; /** - * Encodes the specified AggregatedListTargetTcpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetPoolsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetPoolsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetTcpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListTargetPoolsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetTcpProxiesRequest message from the specified reader or buffer. + * Decodes an AggregatedListTargetPoolsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest * @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) { + 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.v1.AggregatedListTargetTcpProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetPoolsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -35341,30 +35341,30 @@ }; /** - * Decodes an AggregatedListTargetTcpProxiesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListTargetPoolsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest * @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) { + AggregatedListTargetPoolsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListTargetTcpProxiesRequest message. + * Verifies an AggregatedListTargetPoolsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @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) { + AggregatedListTargetPoolsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -35410,17 +35410,17 @@ }; /** - * Creates an AggregatedListTargetTcpProxiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListTargetPoolsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest */ - AggregatedListTargetTcpProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest) + AggregatedListTargetPoolsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetPoolsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListTargetPoolsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -35448,15 +35448,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetTcpProxiesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListTargetPoolsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest + * @param {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetTcpProxiesRequest.toObject = function toObject(message, options) { + AggregatedListTargetPoolsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -35506,59 +35506,59 @@ }; /** - * Converts this AggregatedListTargetTcpProxiesRequest to JSON. + * Converts this AggregatedListTargetPoolsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetTcpProxiesRequest.prototype.toJSON = function toJSON() { + AggregatedListTargetPoolsRequest.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 AggregatedListTargetPoolsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetTcpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListTargetPoolsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetPoolsRequest"; }; - return AggregatedListTargetTcpProxiesRequest; + return AggregatedListTargetPoolsRequest; })(); - v1.AggregatedListTargetVpnGatewaysRequest = (function() { + v1.AggregatedListTargetTcpProxiesRequest = (function() { /** - * Properties of an AggregatedListTargetVpnGatewaysRequest. + * Properties of an AggregatedListTargetTcpProxiesRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListTargetVpnGatewaysRequest. + * Constructs a new AggregatedListTargetTcpProxiesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListTargetVpnGatewaysRequest. - * @implements IAggregatedListTargetVpnGatewaysRequest + * @classdesc Represents an AggregatedListTargetTcpProxiesRequest. + * @implements IAggregatedListTargetTcpProxiesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest=} [properties] Properties to set */ - function AggregatedListTargetVpnGatewaysRequest(properties) { + function AggregatedListTargetTcpProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35566,136 +35566,136 @@ } /** - * AggregatedListTargetVpnGatewaysRequest filter. + * AggregatedListTargetTcpProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.filter = null; + AggregatedListTargetTcpProxiesRequest.prototype.filter = null; /** - * AggregatedListTargetVpnGatewaysRequest includeAllScopes. + * AggregatedListTargetTcpProxiesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.includeAllScopes = null; + AggregatedListTargetTcpProxiesRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetVpnGatewaysRequest maxResults. + * AggregatedListTargetTcpProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.maxResults = null; + AggregatedListTargetTcpProxiesRequest.prototype.maxResults = null; /** - * AggregatedListTargetVpnGatewaysRequest orderBy. + * AggregatedListTargetTcpProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.orderBy = null; + AggregatedListTargetTcpProxiesRequest.prototype.orderBy = null; /** - * AggregatedListTargetVpnGatewaysRequest pageToken. + * AggregatedListTargetTcpProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.pageToken = null; + AggregatedListTargetTcpProxiesRequest.prototype.pageToken = null; /** - * AggregatedListTargetVpnGatewaysRequest project. + * AggregatedListTargetTcpProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.project = ""; + AggregatedListTargetTcpProxiesRequest.prototype.project = ""; /** - * AggregatedListTargetVpnGatewaysRequest returnPartialSuccess. + * AggregatedListTargetTcpProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetTcpProxiesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListTargetVpnGatewaysRequest serviceProjectNumber. + * AggregatedListTargetTcpProxiesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.serviceProjectNumber = null; + AggregatedListTargetTcpProxiesRequest.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(AggregatedListTargetTcpProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetVpnGatewaysRequest instance using the specified properties. + * Creates a new AggregatedListTargetTcpProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest instance + * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest instance */ - AggregatedListTargetVpnGatewaysRequest.create = function create(properties) { - return new AggregatedListTargetVpnGatewaysRequest(properties); + AggregatedListTargetTcpProxiesRequest.create = function create(properties) { + return new AggregatedListTargetTcpProxiesRequest(properties); }; /** - * Encodes the specified AggregatedListTargetVpnGatewaysRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetTcpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetVpnGatewaysRequest.encode = function encode(message, writer) { + AggregatedListTargetTcpProxiesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -35718,33 +35718,33 @@ }; /** - * Encodes the specified AggregatedListTargetVpnGatewaysRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetTcpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetVpnGatewaysRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListTargetTcpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetVpnGatewaysRequest message from the specified reader or buffer. + * Decodes an AggregatedListTargetTcpProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest * @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) { + 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.v1.AggregatedListTargetVpnGatewaysRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -35791,30 +35791,30 @@ }; /** - * Decodes an AggregatedListTargetVpnGatewaysRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListTargetTcpProxiesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest * @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) { + AggregatedListTargetTcpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListTargetVpnGatewaysRequest message. + * Verifies an AggregatedListTargetTcpProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @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) { + AggregatedListTargetTcpProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -35860,17 +35860,17 @@ }; /** - * Creates an AggregatedListTargetVpnGatewaysRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListTargetTcpProxiesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest */ - AggregatedListTargetVpnGatewaysRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest) + AggregatedListTargetTcpProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -35898,15 +35898,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetVpnGatewaysRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListTargetTcpProxiesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest + * @param {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetVpnGatewaysRequest.toObject = function toObject(message, options) { + AggregatedListTargetTcpProxiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -35956,59 +35956,59 @@ }; /** - * Converts this AggregatedListTargetVpnGatewaysRequest to JSON. + * Converts this AggregatedListTargetTcpProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetVpnGatewaysRequest.prototype.toJSON = function toJSON() { + AggregatedListTargetTcpProxiesRequest.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 AggregatedListTargetTcpProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetVpnGatewaysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListTargetTcpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest"; }; - return AggregatedListTargetVpnGatewaysRequest; + return AggregatedListTargetTcpProxiesRequest; })(); - v1.AggregatedListUrlMapsRequest = (function() { + v1.AggregatedListTargetVpnGatewaysRequest = (function() { /** - * Properties of an AggregatedListUrlMapsRequest. + * Properties of an AggregatedListTargetVpnGatewaysRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListUrlMapsRequest. + * Constructs a new AggregatedListTargetVpnGatewaysRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListUrlMapsRequest. - * @implements IAggregatedListUrlMapsRequest + * @classdesc Represents an AggregatedListTargetVpnGatewaysRequest. + * @implements IAggregatedListTargetVpnGatewaysRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest=} [properties] Properties to set */ - function AggregatedListUrlMapsRequest(properties) { + function AggregatedListTargetVpnGatewaysRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36016,136 +36016,136 @@ } /** - * AggregatedListUrlMapsRequest filter. + * AggregatedListTargetVpnGatewaysRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.filter = null; + AggregatedListTargetVpnGatewaysRequest.prototype.filter = null; /** - * AggregatedListUrlMapsRequest includeAllScopes. + * AggregatedListTargetVpnGatewaysRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.includeAllScopes = null; + AggregatedListTargetVpnGatewaysRequest.prototype.includeAllScopes = null; /** - * AggregatedListUrlMapsRequest maxResults. + * AggregatedListTargetVpnGatewaysRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.maxResults = null; + AggregatedListTargetVpnGatewaysRequest.prototype.maxResults = null; /** - * AggregatedListUrlMapsRequest orderBy. + * AggregatedListTargetVpnGatewaysRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.orderBy = null; + AggregatedListTargetVpnGatewaysRequest.prototype.orderBy = null; /** - * AggregatedListUrlMapsRequest pageToken. + * AggregatedListTargetVpnGatewaysRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.pageToken = null; + AggregatedListTargetVpnGatewaysRequest.prototype.pageToken = null; /** - * AggregatedListUrlMapsRequest project. + * AggregatedListTargetVpnGatewaysRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.project = ""; + AggregatedListTargetVpnGatewaysRequest.prototype.project = ""; /** - * AggregatedListUrlMapsRequest returnPartialSuccess. + * AggregatedListTargetVpnGatewaysRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetVpnGatewaysRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListUrlMapsRequest serviceProjectNumber. + * AggregatedListTargetVpnGatewaysRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.serviceProjectNumber = null; + AggregatedListTargetVpnGatewaysRequest.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(AggregatedListTargetVpnGatewaysRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListUrlMapsRequest instance using the specified properties. + * Creates a new AggregatedListTargetVpnGatewaysRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest instance */ - AggregatedListUrlMapsRequest.create = function create(properties) { - return new AggregatedListUrlMapsRequest(properties); + AggregatedListTargetVpnGatewaysRequest.create = function create(properties) { + return new AggregatedListTargetVpnGatewaysRequest(properties); }; /** - * Encodes the specified AggregatedListUrlMapsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListUrlMapsRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetVpnGatewaysRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListUrlMapsRequest.encode = function encode(message, writer) { + AggregatedListTargetVpnGatewaysRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -36168,33 +36168,33 @@ }; /** - * Encodes the specified AggregatedListUrlMapsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListUrlMapsRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetVpnGatewaysRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListUrlMapsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListTargetVpnGatewaysRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListUrlMapsRequest message from the specified reader or buffer. + * Decodes an AggregatedListTargetVpnGatewaysRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.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.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest * @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) { + 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.v1.AggregatedListUrlMapsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -36241,30 +36241,30 @@ }; /** - * Decodes an AggregatedListUrlMapsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListTargetVpnGatewaysRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest * @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) { + AggregatedListTargetVpnGatewaysRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListUrlMapsRequest message. + * Verifies an AggregatedListTargetVpnGatewaysRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @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) { + AggregatedListTargetVpnGatewaysRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -36310,17 +36310,17 @@ }; /** - * Creates an AggregatedListUrlMapsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListTargetVpnGatewaysRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest */ - AggregatedListUrlMapsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListUrlMapsRequest) + AggregatedListTargetVpnGatewaysRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListUrlMapsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -36348,15 +36348,15 @@ }; /** - * Creates a plain object from an AggregatedListUrlMapsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListTargetVpnGatewaysRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static - * @param {google.cloud.compute.v1.AggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest + * @param {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListUrlMapsRequest.toObject = function toObject(message, options) { + AggregatedListTargetVpnGatewaysRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -36406,59 +36406,59 @@ }; /** - * Converts this AggregatedListUrlMapsRequest to JSON. + * Converts this AggregatedListTargetVpnGatewaysRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance * @returns {Object.} JSON object */ - AggregatedListUrlMapsRequest.prototype.toJSON = function toJSON() { + AggregatedListTargetVpnGatewaysRequest.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 AggregatedListTargetVpnGatewaysRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListUrlMapsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListTargetVpnGatewaysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListUrlMapsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest"; }; - return AggregatedListUrlMapsRequest; + return AggregatedListTargetVpnGatewaysRequest; })(); - v1.AggregatedListVpnGatewaysRequest = (function() { + v1.AggregatedListUrlMapsRequest = (function() { /** - * Properties of an AggregatedListVpnGatewaysRequest. + * Properties of an AggregatedListUrlMapsRequest. * @memberof google.cloud.compute.v1 - * @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 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 AggregatedListVpnGatewaysRequest. + * Constructs a new AggregatedListUrlMapsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListVpnGatewaysRequest. - * @implements IAggregatedListVpnGatewaysRequest + * @classdesc Represents an AggregatedListUrlMapsRequest. + * @implements IAggregatedListUrlMapsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest=} [properties] Properties to set */ - function AggregatedListVpnGatewaysRequest(properties) { + function AggregatedListUrlMapsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36466,136 +36466,586 @@ } /** - * AggregatedListVpnGatewaysRequest filter. + * AggregatedListUrlMapsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.filter = null; + AggregatedListUrlMapsRequest.prototype.filter = null; /** - * AggregatedListVpnGatewaysRequest includeAllScopes. + * AggregatedListUrlMapsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.includeAllScopes = null; + AggregatedListUrlMapsRequest.prototype.includeAllScopes = null; /** - * AggregatedListVpnGatewaysRequest maxResults. + * AggregatedListUrlMapsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.maxResults = null; + AggregatedListUrlMapsRequest.prototype.maxResults = null; /** - * AggregatedListVpnGatewaysRequest orderBy. + * AggregatedListUrlMapsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.orderBy = null; + AggregatedListUrlMapsRequest.prototype.orderBy = null; /** - * AggregatedListVpnGatewaysRequest pageToken. + * AggregatedListUrlMapsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.pageToken = null; + AggregatedListUrlMapsRequest.prototype.pageToken = null; /** - * AggregatedListVpnGatewaysRequest project. + * AggregatedListUrlMapsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.project = ""; + AggregatedListUrlMapsRequest.prototype.project = ""; /** - * AggregatedListVpnGatewaysRequest returnPartialSuccess. + * AggregatedListUrlMapsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.returnPartialSuccess = null; + AggregatedListUrlMapsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListVpnGatewaysRequest serviceProjectNumber. + * AggregatedListUrlMapsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.serviceProjectNumber = null; + AggregatedListUrlMapsRequest.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(AggregatedListUrlMapsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListVpnGatewaysRequest instance using the specified properties. + * Creates a new AggregatedListUrlMapsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListVpnGatewaysRequest} AggregatedListVpnGatewaysRequest instance + * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest instance */ - AggregatedListVpnGatewaysRequest.create = function create(properties) { - return new AggregatedListVpnGatewaysRequest(properties); + AggregatedListUrlMapsRequest.create = function create(properties) { + return new AggregatedListUrlMapsRequest(properties); }; /** - * Encodes the specified AggregatedListVpnGatewaysRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListVpnGatewaysRequest.verify|verify} messages. + * Encodes the specified AggregatedListUrlMapsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListUrlMapsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest} message AggregatedListVpnGatewaysRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListVpnGatewaysRequest.encode = function encode(message, 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.v1.AggregatedListUrlMapsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.AggregatedListUrlMapsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.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.v1.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.v1.AggregatedListUrlMapsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest + */ + AggregatedListUrlMapsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListUrlMapsRequest) + return object; + var message = new $root.google.cloud.compute.v1.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.v1.AggregatedListUrlMapsRequest + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.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.v1.AggregatedListUrlMapsRequest"; + }; + + return AggregatedListUrlMapsRequest; + })(); + + v1.AggregatedListVpnGatewaysRequest = (function() { + + /** + * Properties of an AggregatedListVpnGatewaysRequest. + * @memberof google.cloud.compute.v1 + * @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.v1 + * @classdesc Represents an AggregatedListVpnGatewaysRequest. + * @implements IAggregatedListVpnGatewaysRequest + * @constructor + * @param {google.cloud.compute.v1.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.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.filter = null; + + /** + * AggregatedListVpnGatewaysRequest includeAllScopes. + * @member {boolean|null|undefined} includeAllScopes + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.includeAllScopes = null; + + /** + * AggregatedListVpnGatewaysRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.maxResults = null; + + /** + * AggregatedListVpnGatewaysRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.orderBy = null; + + /** + * AggregatedListVpnGatewaysRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.pageToken = null; + + /** + * AggregatedListVpnGatewaysRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.project = ""; + + /** + * AggregatedListVpnGatewaysRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.returnPartialSuccess = null; + + /** + * AggregatedListVpnGatewaysRequest serviceProjectNumber. + * @member {number|Long|null|undefined} serviceProjectNumber + * @memberof google.cloud.compute.v1.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.v1.AggregatedListVpnGatewaysRequest + * @static + * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListVpnGatewaysRequest} AggregatedListVpnGatewaysRequest instance + */ + AggregatedListVpnGatewaysRequest.create = function create(properties) { + return new AggregatedListVpnGatewaysRequest(properties); + }; + + /** + * Encodes the specified AggregatedListVpnGatewaysRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListVpnGatewaysRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @static + * @param {google.cloud.compute.v1.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")) @@ -50014,12 +50464,16 @@ * @property {number|null} [maxConnections] Backend maxConnections * @property {number|null} [maxConnectionsPerEndpoint] Backend maxConnectionsPerEndpoint * @property {number|null} [maxConnectionsPerInstance] Backend maxConnectionsPerInstance + * @property {number|null} [maxInFlightRequests] Backend maxInFlightRequests + * @property {number|null} [maxInFlightRequestsPerEndpoint] Backend maxInFlightRequestsPerEndpoint + * @property {number|null} [maxInFlightRequestsPerInstance] Backend maxInFlightRequestsPerInstance * @property {number|null} [maxRate] Backend maxRate * @property {number|null} [maxRatePerEndpoint] Backend maxRatePerEndpoint * @property {number|null} [maxRatePerInstance] Backend maxRatePerInstance * @property {number|null} [maxUtilization] Backend maxUtilization * @property {google.cloud.compute.v1.IBackendBackendOrchestrationInfo|null} [orchestrationInfo] Backend orchestrationInfo * @property {string|null} [preference] Backend preference + * @property {string|null} [trafficDuration] Backend trafficDuration */ /** @@ -50110,6 +50564,30 @@ */ Backend.prototype.maxConnectionsPerInstance = null; + /** + * Backend maxInFlightRequests. + * @member {number|null|undefined} maxInFlightRequests + * @memberof google.cloud.compute.v1.Backend + * @instance + */ + Backend.prototype.maxInFlightRequests = null; + + /** + * Backend maxInFlightRequestsPerEndpoint. + * @member {number|null|undefined} maxInFlightRequestsPerEndpoint + * @memberof google.cloud.compute.v1.Backend + * @instance + */ + Backend.prototype.maxInFlightRequestsPerEndpoint = null; + + /** + * Backend maxInFlightRequestsPerInstance. + * @member {number|null|undefined} maxInFlightRequestsPerInstance + * @memberof google.cloud.compute.v1.Backend + * @instance + */ + Backend.prototype.maxInFlightRequestsPerInstance = null; + /** * Backend maxRate. * @member {number|null|undefined} maxRate @@ -50158,6 +50636,14 @@ */ Backend.prototype.preference = null; + /** + * Backend trafficDuration. + * @member {string|null|undefined} trafficDuration + * @memberof google.cloud.compute.v1.Backend + * @instance + */ + Backend.prototype.trafficDuration = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -50209,6 +50695,24 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(Backend.prototype, "_maxInFlightRequests", { + get: $util.oneOfGetter($oneOfFields = ["maxInFlightRequests"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(Backend.prototype, "_maxInFlightRequestsPerEndpoint", { + get: $util.oneOfGetter($oneOfFields = ["maxInFlightRequestsPerEndpoint"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(Backend.prototype, "_maxInFlightRequestsPerInstance", { + get: $util.oneOfGetter($oneOfFields = ["maxInFlightRequestsPerInstance"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(Backend.prototype, "_maxRate", { get: $util.oneOfGetter($oneOfFields = ["maxRate"]), @@ -50245,6 +50749,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(Backend.prototype, "_trafficDuration", { + get: $util.oneOfGetter($oneOfFields = ["trafficDuration"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new Backend instance using the specified properties. * @function create @@ -50269,6 +50779,8 @@ Backend.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.trafficDuration != null && Object.hasOwnProperty.call(message, "trafficDuration")) + writer.uint32(/* id 11618710, wireType 2 =*/92949682).string(message.trafficDuration); if (message.maxRatePerInstance != null && Object.hasOwnProperty.call(message, "maxRatePerInstance")) writer.uint32(/* id 17599579, wireType 5 =*/140796637).float(message.maxRatePerInstance); if (message.group != null && Object.hasOwnProperty.call(message, "group")) @@ -50285,8 +50797,14 @@ writer.uint32(/* id 148192199, wireType 5 =*/1185537597).float(message.maxUtilization); if (message.preference != null && Object.hasOwnProperty.call(message, "preference")) writer.uint32(/* id 150781147, wireType 2 =*/1206249178).string(message.preference); + if (message.maxInFlightRequestsPerInstance != null && Object.hasOwnProperty.call(message, "maxInFlightRequestsPerInstance")) + writer.uint32(/* id 195696002, wireType 0 =*/1565568016).int32(message.maxInFlightRequestsPerInstance); if (message.maxConnectionsPerEndpoint != null && Object.hasOwnProperty.call(message, "maxConnectionsPerEndpoint")) writer.uint32(/* id 216904604, wireType 0 =*/1735236832).int32(message.maxConnectionsPerEndpoint); + if (message.maxInFlightRequests != null && Object.hasOwnProperty.call(message, "maxInFlightRequests")) + writer.uint32(/* id 273269332, wireType 0 =*/2186154656).int32(message.maxInFlightRequests); + if (message.maxInFlightRequestsPerEndpoint != null && Object.hasOwnProperty.call(message, "maxInFlightRequestsPerEndpoint")) + writer.uint32(/* id 307928706, wireType 0 =*/2463429648).int32(message.maxInFlightRequestsPerEndpoint); if (message.capacityScaler != null && Object.hasOwnProperty.call(message, "capacityScaler")) writer.uint32(/* id 315958157, wireType 5 =*/2527665261).float(message.capacityScaler); if (message.maxRate != null && Object.hasOwnProperty.call(message, "maxRate")) @@ -50374,6 +50892,18 @@ message.maxConnectionsPerInstance = reader.int32(); break; } + case 273269332: { + message.maxInFlightRequests = reader.int32(); + break; + } + case 307928706: { + message.maxInFlightRequestsPerEndpoint = reader.int32(); + break; + } + case 195696002: { + message.maxInFlightRequestsPerInstance = reader.int32(); + break; + } case 408035035: { message.maxRate = reader.int32(); break; @@ -50398,6 +50928,10 @@ message.preference = reader.string(); break; } + case 11618710: { + message.trafficDuration = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -50483,6 +51017,21 @@ if (!$util.isInteger(message.maxConnectionsPerInstance)) return "maxConnectionsPerInstance: integer expected"; } + if (message.maxInFlightRequests != null && message.hasOwnProperty("maxInFlightRequests")) { + properties._maxInFlightRequests = 1; + if (!$util.isInteger(message.maxInFlightRequests)) + return "maxInFlightRequests: integer expected"; + } + if (message.maxInFlightRequestsPerEndpoint != null && message.hasOwnProperty("maxInFlightRequestsPerEndpoint")) { + properties._maxInFlightRequestsPerEndpoint = 1; + if (!$util.isInteger(message.maxInFlightRequestsPerEndpoint)) + return "maxInFlightRequestsPerEndpoint: integer expected"; + } + if (message.maxInFlightRequestsPerInstance != null && message.hasOwnProperty("maxInFlightRequestsPerInstance")) { + properties._maxInFlightRequestsPerInstance = 1; + if (!$util.isInteger(message.maxInFlightRequestsPerInstance)) + return "maxInFlightRequestsPerInstance: integer expected"; + } if (message.maxRate != null && message.hasOwnProperty("maxRate")) { properties._maxRate = 1; if (!$util.isInteger(message.maxRate)) @@ -50516,6 +51065,11 @@ if (!$util.isString(message.preference)) return "preference: string expected"; } + if (message.trafficDuration != null && message.hasOwnProperty("trafficDuration")) { + properties._trafficDuration = 1; + if (!$util.isString(message.trafficDuration)) + return "trafficDuration: string expected"; + } return null; }; @@ -50557,6 +51111,12 @@ message.maxConnectionsPerEndpoint = object.maxConnectionsPerEndpoint | 0; if (object.maxConnectionsPerInstance != null) message.maxConnectionsPerInstance = object.maxConnectionsPerInstance | 0; + if (object.maxInFlightRequests != null) + message.maxInFlightRequests = object.maxInFlightRequests | 0; + if (object.maxInFlightRequestsPerEndpoint != null) + message.maxInFlightRequestsPerEndpoint = object.maxInFlightRequestsPerEndpoint | 0; + if (object.maxInFlightRequestsPerInstance != null) + message.maxInFlightRequestsPerInstance = object.maxInFlightRequestsPerInstance | 0; if (object.maxRate != null) message.maxRate = object.maxRate | 0; if (object.maxRatePerEndpoint != null) @@ -50572,6 +51132,8 @@ } if (object.preference != null) message.preference = String(object.preference); + if (object.trafficDuration != null) + message.trafficDuration = String(object.trafficDuration); return message; }; @@ -50590,6 +51152,11 @@ var object = {}; if (options.arrays || options.defaults) object.customMetrics = []; + if (message.trafficDuration != null && message.hasOwnProperty("trafficDuration")) { + object.trafficDuration = message.trafficDuration; + if (options.oneofs) + object._trafficDuration = "trafficDuration"; + } if (message.maxRatePerInstance != null && message.hasOwnProperty("maxRatePerInstance")) { object.maxRatePerInstance = options.json && !isFinite(message.maxRatePerInstance) ? String(message.maxRatePerInstance) : message.maxRatePerInstance; if (options.oneofs) @@ -50630,11 +51197,26 @@ if (options.oneofs) object._preference = "preference"; } + if (message.maxInFlightRequestsPerInstance != null && message.hasOwnProperty("maxInFlightRequestsPerInstance")) { + object.maxInFlightRequestsPerInstance = message.maxInFlightRequestsPerInstance; + if (options.oneofs) + object._maxInFlightRequestsPerInstance = "maxInFlightRequestsPerInstance"; + } if (message.maxConnectionsPerEndpoint != null && message.hasOwnProperty("maxConnectionsPerEndpoint")) { object.maxConnectionsPerEndpoint = message.maxConnectionsPerEndpoint; if (options.oneofs) object._maxConnectionsPerEndpoint = "maxConnectionsPerEndpoint"; } + if (message.maxInFlightRequests != null && message.hasOwnProperty("maxInFlightRequests")) { + object.maxInFlightRequests = message.maxInFlightRequests; + if (options.oneofs) + object._maxInFlightRequests = "maxInFlightRequests"; + } + if (message.maxInFlightRequestsPerEndpoint != null && message.hasOwnProperty("maxInFlightRequestsPerEndpoint")) { + object.maxInFlightRequestsPerEndpoint = message.maxInFlightRequestsPerEndpoint; + if (options.oneofs) + object._maxInFlightRequestsPerEndpoint = "maxInFlightRequestsPerEndpoint"; + } if (message.capacityScaler != null && message.hasOwnProperty("capacityScaler")) { object.capacityScaler = options.json && !isFinite(message.capacityScaler) ? String(message.capacityScaler) : message.capacityScaler; if (options.oneofs) @@ -50701,6 +51283,7 @@ * @property {number} UNDEFINED_BALANCING_MODE=0 UNDEFINED_BALANCING_MODE value * @property {number} CONNECTION=246311646 CONNECTION value * @property {number} CUSTOM_METRICS=331575765 CUSTOM_METRICS value + * @property {number} IN_FLIGHT=190040266 IN_FLIGHT value * @property {number} RATE=2508000 RATE value * @property {number} UTILIZATION=157008386 UTILIZATION value */ @@ -50709,6 +51292,7 @@ values[valuesById[0] = "UNDEFINED_BALANCING_MODE"] = 0; values[valuesById[246311646] = "CONNECTION"] = 246311646; values[valuesById[331575765] = "CUSTOM_METRICS"] = 331575765; + values[valuesById[190040266] = "IN_FLIGHT"] = 190040266; values[valuesById[2508000] = "RATE"] = 2508000; values[valuesById[157008386] = "UTILIZATION"] = 157008386; return values; @@ -50732,6 +51316,24 @@ return values; })(); + /** + * TrafficDuration enum. + * @name google.cloud.compute.v1.Backend.TrafficDuration + * @enum {number} + * @property {number} UNDEFINED_TRAFFIC_DURATION=0 UNDEFINED_TRAFFIC_DURATION value + * @property {number} LONG=2342524 LONG value + * @property {number} SHORT=78875740 SHORT value + * @property {number} TRAFFIC_DURATION_UNSPECIFIED=265201166 TRAFFIC_DURATION_UNSPECIFIED value + */ + Backend.TrafficDuration = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_TRAFFIC_DURATION"] = 0; + values[valuesById[2342524] = "LONG"] = 2342524; + values[valuesById[78875740] = "SHORT"] = 78875740; + values[valuesById[265201166] = "TRAFFIC_DURATION_UNSPECIFIED"] = 265201166; + return values; + })(); + return Backend; })(); @@ -50972,6 +51574,7 @@ * @property {string|null} [loadBalancingScheme] BackendBucket loadBalancingScheme * @property {string|null} [name] BackendBucket name * @property {google.cloud.compute.v1.IBackendBucketParams|null} [params] BackendBucket params + * @property {string|null} [region] BackendBucket region * @property {string|null} [selfLink] BackendBucket selfLink * @property {Array.|null} [usedBy] BackendBucket usedBy */ @@ -51097,6 +51700,14 @@ */ BackendBucket.prototype.params = null; + /** + * BackendBucket region. + * @member {string|null|undefined} region + * @memberof google.cloud.compute.v1.BackendBucket + * @instance + */ + BackendBucket.prototype.region = null; + /** * BackendBucket selfLink. * @member {string|null|undefined} selfLink @@ -51188,6 +51799,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"]), @@ -51232,6 +51849,8 @@ $root.google.cloud.compute.v1.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.v1.BackendBucketCdnPolicy.encode(message.cdnPolicy, writer.uint32(/* id 213976452, wireType 2 =*/1711811618).fork()).ldelim(); if (message.enableCdn != null && Object.hasOwnProperty.call(message, "enableCdn")) @@ -51340,6 +51959,10 @@ message.params = $root.google.cloud.compute.v1.BackendBucketParams.decode(reader, reader.uint32()); break; } + case 138946292: { + message.region = reader.string(); + break; + } case 456214797: { message.selfLink = reader.string(); break; @@ -51459,6 +52082,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)) @@ -51532,6 +52160,8 @@ throw TypeError(".google.cloud.compute.v1.BackendBucket.params: object expected"); message.params = $root.google.cloud.compute.v1.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) { @@ -51602,6 +52232,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.v1.BackendBucketCdnPolicy.toObject(message.cdnPolicy, options); if (options.oneofs) @@ -51692,11 +52327,13 @@ * @name google.cloud.compute.v1.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; })(); @@ -51704,6 +52341,428 @@ return BackendBucket; })(); + v1.BackendBucketAggregatedList = (function() { + + /** + * Properties of a BackendBucketAggregatedList. + * @memberof google.cloud.compute.v1 + * @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.v1.IWarning|null} [warning] BackendBucketAggregatedList warning + */ + + /** + * Constructs a new BackendBucketAggregatedList. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a BackendBucketAggregatedList. + * @implements IBackendBucketAggregatedList + * @constructor + * @param {google.cloud.compute.v1.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.v1.BackendBucketAggregatedList + * @instance + */ + BackendBucketAggregatedList.prototype.id = null; + + /** + * BackendBucketAggregatedList items. + * @member {Object.} items + * @memberof google.cloud.compute.v1.BackendBucketAggregatedList + * @instance + */ + BackendBucketAggregatedList.prototype.items = $util.emptyObject; + + /** + * BackendBucketAggregatedList kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.BackendBucketAggregatedList + * @instance + */ + BackendBucketAggregatedList.prototype.kind = null; + + /** + * BackendBucketAggregatedList nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1.BackendBucketAggregatedList + * @instance + */ + BackendBucketAggregatedList.prototype.nextPageToken = null; + + /** + * BackendBucketAggregatedList selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.BackendBucketAggregatedList + * @instance + */ + BackendBucketAggregatedList.prototype.selfLink = null; + + /** + * BackendBucketAggregatedList warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.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.v1.BackendBucketAggregatedList + * @static + * @param {google.cloud.compute.v1.IBackendBucketAggregatedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1.BackendBucketAggregatedList} BackendBucketAggregatedList instance + */ + BackendBucketAggregatedList.create = function create(properties) { + return new BackendBucketAggregatedList(properties); + }; + + /** + * Encodes the specified BackendBucketAggregatedList message. Does not implicitly {@link google.cloud.compute.v1.BackendBucketAggregatedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.BackendBucketAggregatedList + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.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.v1.BackendBucketAggregatedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.BackendBucketAggregatedList + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.BackendBucketAggregatedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.BackendBucketAggregatedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.BackendBucketAggregatedList} BackendBucketAggregatedList + */ + BackendBucketAggregatedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.BackendBucketAggregatedList) + return object; + var message = new $root.google.cloud.compute.v1.BackendBucketAggregatedList(); + if (object.id != null) + message.id = String(object.id); + if (object.items) { + if (typeof object.items !== "object") + throw TypeError(".google.cloud.compute.v1.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.v1.BackendBucketAggregatedList.items: object expected"); + message.items[keys[i]] = $root.google.cloud.compute.v1.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.v1.BackendBucketAggregatedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.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.v1.BackendBucketAggregatedList + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.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.v1.BackendBucketAggregatedList"; + }; + + return BackendBucketAggregatedList; + })(); + v1.BackendBucketCdnPolicy = (function() { /** @@ -53482,6 +54541,407 @@ return BackendBucketList; })(); + v1.BackendBucketListUsable = (function() { + + /** + * Properties of a BackendBucketListUsable. + * @memberof google.cloud.compute.v1 + * @interface IBackendBucketListUsable + * @property {string|null} [id] BackendBucketListUsable id + * @property {Array.|null} [items] BackendBucketListUsable items + * @property {string|null} [kind] BackendBucketListUsable kind + * @property {string|null} [nextPageToken] BackendBucketListUsable nextPageToken + * @property {string|null} [selfLink] BackendBucketListUsable selfLink + * @property {google.cloud.compute.v1.IWarning|null} [warning] BackendBucketListUsable warning + */ + + /** + * Constructs a new BackendBucketListUsable. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a BackendBucketListUsable. + * @implements IBackendBucketListUsable + * @constructor + * @param {google.cloud.compute.v1.IBackendBucketListUsable=} [properties] Properties to set + */ + function BackendBucketListUsable(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]]; + } + + /** + * BackendBucketListUsable id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1.BackendBucketListUsable + * @instance + */ + BackendBucketListUsable.prototype.id = null; + + /** + * BackendBucketListUsable items. + * @member {Array.} items + * @memberof google.cloud.compute.v1.BackendBucketListUsable + * @instance + */ + BackendBucketListUsable.prototype.items = $util.emptyArray; + + /** + * BackendBucketListUsable kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.BackendBucketListUsable + * @instance + */ + BackendBucketListUsable.prototype.kind = null; + + /** + * BackendBucketListUsable nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1.BackendBucketListUsable + * @instance + */ + BackendBucketListUsable.prototype.nextPageToken = null; + + /** + * BackendBucketListUsable selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.BackendBucketListUsable + * @instance + */ + BackendBucketListUsable.prototype.selfLink = null; + + /** + * BackendBucketListUsable warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.BackendBucketListUsable + * @instance + */ + BackendBucketListUsable.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BackendBucketListUsable.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BackendBucketListUsable.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BackendBucketListUsable.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BackendBucketListUsable.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BackendBucketListUsable.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new BackendBucketListUsable instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.BackendBucketListUsable + * @static + * @param {google.cloud.compute.v1.IBackendBucketListUsable=} [properties] Properties to set + * @returns {google.cloud.compute.v1.BackendBucketListUsable} BackendBucketListUsable instance + */ + BackendBucketListUsable.create = function create(properties) { + return new BackendBucketListUsable(properties); + }; + + /** + * Encodes the specified BackendBucketListUsable message. Does not implicitly {@link google.cloud.compute.v1.BackendBucketListUsable.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.BackendBucketListUsable + * @static + * @param {google.cloud.compute.v1.IBackendBucketListUsable} message BackendBucketListUsable message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackendBucketListUsable.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.v1.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.v1.BackendBucket.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 BackendBucketListUsable message, length delimited. Does not implicitly {@link google.cloud.compute.v1.BackendBucketListUsable.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.BackendBucketListUsable + * @static + * @param {google.cloud.compute.v1.IBackendBucketListUsable} message BackendBucketListUsable message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackendBucketListUsable.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BackendBucketListUsable message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.BackendBucketListUsable + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.BackendBucketListUsable} BackendBucketListUsable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackendBucketListUsable.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.v1.BackendBucketListUsable(); + 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.v1.BackendBucket.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.v1.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BackendBucketListUsable message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.BackendBucketListUsable + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.BackendBucketListUsable} BackendBucketListUsable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackendBucketListUsable.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BackendBucketListUsable message. + * @function verify + * @memberof google.cloud.compute.v1.BackendBucketListUsable + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BackendBucketListUsable.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.v1.BackendBucket.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.v1.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a BackendBucketListUsable message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.BackendBucketListUsable + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.BackendBucketListUsable} BackendBucketListUsable + */ + BackendBucketListUsable.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.BackendBucketListUsable) + return object; + var message = new $root.google.cloud.compute.v1.BackendBucketListUsable(); + if (object.id != null) + message.id = String(object.id); + if (object.items) { + if (!Array.isArray(object.items)) + throw TypeError(".google.cloud.compute.v1.BackendBucketListUsable.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.v1.BackendBucketListUsable.items: object expected"); + message.items[i] = $root.google.cloud.compute.v1.BackendBucket.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.v1.BackendBucketListUsable.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a BackendBucketListUsable message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.BackendBucketListUsable + * @static + * @param {google.cloud.compute.v1.BackendBucketListUsable} message BackendBucketListUsable + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BackendBucketListUsable.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.v1.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.v1.BackendBucket.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 BackendBucketListUsable to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.BackendBucketListUsable + * @instance + * @returns {Object.} JSON object + */ + BackendBucketListUsable.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BackendBucketListUsable + * @function getTypeUrl + * @memberof google.cloud.compute.v1.BackendBucketListUsable + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BackendBucketListUsable.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.BackendBucketListUsable"; + }; + + return BackendBucketListUsable; + })(); + v1.BackendBucketParams = (function() { /** @@ -53940,6 +55400,275 @@ return BackendBucketUsedBy; })(); + v1.BackendBucketsScopedList = (function() { + + /** + * Properties of a BackendBucketsScopedList. + * @memberof google.cloud.compute.v1 + * @interface IBackendBucketsScopedList + * @property {Array.|null} [backendBuckets] BackendBucketsScopedList backendBuckets + * @property {google.cloud.compute.v1.IWarning|null} [warning] BackendBucketsScopedList warning + */ + + /** + * Constructs a new BackendBucketsScopedList. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a BackendBucketsScopedList. + * @implements IBackendBucketsScopedList + * @constructor + * @param {google.cloud.compute.v1.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.v1.BackendBucketsScopedList + * @instance + */ + BackendBucketsScopedList.prototype.backendBuckets = $util.emptyArray; + + /** + * BackendBucketsScopedList warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.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.v1.BackendBucketsScopedList + * @static + * @param {google.cloud.compute.v1.IBackendBucketsScopedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1.BackendBucketsScopedList} BackendBucketsScopedList instance + */ + BackendBucketsScopedList.create = function create(properties) { + return new BackendBucketsScopedList(properties); + }; + + /** + * Encodes the specified BackendBucketsScopedList message. Does not implicitly {@link google.cloud.compute.v1.BackendBucketsScopedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.BackendBucketsScopedList + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.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.v1.BackendBucketsScopedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.BackendBucketsScopedList + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.BackendBucket.decode(reader, reader.uint32())); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1.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.v1.BackendBucketsScopedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.BackendBucketsScopedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.BackendBucketsScopedList} BackendBucketsScopedList + */ + BackendBucketsScopedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.BackendBucketsScopedList) + return object; + var message = new $root.google.cloud.compute.v1.BackendBucketsScopedList(); + if (object.backendBuckets) { + if (!Array.isArray(object.backendBuckets)) + throw TypeError(".google.cloud.compute.v1.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.v1.BackendBucketsScopedList.backendBuckets: object expected"); + message.backendBuckets[i] = $root.google.cloud.compute.v1.BackendBucket.fromObject(object.backendBuckets[i]); + } + } + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1.BackendBucketsScopedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.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.v1.BackendBucketsScopedList + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.BackendBucket.toObject(message.backendBuckets[j], options); + } + return object; + }; + + /** + * Converts this BackendBucketsScopedList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.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.v1.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.v1.BackendBucketsScopedList"; + }; + + return BackendBucketsScopedList; + })(); + v1.BackendCustomMetric = (function() { /** @@ -68088,6 +69817,8 @@ * Properties of a BulkInsertDiskResource. * @memberof google.cloud.compute.v1 * @interface IBulkInsertDiskResource + * @property {google.cloud.compute.v1.IInstantSnapshotGroupParameters|null} [instantSnapshotGroupParameters] BulkInsertDiskResource instantSnapshotGroupParameters + * @property {google.cloud.compute.v1.ISnapshotGroupParameters|null} [snapshotGroupParameters] BulkInsertDiskResource snapshotGroupParameters * @property {string|null} [sourceConsistencyGroupPolicy] BulkInsertDiskResource sourceConsistencyGroupPolicy */ @@ -68106,6 +69837,22 @@ this[keys[i]] = properties[keys[i]]; } + /** + * BulkInsertDiskResource instantSnapshotGroupParameters. + * @member {google.cloud.compute.v1.IInstantSnapshotGroupParameters|null|undefined} instantSnapshotGroupParameters + * @memberof google.cloud.compute.v1.BulkInsertDiskResource + * @instance + */ + BulkInsertDiskResource.prototype.instantSnapshotGroupParameters = null; + + /** + * BulkInsertDiskResource snapshotGroupParameters. + * @member {google.cloud.compute.v1.ISnapshotGroupParameters|null|undefined} snapshotGroupParameters + * @memberof google.cloud.compute.v1.BulkInsertDiskResource + * @instance + */ + BulkInsertDiskResource.prototype.snapshotGroupParameters = null; + /** * BulkInsertDiskResource sourceConsistencyGroupPolicy. * @member {string|null|undefined} sourceConsistencyGroupPolicy @@ -68117,6 +69864,18 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + // Virtual OneOf for proto3 optional field + Object.defineProperty(BulkInsertDiskResource.prototype, "_instantSnapshotGroupParameters", { + get: $util.oneOfGetter($oneOfFields = ["instantSnapshotGroupParameters"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BulkInsertDiskResource.prototype, "_snapshotGroupParameters", { + get: $util.oneOfGetter($oneOfFields = ["snapshotGroupParameters"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(BulkInsertDiskResource.prototype, "_sourceConsistencyGroupPolicy", { get: $util.oneOfGetter($oneOfFields = ["sourceConsistencyGroupPolicy"]), @@ -68147,8 +69906,12 @@ BulkInsertDiskResource.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.instantSnapshotGroupParameters != null && Object.hasOwnProperty.call(message, "instantSnapshotGroupParameters")) + $root.google.cloud.compute.v1.InstantSnapshotGroupParameters.encode(message.instantSnapshotGroupParameters, writer.uint32(/* id 17051623, wireType 2 =*/136412986).fork()).ldelim(); if (message.sourceConsistencyGroupPolicy != null && Object.hasOwnProperty.call(message, "sourceConsistencyGroupPolicy")) writer.uint32(/* id 19616093, wireType 2 =*/156928746).string(message.sourceConsistencyGroupPolicy); + if (message.snapshotGroupParameters != null && Object.hasOwnProperty.call(message, "snapshotGroupParameters")) + $root.google.cloud.compute.v1.SnapshotGroupParameters.encode(message.snapshotGroupParameters, writer.uint32(/* id 42252485, wireType 2 =*/338019882).fork()).ldelim(); return writer; }; @@ -68185,6 +69948,14 @@ if (tag === error) break; switch (tag >>> 3) { + case 17051623: { + message.instantSnapshotGroupParameters = $root.google.cloud.compute.v1.InstantSnapshotGroupParameters.decode(reader, reader.uint32()); + break; + } + case 42252485: { + message.snapshotGroupParameters = $root.google.cloud.compute.v1.SnapshotGroupParameters.decode(reader, reader.uint32()); + break; + } case 19616093: { message.sourceConsistencyGroupPolicy = reader.string(); break; @@ -68225,6 +69996,22 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.instantSnapshotGroupParameters != null && message.hasOwnProperty("instantSnapshotGroupParameters")) { + properties._instantSnapshotGroupParameters = 1; + { + var error = $root.google.cloud.compute.v1.InstantSnapshotGroupParameters.verify(message.instantSnapshotGroupParameters); + if (error) + return "instantSnapshotGroupParameters." + error; + } + } + if (message.snapshotGroupParameters != null && message.hasOwnProperty("snapshotGroupParameters")) { + properties._snapshotGroupParameters = 1; + { + var error = $root.google.cloud.compute.v1.SnapshotGroupParameters.verify(message.snapshotGroupParameters); + if (error) + return "snapshotGroupParameters." + error; + } + } if (message.sourceConsistencyGroupPolicy != null && message.hasOwnProperty("sourceConsistencyGroupPolicy")) { properties._sourceConsistencyGroupPolicy = 1; if (!$util.isString(message.sourceConsistencyGroupPolicy)) @@ -68245,6 +70032,16 @@ if (object instanceof $root.google.cloud.compute.v1.BulkInsertDiskResource) return object; var message = new $root.google.cloud.compute.v1.BulkInsertDiskResource(); + if (object.instantSnapshotGroupParameters != null) { + if (typeof object.instantSnapshotGroupParameters !== "object") + throw TypeError(".google.cloud.compute.v1.BulkInsertDiskResource.instantSnapshotGroupParameters: object expected"); + message.instantSnapshotGroupParameters = $root.google.cloud.compute.v1.InstantSnapshotGroupParameters.fromObject(object.instantSnapshotGroupParameters); + } + if (object.snapshotGroupParameters != null) { + if (typeof object.snapshotGroupParameters !== "object") + throw TypeError(".google.cloud.compute.v1.BulkInsertDiskResource.snapshotGroupParameters: object expected"); + message.snapshotGroupParameters = $root.google.cloud.compute.v1.SnapshotGroupParameters.fromObject(object.snapshotGroupParameters); + } if (object.sourceConsistencyGroupPolicy != null) message.sourceConsistencyGroupPolicy = String(object.sourceConsistencyGroupPolicy); return message; @@ -68263,11 +70060,21 @@ if (!options) options = {}; var object = {}; + if (message.instantSnapshotGroupParameters != null && message.hasOwnProperty("instantSnapshotGroupParameters")) { + object.instantSnapshotGroupParameters = $root.google.cloud.compute.v1.InstantSnapshotGroupParameters.toObject(message.instantSnapshotGroupParameters, options); + if (options.oneofs) + object._instantSnapshotGroupParameters = "instantSnapshotGroupParameters"; + } if (message.sourceConsistencyGroupPolicy != null && message.hasOwnProperty("sourceConsistencyGroupPolicy")) { object.sourceConsistencyGroupPolicy = message.sourceConsistencyGroupPolicy; if (options.oneofs) object._sourceConsistencyGroupPolicy = "sourceConsistencyGroupPolicy"; } + if (message.snapshotGroupParameters != null && message.hasOwnProperty("snapshotGroupParameters")) { + object.snapshotGroupParameters = $root.google.cloud.compute.v1.SnapshotGroupParameters.toObject(message.snapshotGroupParameters, options); + if (options.oneofs) + object._snapshotGroupParameters = "snapshotGroupParameters"; + } return object; }; @@ -73715,6 +75522,318 @@ return CancelInstanceGroupManagerResizeRequestRequest; })(); + v1.CancelRegionInstanceGroupManagerResizeRequestRequest = (function() { + + /** + * Properties of a CancelRegionInstanceGroupManagerResizeRequestRequest. + * @memberof google.cloud.compute.v1 + * @interface ICancelRegionInstanceGroupManagerResizeRequestRequest + * @property {string|null} [instanceGroupManager] CancelRegionInstanceGroupManagerResizeRequestRequest instanceGroupManager + * @property {string|null} [project] CancelRegionInstanceGroupManagerResizeRequestRequest project + * @property {string|null} [region] CancelRegionInstanceGroupManagerResizeRequestRequest region + * @property {string|null} [requestId] CancelRegionInstanceGroupManagerResizeRequestRequest requestId + * @property {string|null} [resizeRequest] CancelRegionInstanceGroupManagerResizeRequestRequest resizeRequest + */ + + /** + * Constructs a new CancelRegionInstanceGroupManagerResizeRequestRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a CancelRegionInstanceGroupManagerResizeRequestRequest. + * @implements ICancelRegionInstanceGroupManagerResizeRequestRequest + * @constructor + * @param {google.cloud.compute.v1.ICancelRegionInstanceGroupManagerResizeRequestRequest=} [properties] Properties to set + */ + function CancelRegionInstanceGroupManagerResizeRequestRequest(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]]; + } + + /** + * CancelRegionInstanceGroupManagerResizeRequestRequest instanceGroupManager. + * @member {string} instanceGroupManager + * @memberof google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + * @instance + */ + CancelRegionInstanceGroupManagerResizeRequestRequest.prototype.instanceGroupManager = ""; + + /** + * CancelRegionInstanceGroupManagerResizeRequestRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + * @instance + */ + CancelRegionInstanceGroupManagerResizeRequestRequest.prototype.project = ""; + + /** + * CancelRegionInstanceGroupManagerResizeRequestRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + * @instance + */ + CancelRegionInstanceGroupManagerResizeRequestRequest.prototype.region = ""; + + /** + * CancelRegionInstanceGroupManagerResizeRequestRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + * @instance + */ + CancelRegionInstanceGroupManagerResizeRequestRequest.prototype.requestId = null; + + /** + * CancelRegionInstanceGroupManagerResizeRequestRequest resizeRequest. + * @member {string} resizeRequest + * @memberof google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + * @instance + */ + CancelRegionInstanceGroupManagerResizeRequestRequest.prototype.resizeRequest = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CancelRegionInstanceGroupManagerResizeRequestRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CancelRegionInstanceGroupManagerResizeRequestRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {google.cloud.compute.v1.ICancelRegionInstanceGroupManagerResizeRequestRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest} CancelRegionInstanceGroupManagerResizeRequestRequest instance + */ + CancelRegionInstanceGroupManagerResizeRequestRequest.create = function create(properties) { + return new CancelRegionInstanceGroupManagerResizeRequestRequest(properties); + }; + + /** + * Encodes the specified CancelRegionInstanceGroupManagerResizeRequestRequest message. Does not implicitly {@link google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {google.cloud.compute.v1.ICancelRegionInstanceGroupManagerResizeRequestRequest} message CancelRegionInstanceGroupManagerResizeRequestRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CancelRegionInstanceGroupManagerResizeRequestRequest.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.resizeRequest != null && Object.hasOwnProperty.call(message, "resizeRequest")) + writer.uint32(/* id 216941060, wireType 2 =*/1735528482).string(message.resizeRequest); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.instanceGroupManager != null && Object.hasOwnProperty.call(message, "instanceGroupManager")) + writer.uint32(/* id 249363395, wireType 2 =*/1994907162).string(message.instanceGroupManager); + return writer; + }; + + /** + * Encodes the specified CancelRegionInstanceGroupManagerResizeRequestRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {google.cloud.compute.v1.ICancelRegionInstanceGroupManagerResizeRequestRequest} message CancelRegionInstanceGroupManagerResizeRequestRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CancelRegionInstanceGroupManagerResizeRequestRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CancelRegionInstanceGroupManagerResizeRequestRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest} CancelRegionInstanceGroupManagerResizeRequestRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CancelRegionInstanceGroupManagerResizeRequestRequest.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.v1.CancelRegionInstanceGroupManagerResizeRequestRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 249363395: { + message.instanceGroupManager = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + case 216941060: { + message.resizeRequest = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CancelRegionInstanceGroupManagerResizeRequestRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest} CancelRegionInstanceGroupManagerResizeRequestRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CancelRegionInstanceGroupManagerResizeRequestRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CancelRegionInstanceGroupManagerResizeRequestRequest message. + * @function verify + * @memberof google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CancelRegionInstanceGroupManagerResizeRequestRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.instanceGroupManager != null && message.hasOwnProperty("instanceGroupManager")) + if (!$util.isString(message.instanceGroupManager)) + return "instanceGroupManager: 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"; + } + if (message.resizeRequest != null && message.hasOwnProperty("resizeRequest")) + if (!$util.isString(message.resizeRequest)) + return "resizeRequest: string expected"; + return null; + }; + + /** + * Creates a CancelRegionInstanceGroupManagerResizeRequestRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest} CancelRegionInstanceGroupManagerResizeRequestRequest + */ + CancelRegionInstanceGroupManagerResizeRequestRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest) + return object; + var message = new $root.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest(); + if (object.instanceGroupManager != null) + message.instanceGroupManager = String(object.instanceGroupManager); + 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); + if (object.resizeRequest != null) + message.resizeRequest = String(object.resizeRequest); + return message; + }; + + /** + * Creates a plain object from a CancelRegionInstanceGroupManagerResizeRequestRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest} message CancelRegionInstanceGroupManagerResizeRequestRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CancelRegionInstanceGroupManagerResizeRequestRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.resizeRequest = ""; + object.project = ""; + object.instanceGroupManager = ""; + } + 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.resizeRequest != null && message.hasOwnProperty("resizeRequest")) + object.resizeRequest = message.resizeRequest; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.instanceGroupManager != null && message.hasOwnProperty("instanceGroupManager")) + object.instanceGroupManager = message.instanceGroupManager; + return object; + }; + + /** + * Converts this CancelRegionInstanceGroupManagerResizeRequestRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + * @instance + * @returns {Object.} JSON object + */ + CancelRegionInstanceGroupManagerResizeRequestRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CancelRegionInstanceGroupManagerResizeRequestRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CancelRegionInstanceGroupManagerResizeRequestRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest"; + }; + + return CancelRegionInstanceGroupManagerResizeRequestRequest; + })(); + v1.CircuitBreakers = (function() { /** @@ -74979,6 +77098,7 @@ * @property {google.cloud.compute.v1.ILicenseResourceCommitment|null} [licenseResource] Commitment licenseResource * @property {Array.|null} [mergeSourceCommitments] Commitment mergeSourceCommitments * @property {string|null} [name] Commitment name + * @property {google.cloud.compute.v1.ICommitmentParams|null} [params] Commitment params * @property {string|null} [plan] Commitment plan * @property {string|null} [region] Commitment region * @property {Array.|null} [reservations] Commitment reservations @@ -75107,6 +77227,14 @@ */ Commitment.prototype.name = null; + /** + * Commitment params. + * @member {google.cloud.compute.v1.ICommitmentParams|null|undefined} params + * @memberof google.cloud.compute.v1.Commitment + * @instance + */ + Commitment.prototype.params = null; + /** * Commitment plan. * @member {string|null|undefined} plan @@ -75258,6 +77386,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(Commitment.prototype, "_params", { + get: $util.oneOfGetter($oneOfFields = ["params"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(Commitment.prototype, "_plan", { get: $util.oneOfGetter($oneOfFields = ["plan"]), @@ -75350,6 +77484,8 @@ writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); if (message.category != null && Object.hasOwnProperty.call(message, "category")) writer.uint32(/* id 50511102, wireType 2 =*/404088818).string(message.category); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.google.cloud.compute.v1.CommitmentParams.encode(message.params, writer.uint32(/* id 78313862, wireType 2 =*/626510898).fork()).ldelim(); if (message.startTimestamp != null && Object.hasOwnProperty.call(message, "startTimestamp")) writer.uint32(/* id 83645817, wireType 2 =*/669166538).string(message.startTimestamp); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -75474,6 +77610,10 @@ message.name = reader.string(); break; } + case 78313862: { + message.params = $root.google.cloud.compute.v1.CommitmentParams.decode(reader, reader.uint32()); + break; + } case 3443497: { message.plan = reader.string(); break; @@ -75625,6 +77765,14 @@ if (!$util.isString(message.name)) return "name: string expected"; } + if (message.params != null && message.hasOwnProperty("params")) { + properties._params = 1; + { + var error = $root.google.cloud.compute.v1.CommitmentParams.verify(message.params); + if (error) + return "params." + error; + } + } if (message.plan != null && message.hasOwnProperty("plan")) { properties._plan = 1; if (!$util.isString(message.plan)) @@ -75750,6 +77898,11 @@ } if (object.name != null) message.name = String(object.name); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".google.cloud.compute.v1.Commitment.params: object expected"); + message.params = $root.google.cloud.compute.v1.CommitmentParams.fromObject(object.params); + } if (object.plan != null) message.plan = String(object.plan); if (object.region != null) @@ -75851,6 +78004,11 @@ if (options.oneofs) object._category = "category"; } + if (message.params != null && message.hasOwnProperty("params")) { + object.params = $root.google.cloud.compute.v1.CommitmentParams.toObject(message.params, options); + if (options.oneofs) + object._params = "params"; + } if (message.startTimestamp != null && message.hasOwnProperty("startTimestamp")) { object.startTimestamp = message.startTimestamp; if (options.oneofs) @@ -76974,6 +79132,246 @@ return CommitmentList; })(); + v1.CommitmentParams = (function() { + + /** + * Properties of a CommitmentParams. + * @memberof google.cloud.compute.v1 + * @interface ICommitmentParams + * @property {Object.|null} [resourceManagerTags] CommitmentParams resourceManagerTags + */ + + /** + * Constructs a new CommitmentParams. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a CommitmentParams. + * @implements ICommitmentParams + * @constructor + * @param {google.cloud.compute.v1.ICommitmentParams=} [properties] Properties to set + */ + function CommitmentParams(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]]; + } + + /** + * CommitmentParams resourceManagerTags. + * @member {Object.} resourceManagerTags + * @memberof google.cloud.compute.v1.CommitmentParams + * @instance + */ + CommitmentParams.prototype.resourceManagerTags = $util.emptyObject; + + /** + * Creates a new CommitmentParams instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.CommitmentParams + * @static + * @param {google.cloud.compute.v1.ICommitmentParams=} [properties] Properties to set + * @returns {google.cloud.compute.v1.CommitmentParams} CommitmentParams instance + */ + CommitmentParams.create = function create(properties) { + return new CommitmentParams(properties); + }; + + /** + * Encodes the specified CommitmentParams message. Does not implicitly {@link google.cloud.compute.v1.CommitmentParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.CommitmentParams + * @static + * @param {google.cloud.compute.v1.ICommitmentParams} message CommitmentParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CommitmentParams.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 CommitmentParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1.CommitmentParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.CommitmentParams + * @static + * @param {google.cloud.compute.v1.ICommitmentParams} message CommitmentParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CommitmentParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CommitmentParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.CommitmentParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.CommitmentParams} CommitmentParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CommitmentParams.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.v1.CommitmentParams(), 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 a CommitmentParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.CommitmentParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.CommitmentParams} CommitmentParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CommitmentParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CommitmentParams message. + * @function verify + * @memberof google.cloud.compute.v1.CommitmentParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CommitmentParams.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 a CommitmentParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.CommitmentParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.CommitmentParams} CommitmentParams + */ + CommitmentParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.CommitmentParams) + return object; + var message = new $root.google.cloud.compute.v1.CommitmentParams(); + if (object.resourceManagerTags) { + if (typeof object.resourceManagerTags !== "object") + throw TypeError(".google.cloud.compute.v1.CommitmentParams.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 a CommitmentParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.CommitmentParams + * @static + * @param {google.cloud.compute.v1.CommitmentParams} message CommitmentParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CommitmentParams.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 CommitmentParams to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.CommitmentParams + * @instance + * @returns {Object.} JSON object + */ + CommitmentParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CommitmentParams + * @function getTypeUrl + * @memberof google.cloud.compute.v1.CommitmentParams + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CommitmentParams.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.CommitmentParams"; + }; + + return CommitmentParams; + })(); + v1.CommitmentResourceStatus = (function() { /** @@ -78488,6 +80886,320 @@ return CompositeHealthCheckAggregatedList; })(); + v1.CompositeHealthCheckHealth = (function() { + + /** + * Properties of a CompositeHealthCheckHealth. + * @memberof google.cloud.compute.v1 + * @interface ICompositeHealthCheckHealth + * @property {Array.|null} [healthSources] CompositeHealthCheckHealth healthSources + * @property {string|null} [healthState] CompositeHealthCheckHealth healthState + * @property {string|null} [kind] CompositeHealthCheckHealth kind + */ + + /** + * Constructs a new CompositeHealthCheckHealth. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a CompositeHealthCheckHealth. + * @implements ICompositeHealthCheckHealth + * @constructor + * @param {google.cloud.compute.v1.ICompositeHealthCheckHealth=} [properties] Properties to set + */ + function CompositeHealthCheckHealth(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]]; + } + + /** + * CompositeHealthCheckHealth healthSources. + * @member {Array.} healthSources + * @memberof google.cloud.compute.v1.CompositeHealthCheckHealth + * @instance + */ + CompositeHealthCheckHealth.prototype.healthSources = $util.emptyArray; + + /** + * CompositeHealthCheckHealth healthState. + * @member {string|null|undefined} healthState + * @memberof google.cloud.compute.v1.CompositeHealthCheckHealth + * @instance + */ + CompositeHealthCheckHealth.prototype.healthState = null; + + /** + * CompositeHealthCheckHealth kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.CompositeHealthCheckHealth + * @instance + */ + CompositeHealthCheckHealth.prototype.kind = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheckHealth.prototype, "_healthState", { + get: $util.oneOfGetter($oneOfFields = ["healthState"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheckHealth.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CompositeHealthCheckHealth instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.CompositeHealthCheckHealth + * @static + * @param {google.cloud.compute.v1.ICompositeHealthCheckHealth=} [properties] Properties to set + * @returns {google.cloud.compute.v1.CompositeHealthCheckHealth} CompositeHealthCheckHealth instance + */ + CompositeHealthCheckHealth.create = function create(properties) { + return new CompositeHealthCheckHealth(properties); + }; + + /** + * Encodes the specified CompositeHealthCheckHealth message. Does not implicitly {@link google.cloud.compute.v1.CompositeHealthCheckHealth.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.CompositeHealthCheckHealth + * @static + * @param {google.cloud.compute.v1.ICompositeHealthCheckHealth} message CompositeHealthCheckHealth message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompositeHealthCheckHealth.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.healthState != null && Object.hasOwnProperty.call(message, "healthState")) + writer.uint32(/* id 324007150, wireType 2 =*/2592057202).string(message.healthState); + if (message.healthSources != null && message.healthSources.length) + for (var i = 0; i < message.healthSources.length; ++i) + $root.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth.encode(message.healthSources[i], writer.uint32(/* id 397879509, wireType 2 =*/3183036074).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CompositeHealthCheckHealth message, length delimited. Does not implicitly {@link google.cloud.compute.v1.CompositeHealthCheckHealth.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.CompositeHealthCheckHealth + * @static + * @param {google.cloud.compute.v1.ICompositeHealthCheckHealth} message CompositeHealthCheckHealth message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompositeHealthCheckHealth.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CompositeHealthCheckHealth message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.CompositeHealthCheckHealth + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.CompositeHealthCheckHealth} CompositeHealthCheckHealth + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompositeHealthCheckHealth.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.v1.CompositeHealthCheckHealth(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 397879509: { + if (!(message.healthSources && message.healthSources.length)) + message.healthSources = []; + message.healthSources.push($root.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth.decode(reader, reader.uint32())); + break; + } + case 324007150: { + message.healthState = reader.string(); + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CompositeHealthCheckHealth message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.CompositeHealthCheckHealth + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.CompositeHealthCheckHealth} CompositeHealthCheckHealth + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompositeHealthCheckHealth.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CompositeHealthCheckHealth message. + * @function verify + * @memberof google.cloud.compute.v1.CompositeHealthCheckHealth + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompositeHealthCheckHealth.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + 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) { + var error = $root.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth.verify(message.healthSources[i]); + if (error) + return "healthSources." + error; + } + } + if (message.healthState != null && message.hasOwnProperty("healthState")) { + properties._healthState = 1; + if (!$util.isString(message.healthState)) + return "healthState: string expected"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + return null; + }; + + /** + * Creates a CompositeHealthCheckHealth message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.CompositeHealthCheckHealth + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.CompositeHealthCheckHealth} CompositeHealthCheckHealth + */ + CompositeHealthCheckHealth.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.CompositeHealthCheckHealth) + return object; + var message = new $root.google.cloud.compute.v1.CompositeHealthCheckHealth(); + if (object.healthSources) { + if (!Array.isArray(object.healthSources)) + throw TypeError(".google.cloud.compute.v1.CompositeHealthCheckHealth.healthSources: array expected"); + message.healthSources = []; + for (var i = 0; i < object.healthSources.length; ++i) { + if (typeof object.healthSources[i] !== "object") + throw TypeError(".google.cloud.compute.v1.CompositeHealthCheckHealth.healthSources: object expected"); + message.healthSources[i] = $root.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth.fromObject(object.healthSources[i]); + } + } + if (object.healthState != null) + message.healthState = String(object.healthState); + if (object.kind != null) + message.kind = String(object.kind); + return message; + }; + + /** + * Creates a plain object from a CompositeHealthCheckHealth message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.CompositeHealthCheckHealth + * @static + * @param {google.cloud.compute.v1.CompositeHealthCheckHealth} message CompositeHealthCheckHealth + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CompositeHealthCheckHealth.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.healthSources = []; + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.healthState != null && message.hasOwnProperty("healthState")) { + object.healthState = message.healthState; + if (options.oneofs) + object._healthState = "healthState"; + } + if (message.healthSources && message.healthSources.length) { + object.healthSources = []; + for (var j = 0; j < message.healthSources.length; ++j) + object.healthSources[j] = $root.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth.toObject(message.healthSources[j], options); + } + return object; + }; + + /** + * Converts this CompositeHealthCheckHealth to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.CompositeHealthCheckHealth + * @instance + * @returns {Object.} JSON object + */ + CompositeHealthCheckHealth.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CompositeHealthCheckHealth + * @function getTypeUrl + * @memberof google.cloud.compute.v1.CompositeHealthCheckHealth + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CompositeHealthCheckHealth.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.CompositeHealthCheckHealth"; + }; + + /** + * HealthState enum. + * @name google.cloud.compute.v1.CompositeHealthCheckHealth.HealthState + * @enum {number} + * @property {number} UNDEFINED_HEALTH_STATE=0 UNDEFINED_HEALTH_STATE value + * @property {number} HEALTHY=439801213 HEALTHY value + * @property {number} UNHEALTHY=462118084 UNHEALTHY value + * @property {number} UNKNOWN=433141802 UNKNOWN value + */ + CompositeHealthCheckHealth.HealthState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_HEALTH_STATE"] = 0; + values[valuesById[439801213] = "HEALTHY"] = 439801213; + values[valuesById[462118084] = "UNHEALTHY"] = 462118084; + values[valuesById[433141802] = "UNKNOWN"] = 433141802; + return values; + })(); + + return CompositeHealthCheckHealth; + })(); + v1.CompositeHealthCheckList = (function() { /** @@ -78889,6 +81601,275 @@ return CompositeHealthCheckList; })(); + v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth = (function() { + + /** + * Properties of a CompositeHealthChecksGetHealthResponseHealthSourceHealth. + * @memberof google.cloud.compute.v1 + * @interface ICompositeHealthChecksGetHealthResponseHealthSourceHealth + * @property {string|null} [healthState] CompositeHealthChecksGetHealthResponseHealthSourceHealth healthState + * @property {string|null} [source] CompositeHealthChecksGetHealthResponseHealthSourceHealth source + */ + + /** + * Constructs a new CompositeHealthChecksGetHealthResponseHealthSourceHealth. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a CompositeHealthChecksGetHealthResponseHealthSourceHealth. + * @implements ICompositeHealthChecksGetHealthResponseHealthSourceHealth + * @constructor + * @param {google.cloud.compute.v1.ICompositeHealthChecksGetHealthResponseHealthSourceHealth=} [properties] Properties to set + */ + function CompositeHealthChecksGetHealthResponseHealthSourceHealth(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]]; + } + + /** + * CompositeHealthChecksGetHealthResponseHealthSourceHealth healthState. + * @member {string|null|undefined} healthState + * @memberof google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @instance + */ + CompositeHealthChecksGetHealthResponseHealthSourceHealth.prototype.healthState = null; + + /** + * CompositeHealthChecksGetHealthResponseHealthSourceHealth source. + * @member {string|null|undefined} source + * @memberof google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @instance + */ + CompositeHealthChecksGetHealthResponseHealthSourceHealth.prototype.source = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthChecksGetHealthResponseHealthSourceHealth.prototype, "_healthState", { + get: $util.oneOfGetter($oneOfFields = ["healthState"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthChecksGetHealthResponseHealthSourceHealth.prototype, "_source", { + get: $util.oneOfGetter($oneOfFields = ["source"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CompositeHealthChecksGetHealthResponseHealthSourceHealth instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @static + * @param {google.cloud.compute.v1.ICompositeHealthChecksGetHealthResponseHealthSourceHealth=} [properties] Properties to set + * @returns {google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth} CompositeHealthChecksGetHealthResponseHealthSourceHealth instance + */ + CompositeHealthChecksGetHealthResponseHealthSourceHealth.create = function create(properties) { + return new CompositeHealthChecksGetHealthResponseHealthSourceHealth(properties); + }; + + /** + * Encodes the specified CompositeHealthChecksGetHealthResponseHealthSourceHealth message. Does not implicitly {@link google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @static + * @param {google.cloud.compute.v1.ICompositeHealthChecksGetHealthResponseHealthSourceHealth} message CompositeHealthChecksGetHealthResponseHealthSourceHealth message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompositeHealthChecksGetHealthResponseHealthSourceHealth.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.source != null && Object.hasOwnProperty.call(message, "source")) + writer.uint32(/* id 177235995, wireType 2 =*/1417887962).string(message.source); + if (message.healthState != null && Object.hasOwnProperty.call(message, "healthState")) + writer.uint32(/* id 324007150, wireType 2 =*/2592057202).string(message.healthState); + return writer; + }; + + /** + * Encodes the specified CompositeHealthChecksGetHealthResponseHealthSourceHealth message, length delimited. Does not implicitly {@link google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @static + * @param {google.cloud.compute.v1.ICompositeHealthChecksGetHealthResponseHealthSourceHealth} message CompositeHealthChecksGetHealthResponseHealthSourceHealth message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompositeHealthChecksGetHealthResponseHealthSourceHealth.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CompositeHealthChecksGetHealthResponseHealthSourceHealth message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth} CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompositeHealthChecksGetHealthResponseHealthSourceHealth.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.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 324007150: { + message.healthState = reader.string(); + break; + } + case 177235995: { + message.source = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CompositeHealthChecksGetHealthResponseHealthSourceHealth message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth} CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompositeHealthChecksGetHealthResponseHealthSourceHealth.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CompositeHealthChecksGetHealthResponseHealthSourceHealth message. + * @function verify + * @memberof google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompositeHealthChecksGetHealthResponseHealthSourceHealth.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.healthState != null && message.hasOwnProperty("healthState")) { + properties._healthState = 1; + if (!$util.isString(message.healthState)) + return "healthState: string expected"; + } + if (message.source != null && message.hasOwnProperty("source")) { + properties._source = 1; + if (!$util.isString(message.source)) + return "source: string expected"; + } + return null; + }; + + /** + * Creates a CompositeHealthChecksGetHealthResponseHealthSourceHealth message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth} CompositeHealthChecksGetHealthResponseHealthSourceHealth + */ + CompositeHealthChecksGetHealthResponseHealthSourceHealth.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth) + return object; + var message = new $root.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth(); + if (object.healthState != null) + message.healthState = String(object.healthState); + if (object.source != null) + message.source = String(object.source); + return message; + }; + + /** + * Creates a plain object from a CompositeHealthChecksGetHealthResponseHealthSourceHealth message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @static + * @param {google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth} message CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CompositeHealthChecksGetHealthResponseHealthSourceHealth.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.source != null && message.hasOwnProperty("source")) { + object.source = message.source; + if (options.oneofs) + object._source = "source"; + } + if (message.healthState != null && message.hasOwnProperty("healthState")) { + object.healthState = message.healthState; + if (options.oneofs) + object._healthState = "healthState"; + } + return object; + }; + + /** + * Converts this CompositeHealthChecksGetHealthResponseHealthSourceHealth to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @instance + * @returns {Object.} JSON object + */ + CompositeHealthChecksGetHealthResponseHealthSourceHealth.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @function getTypeUrl + * @memberof google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CompositeHealthChecksGetHealthResponseHealthSourceHealth.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth"; + }; + + /** + * HealthState enum. + * @name google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth.HealthState + * @enum {number} + * @property {number} UNDEFINED_HEALTH_STATE=0 UNDEFINED_HEALTH_STATE value + * @property {number} HEALTHY=439801213 HEALTHY value + * @property {number} UNHEALTHY=462118084 UNHEALTHY value + * @property {number} UNKNOWN=433141802 UNKNOWN value + */ + CompositeHealthChecksGetHealthResponseHealthSourceHealth.HealthState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_HEALTH_STATE"] = 0; + values[valuesById[439801213] = "HEALTHY"] = 439801213; + values[valuesById[462118084] = "UNHEALTHY"] = 462118084; + values[valuesById[433141802] = "UNKNOWN"] = 433141802; + return values; + })(); + + return CompositeHealthChecksGetHealthResponseHealthSourceHealth; + })(); + v1.CompositeHealthChecksScopedList = (function() { /** @@ -92966,27 +95947,27 @@ return DeleteInstancesRegionInstanceGroupManagerRequest; })(); - v1.DeleteInstantSnapshotRequest = (function() { + v1.DeleteInstantSnapshotGroupRequest = (function() { /** - * Properties of a DeleteInstantSnapshotRequest. + * Properties of a DeleteInstantSnapshotGroupRequest. * @memberof google.cloud.compute.v1 - * @interface IDeleteInstantSnapshotRequest - * @property {string|null} [instantSnapshot] DeleteInstantSnapshotRequest instantSnapshot - * @property {string|null} [project] DeleteInstantSnapshotRequest project - * @property {string|null} [requestId] DeleteInstantSnapshotRequest requestId - * @property {string|null} [zone] DeleteInstantSnapshotRequest zone + * @interface IDeleteInstantSnapshotGroupRequest + * @property {string|null} [instantSnapshotGroup] DeleteInstantSnapshotGroupRequest instantSnapshotGroup + * @property {string|null} [project] DeleteInstantSnapshotGroupRequest project + * @property {string|null} [requestId] DeleteInstantSnapshotGroupRequest requestId + * @property {string|null} [zone] DeleteInstantSnapshotGroupRequest zone */ /** - * Constructs a new DeleteInstantSnapshotRequest. + * Constructs a new DeleteInstantSnapshotGroupRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a DeleteInstantSnapshotRequest. - * @implements IDeleteInstantSnapshotRequest + * @classdesc Represents a DeleteInstantSnapshotGroupRequest. + * @implements IDeleteInstantSnapshotGroupRequest * @constructor - * @param {google.cloud.compute.v1.IDeleteInstantSnapshotRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IDeleteInstantSnapshotGroupRequest=} [properties] Properties to set */ - function DeleteInstantSnapshotRequest(properties) { + function DeleteInstantSnapshotGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -92994,116 +95975,405 @@ } /** - * DeleteInstantSnapshotRequest instantSnapshot. - * @member {string} instantSnapshot - * @memberof google.cloud.compute.v1.DeleteInstantSnapshotRequest + * DeleteInstantSnapshotGroupRequest instantSnapshotGroup. + * @member {string} instantSnapshotGroup + * @memberof google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest * @instance */ - DeleteInstantSnapshotRequest.prototype.instantSnapshot = ""; + DeleteInstantSnapshotGroupRequest.prototype.instantSnapshotGroup = ""; /** - * DeleteInstantSnapshotRequest project. + * DeleteInstantSnapshotGroupRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.DeleteInstantSnapshotRequest + * @memberof google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest * @instance */ - DeleteInstantSnapshotRequest.prototype.project = ""; + DeleteInstantSnapshotGroupRequest.prototype.project = ""; /** - * DeleteInstantSnapshotRequest requestId. + * DeleteInstantSnapshotGroupRequest requestId. * @member {string|null|undefined} requestId - * @memberof google.cloud.compute.v1.DeleteInstantSnapshotRequest + * @memberof google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest * @instance */ - DeleteInstantSnapshotRequest.prototype.requestId = null; + DeleteInstantSnapshotGroupRequest.prototype.requestId = null; /** - * DeleteInstantSnapshotRequest zone. + * DeleteInstantSnapshotGroupRequest zone. * @member {string} zone - * @memberof google.cloud.compute.v1.DeleteInstantSnapshotRequest + * @memberof google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest * @instance */ - DeleteInstantSnapshotRequest.prototype.zone = ""; + DeleteInstantSnapshotGroupRequest.prototype.zone = ""; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(DeleteInstantSnapshotRequest.prototype, "_requestId", { + Object.defineProperty(DeleteInstantSnapshotGroupRequest.prototype, "_requestId", { get: $util.oneOfGetter($oneOfFields = ["requestId"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new DeleteInstantSnapshotRequest instance using the specified properties. + * Creates a new DeleteInstantSnapshotGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.DeleteInstantSnapshotRequest + * @memberof google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1.IDeleteInstantSnapshotRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.DeleteInstantSnapshotRequest} DeleteInstantSnapshotRequest instance + * @param {google.cloud.compute.v1.IDeleteInstantSnapshotGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest} DeleteInstantSnapshotGroupRequest instance */ - DeleteInstantSnapshotRequest.create = function create(properties) { - return new DeleteInstantSnapshotRequest(properties); + DeleteInstantSnapshotGroupRequest.create = function create(properties) { + return new DeleteInstantSnapshotGroupRequest(properties); }; /** - * Encodes the specified DeleteInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.DeleteInstantSnapshotRequest.verify|verify} messages. + * Encodes the specified DeleteInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.DeleteInstantSnapshotRequest + * @memberof google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1.IDeleteInstantSnapshotRequest} message DeleteInstantSnapshotRequest message or plain object to encode + * @param {google.cloud.compute.v1.IDeleteInstantSnapshotGroupRequest} message DeleteInstantSnapshotGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteInstantSnapshotRequest.encode = function encode(message, writer) { + DeleteInstantSnapshotGroupRequest.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.instantSnapshotGroup != null && Object.hasOwnProperty.call(message, "instantSnapshotGroup")) + writer.uint32(/* id 223180386, wireType 2 =*/1785443090).string(message.instantSnapshotGroup); if (message.project != null && Object.hasOwnProperty.call(message, "project")) writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); - if (message.instantSnapshot != null && Object.hasOwnProperty.call(message, "instantSnapshot")) - writer.uint32(/* id 391638626, wireType 2 =*/3133109010).string(message.instantSnapshot); return writer; }; /** - * Encodes the specified DeleteInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.DeleteInstantSnapshotRequest.verify|verify} messages. + * Encodes the specified DeleteInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.DeleteInstantSnapshotRequest + * @memberof google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1.IDeleteInstantSnapshotRequest} message DeleteInstantSnapshotRequest message or plain object to encode + * @param {google.cloud.compute.v1.IDeleteInstantSnapshotGroupRequest} message DeleteInstantSnapshotGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteInstantSnapshotGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteInstantSnapshotRequest message from the specified reader or buffer. + * Decodes a DeleteInstantSnapshotGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.DeleteInstantSnapshotRequest + * @memberof google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.DeleteInstantSnapshotRequest} DeleteInstantSnapshotRequest + * @returns {google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest} DeleteInstantSnapshotGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteInstantSnapshotRequest.decode = function decode(reader, length, error) { + DeleteInstantSnapshotGroupRequest.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.v1.DeleteInstantSnapshotRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { - case 391638626: { - message.instantSnapshot = reader.string(); + case 223180386: { + message.instantSnapshotGroup = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest} DeleteInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteInstantSnapshotGroupRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteInstantSnapshotGroupRequest message. + * @function verify + * @memberof google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteInstantSnapshotGroupRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.instantSnapshotGroup != null && message.hasOwnProperty("instantSnapshotGroup")) + if (!$util.isString(message.instantSnapshotGroup)) + return "instantSnapshotGroup: string expected"; + 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.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates a DeleteInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest} DeleteInstantSnapshotGroupRequest + */ + DeleteInstantSnapshotGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest) + return object; + var message = new $root.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest(); + if (object.instantSnapshotGroup != null) + message.instantSnapshotGroup = String(object.instantSnapshotGroup); + if (object.project != null) + message.project = String(object.project); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from a DeleteInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest} message DeleteInstantSnapshotGroupRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteInstantSnapshotGroupRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.instantSnapshotGroup = ""; + object.project = ""; + } + 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.instantSnapshotGroup != null && message.hasOwnProperty("instantSnapshotGroup")) + object.instantSnapshotGroup = message.instantSnapshotGroup; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + return object; + }; + + /** + * Converts this DeleteInstantSnapshotGroupRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteInstantSnapshotGroupRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteInstantSnapshotGroupRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteInstantSnapshotGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest"; + }; + + return DeleteInstantSnapshotGroupRequest; + })(); + + v1.DeleteInstantSnapshotRequest = (function() { + + /** + * Properties of a DeleteInstantSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @interface IDeleteInstantSnapshotRequest + * @property {string|null} [instantSnapshot] DeleteInstantSnapshotRequest instantSnapshot + * @property {string|null} [project] DeleteInstantSnapshotRequest project + * @property {string|null} [requestId] DeleteInstantSnapshotRequest requestId + * @property {string|null} [zone] DeleteInstantSnapshotRequest zone + */ + + /** + * Constructs a new DeleteInstantSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a DeleteInstantSnapshotRequest. + * @implements IDeleteInstantSnapshotRequest + * @constructor + * @param {google.cloud.compute.v1.IDeleteInstantSnapshotRequest=} [properties] Properties to set + */ + function DeleteInstantSnapshotRequest(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]]; + } + + /** + * DeleteInstantSnapshotRequest instantSnapshot. + * @member {string} instantSnapshot + * @memberof google.cloud.compute.v1.DeleteInstantSnapshotRequest + * @instance + */ + DeleteInstantSnapshotRequest.prototype.instantSnapshot = ""; + + /** + * DeleteInstantSnapshotRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.DeleteInstantSnapshotRequest + * @instance + */ + DeleteInstantSnapshotRequest.prototype.project = ""; + + /** + * DeleteInstantSnapshotRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.DeleteInstantSnapshotRequest + * @instance + */ + DeleteInstantSnapshotRequest.prototype.requestId = null; + + /** + * DeleteInstantSnapshotRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.DeleteInstantSnapshotRequest + * @instance + */ + DeleteInstantSnapshotRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(DeleteInstantSnapshotRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DeleteInstantSnapshotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.DeleteInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IDeleteInstantSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.DeleteInstantSnapshotRequest} DeleteInstantSnapshotRequest instance + */ + DeleteInstantSnapshotRequest.create = function create(properties) { + return new DeleteInstantSnapshotRequest(properties); + }; + + /** + * Encodes the specified DeleteInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.DeleteInstantSnapshotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.DeleteInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IDeleteInstantSnapshotRequest} message DeleteInstantSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteInstantSnapshotRequest.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.instantSnapshot != null && Object.hasOwnProperty.call(message, "instantSnapshot")) + writer.uint32(/* id 391638626, wireType 2 =*/3133109010).string(message.instantSnapshot); + return writer; + }; + + /** + * Encodes the specified DeleteInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.DeleteInstantSnapshotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.DeleteInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IDeleteInstantSnapshotRequest} message DeleteInstantSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteInstantSnapshotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.DeleteInstantSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.DeleteInstantSnapshotRequest} DeleteInstantSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteInstantSnapshotRequest.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.v1.DeleteInstantSnapshotRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 391638626: { + message.instantSnapshot = reader.string(); break; } case 227560217: { @@ -99415,6 +102685,295 @@ return DeleteRegionAutoscalerRequest; })(); + v1.DeleteRegionBackendBucketRequest = (function() { + + /** + * Properties of a DeleteRegionBackendBucketRequest. + * @memberof google.cloud.compute.v1 + * @interface IDeleteRegionBackendBucketRequest + * @property {string|null} [backendBucket] DeleteRegionBackendBucketRequest backendBucket + * @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.v1 + * @classdesc Represents a DeleteRegionBackendBucketRequest. + * @implements IDeleteRegionBackendBucketRequest + * @constructor + * @param {google.cloud.compute.v1.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.v1.DeleteRegionBackendBucketRequest + * @instance + */ + DeleteRegionBackendBucketRequest.prototype.backendBucket = ""; + + /** + * DeleteRegionBackendBucketRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.DeleteRegionBackendBucketRequest + * @instance + */ + DeleteRegionBackendBucketRequest.prototype.project = ""; + + /** + * DeleteRegionBackendBucketRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.DeleteRegionBackendBucketRequest + * @instance + */ + DeleteRegionBackendBucketRequest.prototype.region = ""; + + /** + * DeleteRegionBackendBucketRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.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, "_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.v1.DeleteRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1.IDeleteRegionBackendBucketRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.DeleteRegionBackendBucketRequest} DeleteRegionBackendBucketRequest instance + */ + DeleteRegionBackendBucketRequest.create = function create(properties) { + return new DeleteRegionBackendBucketRequest(properties); + }; + + /** + * Encodes the specified DeleteRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionBackendBucketRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.DeleteRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1.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.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.v1.DeleteRegionBackendBucketRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.DeleteRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.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.v1.DeleteRegionBackendBucketRequest(); + 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; + } + 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.v1.DeleteRegionBackendBucketRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.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.v1.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.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.v1.DeleteRegionBackendBucketRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.DeleteRegionBackendBucketRequest} DeleteRegionBackendBucketRequest + */ + DeleteRegionBackendBucketRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.DeleteRegionBackendBucketRequest) + return object; + var message = new $root.google.cloud.compute.v1.DeleteRegionBackendBucketRequest(); + 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); + 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.v1.DeleteRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1.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.project != null && message.hasOwnProperty("project")) + object.project = message.project; + return object; + }; + + /** + * Converts this DeleteRegionBackendBucketRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.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.v1.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.v1.DeleteRegionBackendBucketRequest"; + }; + + return DeleteRegionBackendBucketRequest; + })(); + v1.DeleteRegionBackendServiceRequest = (function() { /** @@ -101727,6 +105286,318 @@ return DeleteRegionInstanceGroupManagerRequest; })(); + v1.DeleteRegionInstanceGroupManagerResizeRequestRequest = (function() { + + /** + * Properties of a DeleteRegionInstanceGroupManagerResizeRequestRequest. + * @memberof google.cloud.compute.v1 + * @interface IDeleteRegionInstanceGroupManagerResizeRequestRequest + * @property {string|null} [instanceGroupManager] DeleteRegionInstanceGroupManagerResizeRequestRequest instanceGroupManager + * @property {string|null} [project] DeleteRegionInstanceGroupManagerResizeRequestRequest project + * @property {string|null} [region] DeleteRegionInstanceGroupManagerResizeRequestRequest region + * @property {string|null} [requestId] DeleteRegionInstanceGroupManagerResizeRequestRequest requestId + * @property {string|null} [resizeRequest] DeleteRegionInstanceGroupManagerResizeRequestRequest resizeRequest + */ + + /** + * Constructs a new DeleteRegionInstanceGroupManagerResizeRequestRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a DeleteRegionInstanceGroupManagerResizeRequestRequest. + * @implements IDeleteRegionInstanceGroupManagerResizeRequestRequest + * @constructor + * @param {google.cloud.compute.v1.IDeleteRegionInstanceGroupManagerResizeRequestRequest=} [properties] Properties to set + */ + function DeleteRegionInstanceGroupManagerResizeRequestRequest(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]]; + } + + /** + * DeleteRegionInstanceGroupManagerResizeRequestRequest instanceGroupManager. + * @member {string} instanceGroupManager + * @memberof google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + * @instance + */ + DeleteRegionInstanceGroupManagerResizeRequestRequest.prototype.instanceGroupManager = ""; + + /** + * DeleteRegionInstanceGroupManagerResizeRequestRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + * @instance + */ + DeleteRegionInstanceGroupManagerResizeRequestRequest.prototype.project = ""; + + /** + * DeleteRegionInstanceGroupManagerResizeRequestRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + * @instance + */ + DeleteRegionInstanceGroupManagerResizeRequestRequest.prototype.region = ""; + + /** + * DeleteRegionInstanceGroupManagerResizeRequestRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + * @instance + */ + DeleteRegionInstanceGroupManagerResizeRequestRequest.prototype.requestId = null; + + /** + * DeleteRegionInstanceGroupManagerResizeRequestRequest resizeRequest. + * @member {string} resizeRequest + * @memberof google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + * @instance + */ + DeleteRegionInstanceGroupManagerResizeRequestRequest.prototype.resizeRequest = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(DeleteRegionInstanceGroupManagerResizeRequestRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DeleteRegionInstanceGroupManagerResizeRequestRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {google.cloud.compute.v1.IDeleteRegionInstanceGroupManagerResizeRequestRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest} DeleteRegionInstanceGroupManagerResizeRequestRequest instance + */ + DeleteRegionInstanceGroupManagerResizeRequestRequest.create = function create(properties) { + return new DeleteRegionInstanceGroupManagerResizeRequestRequest(properties); + }; + + /** + * Encodes the specified DeleteRegionInstanceGroupManagerResizeRequestRequest message. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {google.cloud.compute.v1.IDeleteRegionInstanceGroupManagerResizeRequestRequest} message DeleteRegionInstanceGroupManagerResizeRequestRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteRegionInstanceGroupManagerResizeRequestRequest.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.resizeRequest != null && Object.hasOwnProperty.call(message, "resizeRequest")) + writer.uint32(/* id 216941060, wireType 2 =*/1735528482).string(message.resizeRequest); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.instanceGroupManager != null && Object.hasOwnProperty.call(message, "instanceGroupManager")) + writer.uint32(/* id 249363395, wireType 2 =*/1994907162).string(message.instanceGroupManager); + return writer; + }; + + /** + * Encodes the specified DeleteRegionInstanceGroupManagerResizeRequestRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {google.cloud.compute.v1.IDeleteRegionInstanceGroupManagerResizeRequestRequest} message DeleteRegionInstanceGroupManagerResizeRequestRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteRegionInstanceGroupManagerResizeRequestRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteRegionInstanceGroupManagerResizeRequestRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest} DeleteRegionInstanceGroupManagerResizeRequestRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteRegionInstanceGroupManagerResizeRequestRequest.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.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 249363395: { + message.instanceGroupManager = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + case 216941060: { + message.resizeRequest = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteRegionInstanceGroupManagerResizeRequestRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest} DeleteRegionInstanceGroupManagerResizeRequestRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteRegionInstanceGroupManagerResizeRequestRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteRegionInstanceGroupManagerResizeRequestRequest message. + * @function verify + * @memberof google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteRegionInstanceGroupManagerResizeRequestRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.instanceGroupManager != null && message.hasOwnProperty("instanceGroupManager")) + if (!$util.isString(message.instanceGroupManager)) + return "instanceGroupManager: 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"; + } + if (message.resizeRequest != null && message.hasOwnProperty("resizeRequest")) + if (!$util.isString(message.resizeRequest)) + return "resizeRequest: string expected"; + return null; + }; + + /** + * Creates a DeleteRegionInstanceGroupManagerResizeRequestRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest} DeleteRegionInstanceGroupManagerResizeRequestRequest + */ + DeleteRegionInstanceGroupManagerResizeRequestRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest) + return object; + var message = new $root.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest(); + if (object.instanceGroupManager != null) + message.instanceGroupManager = String(object.instanceGroupManager); + 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); + if (object.resizeRequest != null) + message.resizeRequest = String(object.resizeRequest); + return message; + }; + + /** + * Creates a plain object from a DeleteRegionInstanceGroupManagerResizeRequestRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest} message DeleteRegionInstanceGroupManagerResizeRequestRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteRegionInstanceGroupManagerResizeRequestRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.resizeRequest = ""; + object.project = ""; + object.instanceGroupManager = ""; + } + 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.resizeRequest != null && message.hasOwnProperty("resizeRequest")) + object.resizeRequest = message.resizeRequest; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.instanceGroupManager != null && message.hasOwnProperty("instanceGroupManager")) + object.instanceGroupManager = message.instanceGroupManager; + return object; + }; + + /** + * Converts this DeleteRegionInstanceGroupManagerResizeRequestRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteRegionInstanceGroupManagerResizeRequestRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteRegionInstanceGroupManagerResizeRequestRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteRegionInstanceGroupManagerResizeRequestRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest"; + }; + + return DeleteRegionInstanceGroupManagerResizeRequestRequest; + })(); + v1.DeleteRegionInstanceTemplateRequest = (function() { /** @@ -102016,6 +105887,295 @@ return DeleteRegionInstanceTemplateRequest; })(); + v1.DeleteRegionInstantSnapshotGroupRequest = (function() { + + /** + * Properties of a DeleteRegionInstantSnapshotGroupRequest. + * @memberof google.cloud.compute.v1 + * @interface IDeleteRegionInstantSnapshotGroupRequest + * @property {string|null} [instantSnapshotGroup] DeleteRegionInstantSnapshotGroupRequest instantSnapshotGroup + * @property {string|null} [project] DeleteRegionInstantSnapshotGroupRequest project + * @property {string|null} [region] DeleteRegionInstantSnapshotGroupRequest region + * @property {string|null} [requestId] DeleteRegionInstantSnapshotGroupRequest requestId + */ + + /** + * Constructs a new DeleteRegionInstantSnapshotGroupRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a DeleteRegionInstantSnapshotGroupRequest. + * @implements IDeleteRegionInstantSnapshotGroupRequest + * @constructor + * @param {google.cloud.compute.v1.IDeleteRegionInstantSnapshotGroupRequest=} [properties] Properties to set + */ + function DeleteRegionInstantSnapshotGroupRequest(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]]; + } + + /** + * DeleteRegionInstantSnapshotGroupRequest instantSnapshotGroup. + * @member {string} instantSnapshotGroup + * @memberof google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest + * @instance + */ + DeleteRegionInstantSnapshotGroupRequest.prototype.instantSnapshotGroup = ""; + + /** + * DeleteRegionInstantSnapshotGroupRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest + * @instance + */ + DeleteRegionInstantSnapshotGroupRequest.prototype.project = ""; + + /** + * DeleteRegionInstantSnapshotGroupRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest + * @instance + */ + DeleteRegionInstantSnapshotGroupRequest.prototype.region = ""; + + /** + * DeleteRegionInstantSnapshotGroupRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest + * @instance + */ + DeleteRegionInstantSnapshotGroupRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(DeleteRegionInstantSnapshotGroupRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DeleteRegionInstantSnapshotGroupRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.IDeleteRegionInstantSnapshotGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest} DeleteRegionInstantSnapshotGroupRequest instance + */ + DeleteRegionInstantSnapshotGroupRequest.create = function create(properties) { + return new DeleteRegionInstantSnapshotGroupRequest(properties); + }; + + /** + * Encodes the specified DeleteRegionInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.IDeleteRegionInstantSnapshotGroupRequest} message DeleteRegionInstantSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteRegionInstantSnapshotGroupRequest.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.instantSnapshotGroup != null && Object.hasOwnProperty.call(message, "instantSnapshotGroup")) + writer.uint32(/* id 223180386, wireType 2 =*/1785443090).string(message.instantSnapshotGroup); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + return writer; + }; + + /** + * Encodes the specified DeleteRegionInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.IDeleteRegionInstantSnapshotGroupRequest} message DeleteRegionInstantSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteRegionInstantSnapshotGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteRegionInstantSnapshotGroupRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest} DeleteRegionInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteRegionInstantSnapshotGroupRequest.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.v1.DeleteRegionInstantSnapshotGroupRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 223180386: { + message.instantSnapshotGroup = 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 DeleteRegionInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest} DeleteRegionInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteRegionInstantSnapshotGroupRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteRegionInstantSnapshotGroupRequest message. + * @function verify + * @memberof google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteRegionInstantSnapshotGroupRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.instantSnapshotGroup != null && message.hasOwnProperty("instantSnapshotGroup")) + if (!$util.isString(message.instantSnapshotGroup)) + return "instantSnapshotGroup: 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 DeleteRegionInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest} DeleteRegionInstantSnapshotGroupRequest + */ + DeleteRegionInstantSnapshotGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest) + return object; + var message = new $root.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest(); + if (object.instantSnapshotGroup != null) + message.instantSnapshotGroup = String(object.instantSnapshotGroup); + 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 DeleteRegionInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest} message DeleteRegionInstantSnapshotGroupRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteRegionInstantSnapshotGroupRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.instantSnapshotGroup = ""; + 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.instantSnapshotGroup != null && message.hasOwnProperty("instantSnapshotGroup")) + object.instantSnapshotGroup = message.instantSnapshotGroup; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + return object; + }; + + /** + * Converts this DeleteRegionInstantSnapshotGroupRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteRegionInstantSnapshotGroupRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteRegionInstantSnapshotGroupRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteRegionInstantSnapshotGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest"; + }; + + return DeleteRegionInstantSnapshotGroupRequest; + })(); + v1.DeleteRegionInstantSnapshotRequest = (function() { /** @@ -103890,6 +108050,295 @@ return DeleteRegionSecurityPolicyRequest; })(); + v1.DeleteRegionSnapshotRequest = (function() { + + /** + * Properties of a DeleteRegionSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @interface IDeleteRegionSnapshotRequest + * @property {string|null} [project] DeleteRegionSnapshotRequest project + * @property {string|null} [region] DeleteRegionSnapshotRequest region + * @property {string|null} [requestId] DeleteRegionSnapshotRequest requestId + * @property {string|null} [snapshot] DeleteRegionSnapshotRequest snapshot + */ + + /** + * Constructs a new DeleteRegionSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a DeleteRegionSnapshotRequest. + * @implements IDeleteRegionSnapshotRequest + * @constructor + * @param {google.cloud.compute.v1.IDeleteRegionSnapshotRequest=} [properties] Properties to set + */ + function DeleteRegionSnapshotRequest(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]]; + } + + /** + * DeleteRegionSnapshotRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.DeleteRegionSnapshotRequest + * @instance + */ + DeleteRegionSnapshotRequest.prototype.project = ""; + + /** + * DeleteRegionSnapshotRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.DeleteRegionSnapshotRequest + * @instance + */ + DeleteRegionSnapshotRequest.prototype.region = ""; + + /** + * DeleteRegionSnapshotRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.DeleteRegionSnapshotRequest + * @instance + */ + DeleteRegionSnapshotRequest.prototype.requestId = null; + + /** + * DeleteRegionSnapshotRequest snapshot. + * @member {string} snapshot + * @memberof google.cloud.compute.v1.DeleteRegionSnapshotRequest + * @instance + */ + DeleteRegionSnapshotRequest.prototype.snapshot = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(DeleteRegionSnapshotRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DeleteRegionSnapshotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.DeleteRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IDeleteRegionSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.DeleteRegionSnapshotRequest} DeleteRegionSnapshotRequest instance + */ + DeleteRegionSnapshotRequest.create = function create(properties) { + return new DeleteRegionSnapshotRequest(properties); + }; + + /** + * Encodes the specified DeleteRegionSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionSnapshotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.DeleteRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IDeleteRegionSnapshotRequest} message DeleteRegionSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteRegionSnapshotRequest.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.snapshot != null && Object.hasOwnProperty.call(message, "snapshot")) + writer.uint32(/* id 284874180, wireType 2 =*/2278993442).string(message.snapshot); + return writer; + }; + + /** + * Encodes the specified DeleteRegionSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionSnapshotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.DeleteRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IDeleteRegionSnapshotRequest} message DeleteRegionSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteRegionSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteRegionSnapshotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.DeleteRegionSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.DeleteRegionSnapshotRequest} DeleteRegionSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteRegionSnapshotRequest.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.v1.DeleteRegionSnapshotRequest(); + 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 37109963: { + message.requestId = reader.string(); + break; + } + case 284874180: { + message.snapshot = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteRegionSnapshotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.DeleteRegionSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.DeleteRegionSnapshotRequest} DeleteRegionSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteRegionSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteRegionSnapshotRequest message. + * @function verify + * @memberof google.cloud.compute.v1.DeleteRegionSnapshotRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteRegionSnapshotRequest.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.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"; + } + if (message.snapshot != null && message.hasOwnProperty("snapshot")) + if (!$util.isString(message.snapshot)) + return "snapshot: string expected"; + return null; + }; + + /** + * Creates a DeleteRegionSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.DeleteRegionSnapshotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.DeleteRegionSnapshotRequest} DeleteRegionSnapshotRequest + */ + DeleteRegionSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.DeleteRegionSnapshotRequest) + return object; + var message = new $root.google.cloud.compute.v1.DeleteRegionSnapshotRequest(); + 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); + if (object.snapshot != null) + message.snapshot = String(object.snapshot); + return message; + }; + + /** + * Creates a plain object from a DeleteRegionSnapshotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.DeleteRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.DeleteRegionSnapshotRequest} message DeleteRegionSnapshotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteRegionSnapshotRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.snapshot = ""; + } + 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.snapshot != null && message.hasOwnProperty("snapshot")) + object.snapshot = message.snapshot; + return object; + }; + + /** + * Converts this DeleteRegionSnapshotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.DeleteRegionSnapshotRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteRegionSnapshotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteRegionSnapshotRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.DeleteRegionSnapshotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteRegionSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.DeleteRegionSnapshotRequest"; + }; + + return DeleteRegionSnapshotRequest; + })(); + v1.DeleteRegionSslCertificateRequest = (function() { /** @@ -113347,6 +117796,295 @@ return DeleteZoneOperationResponse; })(); + v1.DeleteZoneVmExtensionPolicyRequest = (function() { + + /** + * Properties of a DeleteZoneVmExtensionPolicyRequest. + * @memberof google.cloud.compute.v1 + * @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.v1 + * @classdesc Represents a DeleteZoneVmExtensionPolicyRequest. + * @implements IDeleteZoneVmExtensionPolicyRequest + * @constructor + * @param {google.cloud.compute.v1.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.v1.DeleteZoneVmExtensionPolicyRequest + * @instance + */ + DeleteZoneVmExtensionPolicyRequest.prototype.project = ""; + + /** + * DeleteZoneVmExtensionPolicyRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest + * @instance + */ + DeleteZoneVmExtensionPolicyRequest.prototype.requestId = null; + + /** + * DeleteZoneVmExtensionPolicyRequest vmExtensionPolicy. + * @member {string} vmExtensionPolicy + * @memberof google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest + * @instance + */ + DeleteZoneVmExtensionPolicyRequest.prototype.vmExtensionPolicy = ""; + + /** + * DeleteZoneVmExtensionPolicyRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.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.v1.DeleteZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1.IDeleteZoneVmExtensionPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest} DeleteZoneVmExtensionPolicyRequest instance + */ + DeleteZoneVmExtensionPolicyRequest.create = function create(properties) { + return new DeleteZoneVmExtensionPolicyRequest(properties); + }; + + /** + * Encodes the specified DeleteZoneVmExtensionPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1.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.v1.DeleteZoneVmExtensionPolicyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.DeleteZoneVmExtensionPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.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.v1.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.v1.DeleteZoneVmExtensionPolicyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest} DeleteZoneVmExtensionPolicyRequest + */ + DeleteZoneVmExtensionPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest) + return object; + var message = new $root.google.cloud.compute.v1.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.v1.DeleteZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.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.v1.DeleteZoneVmExtensionPolicyRequest"; + }; + + return DeleteZoneVmExtensionPolicyRequest; + })(); + v1.Denied = (function() { /** @@ -122598,6 +127336,224 @@ return DiskTypesScopedList; })(); + v1.DiskUpdateKmsKeyRequest = (function() { + + /** + * Properties of a DiskUpdateKmsKeyRequest. + * @memberof google.cloud.compute.v1 + * @interface IDiskUpdateKmsKeyRequest + * @property {string|null} [kmsKeyName] DiskUpdateKmsKeyRequest kmsKeyName + */ + + /** + * Constructs a new DiskUpdateKmsKeyRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a DiskUpdateKmsKeyRequest. + * @implements IDiskUpdateKmsKeyRequest + * @constructor + * @param {google.cloud.compute.v1.IDiskUpdateKmsKeyRequest=} [properties] Properties to set + */ + function DiskUpdateKmsKeyRequest(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]]; + } + + /** + * DiskUpdateKmsKeyRequest kmsKeyName. + * @member {string|null|undefined} kmsKeyName + * @memberof google.cloud.compute.v1.DiskUpdateKmsKeyRequest + * @instance + */ + DiskUpdateKmsKeyRequest.prototype.kmsKeyName = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(DiskUpdateKmsKeyRequest.prototype, "_kmsKeyName", { + get: $util.oneOfGetter($oneOfFields = ["kmsKeyName"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DiskUpdateKmsKeyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.DiskUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1.IDiskUpdateKmsKeyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.DiskUpdateKmsKeyRequest} DiskUpdateKmsKeyRequest instance + */ + DiskUpdateKmsKeyRequest.create = function create(properties) { + return new DiskUpdateKmsKeyRequest(properties); + }; + + /** + * Encodes the specified DiskUpdateKmsKeyRequest message. Does not implicitly {@link google.cloud.compute.v1.DiskUpdateKmsKeyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.DiskUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1.IDiskUpdateKmsKeyRequest} message DiskUpdateKmsKeyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DiskUpdateKmsKeyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName")) + writer.uint32(/* id 484373913, wireType 2 =*/3874991306).string(message.kmsKeyName); + return writer; + }; + + /** + * Encodes the specified DiskUpdateKmsKeyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.DiskUpdateKmsKeyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.DiskUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1.IDiskUpdateKmsKeyRequest} message DiskUpdateKmsKeyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DiskUpdateKmsKeyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DiskUpdateKmsKeyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.DiskUpdateKmsKeyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.DiskUpdateKmsKeyRequest} DiskUpdateKmsKeyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DiskUpdateKmsKeyRequest.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.v1.DiskUpdateKmsKeyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 484373913: { + message.kmsKeyName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DiskUpdateKmsKeyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.DiskUpdateKmsKeyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.DiskUpdateKmsKeyRequest} DiskUpdateKmsKeyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DiskUpdateKmsKeyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DiskUpdateKmsKeyRequest message. + * @function verify + * @memberof google.cloud.compute.v1.DiskUpdateKmsKeyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DiskUpdateKmsKeyRequest.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 a DiskUpdateKmsKeyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.DiskUpdateKmsKeyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.DiskUpdateKmsKeyRequest} DiskUpdateKmsKeyRequest + */ + DiskUpdateKmsKeyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.DiskUpdateKmsKeyRequest) + return object; + var message = new $root.google.cloud.compute.v1.DiskUpdateKmsKeyRequest(); + if (object.kmsKeyName != null) + message.kmsKeyName = String(object.kmsKeyName); + return message; + }; + + /** + * Creates a plain object from a DiskUpdateKmsKeyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.DiskUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1.DiskUpdateKmsKeyRequest} message DiskUpdateKmsKeyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DiskUpdateKmsKeyRequest.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 DiskUpdateKmsKeyRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.DiskUpdateKmsKeyRequest + * @instance + * @returns {Object.} JSON object + */ + DiskUpdateKmsKeyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DiskUpdateKmsKeyRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.DiskUpdateKmsKeyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DiskUpdateKmsKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.DiskUpdateKmsKeyRequest"; + }; + + return DiskUpdateKmsKeyRequest; + })(); + v1.DisksAddResourcePoliciesRequest = (function() { /** @@ -139863,6 +144819,7 @@ * @property {google.cloud.compute.v1.IDuration|null} [autoCreatedReservationsDuration] FutureReservation autoCreatedReservationsDuration * @property {boolean|null} [autoDeleteAutoCreatedReservations] FutureReservation autoDeleteAutoCreatedReservations * @property {google.cloud.compute.v1.IFutureReservationCommitmentInfo|null} [commitmentInfo] FutureReservation commitmentInfo + * @property {string|null} [confidentialComputeType] FutureReservation confidentialComputeType * @property {string|null} [creationTimestamp] FutureReservation creationTimestamp * @property {string|null} [deploymentType] FutureReservation deploymentType * @property {string|null} [description] FutureReservation description @@ -139871,6 +144828,7 @@ * @property {string|null} [kind] FutureReservation kind * @property {string|null} [name] FutureReservation name * @property {string|null} [namePrefix] FutureReservation namePrefix + * @property {google.cloud.compute.v1.IFutureReservationParams|null} [params] FutureReservation params * @property {string|null} [planningStatus] FutureReservation planningStatus * @property {string|null} [reservationMode] FutureReservation reservationMode * @property {string|null} [reservationName] FutureReservation reservationName @@ -139940,6 +144898,14 @@ */ FutureReservation.prototype.commitmentInfo = null; + /** + * FutureReservation confidentialComputeType. + * @member {string|null|undefined} confidentialComputeType + * @memberof google.cloud.compute.v1.FutureReservation + * @instance + */ + FutureReservation.prototype.confidentialComputeType = null; + /** * FutureReservation creationTimestamp. * @member {string|null|undefined} creationTimestamp @@ -140004,6 +144970,14 @@ */ FutureReservation.prototype.namePrefix = null; + /** + * FutureReservation params. + * @member {google.cloud.compute.v1.IFutureReservationParams|null|undefined} params + * @memberof google.cloud.compute.v1.FutureReservation + * @instance + */ + FutureReservation.prototype.params = null; + /** * FutureReservation planningStatus. * @member {string|null|undefined} planningStatus @@ -140133,6 +145107,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(FutureReservation.prototype, "_confidentialComputeType", { + get: $util.oneOfGetter($oneOfFields = ["confidentialComputeType"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(FutureReservation.prototype, "_creationTimestamp", { get: $util.oneOfGetter($oneOfFields = ["creationTimestamp"]), @@ -140181,6 +145161,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(FutureReservation.prototype, "_params", { + get: $util.oneOfGetter($oneOfFields = ["params"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(FutureReservation.prototype, "_planningStatus", { get: $util.oneOfGetter($oneOfFields = ["planningStatus"]), @@ -140291,6 +145277,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.params != null && Object.hasOwnProperty.call(message, "params")) + $root.google.cloud.compute.v1.FutureReservationParams.encode(message.params, writer.uint32(/* id 78313862, wireType 2 =*/626510898).fork()).ldelim(); if (message.specificSkuProperties != null && Object.hasOwnProperty.call(message, "specificSkuProperties")) $root.google.cloud.compute.v1.FutureReservationSpecificSKUProperties.encode(message.specificSkuProperties, writer.uint32(/* id 108887106, wireType 2 =*/871096850).fork()).ldelim(); if (message.commitmentInfo != null && Object.hasOwnProperty.call(message, "commitmentInfo")) @@ -140315,6 +145303,8 @@ $root.google.cloud.compute.v1.AllocationAggregateReservation.encode(message.aggregateReservation, writer.uint32(/* id 291567948, wireType 2 =*/2332543586).fork()).ldelim(); if (message.enableEmergentMaintenance != null && Object.hasOwnProperty.call(message, "enableEmergentMaintenance")) writer.uint32(/* id 353759497, wireType 0 =*/2830075976).bool(message.enableEmergentMaintenance); + if (message.confidentialComputeType != null && Object.hasOwnProperty.call(message, "confidentialComputeType")) + writer.uint32(/* id 386447257, wireType 2 =*/3091578058).string(message.confidentialComputeType); if (message.deploymentType != null && Object.hasOwnProperty.call(message, "deploymentType")) writer.uint32(/* id 396722292, wireType 2 =*/3173778338).string(message.deploymentType); if (message.description != null && Object.hasOwnProperty.call(message, "description")) @@ -140383,6 +145373,10 @@ message.commitmentInfo = $root.google.cloud.compute.v1.FutureReservationCommitmentInfo.decode(reader, reader.uint32()); break; } + case 386447257: { + message.confidentialComputeType = reader.string(); + break; + } case 30525366: { message.creationTimestamp = reader.string(); break; @@ -140415,6 +145409,10 @@ message.namePrefix = reader.string(); break; } + case 78313862: { + message.params = $root.google.cloud.compute.v1.FutureReservationParams.decode(reader, reader.uint32()); + break; + } case 19714836: { message.planningStatus = reader.string(); break; @@ -140533,6 +145531,11 @@ return "commitmentInfo." + error; } } + if (message.confidentialComputeType != null && message.hasOwnProperty("confidentialComputeType")) { + properties._confidentialComputeType = 1; + if (!$util.isString(message.confidentialComputeType)) + return "confidentialComputeType: string expected"; + } if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { properties._creationTimestamp = 1; if (!$util.isString(message.creationTimestamp)) @@ -140573,6 +145576,14 @@ if (!$util.isString(message.namePrefix)) return "namePrefix: string expected"; } + if (message.params != null && message.hasOwnProperty("params")) { + properties._params = 1; + { + var error = $root.google.cloud.compute.v1.FutureReservationParams.verify(message.params); + if (error) + return "params." + error; + } + } if (message.planningStatus != null && message.hasOwnProperty("planningStatus")) { properties._planningStatus = 1; if (!$util.isString(message.planningStatus)) @@ -140679,6 +145690,8 @@ throw TypeError(".google.cloud.compute.v1.FutureReservation.commitmentInfo: object expected"); message.commitmentInfo = $root.google.cloud.compute.v1.FutureReservationCommitmentInfo.fromObject(object.commitmentInfo); } + if (object.confidentialComputeType != null) + message.confidentialComputeType = String(object.confidentialComputeType); if (object.creationTimestamp != null) message.creationTimestamp = String(object.creationTimestamp); if (object.deploymentType != null) @@ -140702,6 +145715,11 @@ message.name = String(object.name); if (object.namePrefix != null) message.namePrefix = String(object.namePrefix); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".google.cloud.compute.v1.FutureReservation.params: object expected"); + message.params = $root.google.cloud.compute.v1.FutureReservationParams.fromObject(object.params); + } if (object.planningStatus != null) message.planningStatus = String(object.planningStatus); if (object.reservationMode != null) @@ -140792,6 +145810,11 @@ if (options.oneofs) object._selfLinkWithId = "selfLinkWithId"; } + if (message.params != null && message.hasOwnProperty("params")) { + object.params = $root.google.cloud.compute.v1.FutureReservationParams.toObject(message.params, options); + if (options.oneofs) + object._params = "params"; + } if (message.specificSkuProperties != null && message.hasOwnProperty("specificSkuProperties")) { object.specificSkuProperties = $root.google.cloud.compute.v1.FutureReservationSpecificSKUProperties.toObject(message.specificSkuProperties, options); if (options.oneofs) @@ -140852,6 +145875,11 @@ if (options.oneofs) object._enableEmergentMaintenance = "enableEmergentMaintenance"; } + if (message.confidentialComputeType != null && message.hasOwnProperty("confidentialComputeType")) { + object.confidentialComputeType = message.confidentialComputeType; + if (options.oneofs) + object._confidentialComputeType = "confidentialComputeType"; + } if (message.deploymentType != null && message.hasOwnProperty("deploymentType")) { object.deploymentType = message.deploymentType; if (options.oneofs) @@ -140911,6 +145939,22 @@ return typeUrlPrefix + "/google.cloud.compute.v1.FutureReservation"; }; + /** + * ConfidentialComputeType enum. + * @name google.cloud.compute.v1.FutureReservation.ConfidentialComputeType + * @enum {number} + * @property {number} UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE=0 UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE value + * @property {number} CONFIDENTIAL_COMPUTE_TYPE_TDX=301241954 CONFIDENTIAL_COMPUTE_TYPE_TDX value + * @property {number} CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED=42227601 CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED value + */ + FutureReservation.ConfidentialComputeType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE"] = 0; + values[valuesById[301241954] = "CONFIDENTIAL_COMPUTE_TYPE_TDX"] = 301241954; + values[valuesById[42227601] = "CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED"] = 42227601; + return values; + })(); + /** * DeploymentType enum. * @name google.cloud.compute.v1.FutureReservation.DeploymentType @@ -141302,6 +146346,246 @@ return FutureReservationCommitmentInfo; })(); + v1.FutureReservationParams = (function() { + + /** + * Properties of a FutureReservationParams. + * @memberof google.cloud.compute.v1 + * @interface IFutureReservationParams + * @property {Object.|null} [resourceManagerTags] FutureReservationParams resourceManagerTags + */ + + /** + * Constructs a new FutureReservationParams. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a FutureReservationParams. + * @implements IFutureReservationParams + * @constructor + * @param {google.cloud.compute.v1.IFutureReservationParams=} [properties] Properties to set + */ + function FutureReservationParams(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]]; + } + + /** + * FutureReservationParams resourceManagerTags. + * @member {Object.} resourceManagerTags + * @memberof google.cloud.compute.v1.FutureReservationParams + * @instance + */ + FutureReservationParams.prototype.resourceManagerTags = $util.emptyObject; + + /** + * Creates a new FutureReservationParams instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.FutureReservationParams + * @static + * @param {google.cloud.compute.v1.IFutureReservationParams=} [properties] Properties to set + * @returns {google.cloud.compute.v1.FutureReservationParams} FutureReservationParams instance + */ + FutureReservationParams.create = function create(properties) { + return new FutureReservationParams(properties); + }; + + /** + * Encodes the specified FutureReservationParams message. Does not implicitly {@link google.cloud.compute.v1.FutureReservationParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.FutureReservationParams + * @static + * @param {google.cloud.compute.v1.IFutureReservationParams} message FutureReservationParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FutureReservationParams.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 FutureReservationParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1.FutureReservationParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.FutureReservationParams + * @static + * @param {google.cloud.compute.v1.IFutureReservationParams} message FutureReservationParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FutureReservationParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FutureReservationParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.FutureReservationParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.FutureReservationParams} FutureReservationParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FutureReservationParams.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.v1.FutureReservationParams(), 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 a FutureReservationParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.FutureReservationParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.FutureReservationParams} FutureReservationParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FutureReservationParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FutureReservationParams message. + * @function verify + * @memberof google.cloud.compute.v1.FutureReservationParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FutureReservationParams.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 a FutureReservationParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.FutureReservationParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.FutureReservationParams} FutureReservationParams + */ + FutureReservationParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.FutureReservationParams) + return object; + var message = new $root.google.cloud.compute.v1.FutureReservationParams(); + if (object.resourceManagerTags) { + if (typeof object.resourceManagerTags !== "object") + throw TypeError(".google.cloud.compute.v1.FutureReservationParams.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 a FutureReservationParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.FutureReservationParams + * @static + * @param {google.cloud.compute.v1.FutureReservationParams} message FutureReservationParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FutureReservationParams.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 FutureReservationParams to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.FutureReservationParams + * @instance + * @returns {Object.} JSON object + */ + FutureReservationParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FutureReservationParams + * @function getTypeUrl + * @memberof google.cloud.compute.v1.FutureReservationParams + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FutureReservationParams.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.FutureReservationParams"; + }; + + return FutureReservationParams; + })(); + v1.FutureReservationSpecificSKUProperties = (function() { /** @@ -156496,6 +161780,510 @@ return GetHealthRegionBackendServiceRequest; })(); + v1.GetHealthRegionCompositeHealthCheckRequest = (function() { + + /** + * Properties of a GetHealthRegionCompositeHealthCheckRequest. + * @memberof google.cloud.compute.v1 + * @interface IGetHealthRegionCompositeHealthCheckRequest + * @property {string|null} [compositeHealthCheck] GetHealthRegionCompositeHealthCheckRequest compositeHealthCheck + * @property {string|null} [project] GetHealthRegionCompositeHealthCheckRequest project + * @property {string|null} [region] GetHealthRegionCompositeHealthCheckRequest region + */ + + /** + * Constructs a new GetHealthRegionCompositeHealthCheckRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a GetHealthRegionCompositeHealthCheckRequest. + * @implements IGetHealthRegionCompositeHealthCheckRequest + * @constructor + * @param {google.cloud.compute.v1.IGetHealthRegionCompositeHealthCheckRequest=} [properties] Properties to set + */ + function GetHealthRegionCompositeHealthCheckRequest(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]]; + } + + /** + * GetHealthRegionCompositeHealthCheckRequest compositeHealthCheck. + * @member {string} compositeHealthCheck + * @memberof google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest + * @instance + */ + GetHealthRegionCompositeHealthCheckRequest.prototype.compositeHealthCheck = ""; + + /** + * GetHealthRegionCompositeHealthCheckRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest + * @instance + */ + GetHealthRegionCompositeHealthCheckRequest.prototype.project = ""; + + /** + * GetHealthRegionCompositeHealthCheckRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest + * @instance + */ + GetHealthRegionCompositeHealthCheckRequest.prototype.region = ""; + + /** + * Creates a new GetHealthRegionCompositeHealthCheckRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1.IGetHealthRegionCompositeHealthCheckRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest} GetHealthRegionCompositeHealthCheckRequest instance + */ + GetHealthRegionCompositeHealthCheckRequest.create = function create(properties) { + return new GetHealthRegionCompositeHealthCheckRequest(properties); + }; + + /** + * Encodes the specified GetHealthRegionCompositeHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1.IGetHealthRegionCompositeHealthCheckRequest} message GetHealthRegionCompositeHealthCheckRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetHealthRegionCompositeHealthCheckRequest.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 GetHealthRegionCompositeHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1.IGetHealthRegionCompositeHealthCheckRequest} message GetHealthRegionCompositeHealthCheckRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetHealthRegionCompositeHealthCheckRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetHealthRegionCompositeHealthCheckRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest} GetHealthRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetHealthRegionCompositeHealthCheckRequest.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.v1.GetHealthRegionCompositeHealthCheckRequest(); + 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 GetHealthRegionCompositeHealthCheckRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest} GetHealthRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetHealthRegionCompositeHealthCheckRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetHealthRegionCompositeHealthCheckRequest message. + * @function verify + * @memberof google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetHealthRegionCompositeHealthCheckRequest.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 GetHealthRegionCompositeHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest} GetHealthRegionCompositeHealthCheckRequest + */ + GetHealthRegionCompositeHealthCheckRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest) + return object; + var message = new $root.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest(); + 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 GetHealthRegionCompositeHealthCheckRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest} message GetHealthRegionCompositeHealthCheckRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetHealthRegionCompositeHealthCheckRequest.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 GetHealthRegionCompositeHealthCheckRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest + * @instance + * @returns {Object.} JSON object + */ + GetHealthRegionCompositeHealthCheckRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetHealthRegionCompositeHealthCheckRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetHealthRegionCompositeHealthCheckRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest"; + }; + + return GetHealthRegionCompositeHealthCheckRequest; + })(); + + v1.GetHealthRegionHealthSourceRequest = (function() { + + /** + * Properties of a GetHealthRegionHealthSourceRequest. + * @memberof google.cloud.compute.v1 + * @interface IGetHealthRegionHealthSourceRequest + * @property {string|null} [healthSource] GetHealthRegionHealthSourceRequest healthSource + * @property {string|null} [project] GetHealthRegionHealthSourceRequest project + * @property {string|null} [region] GetHealthRegionHealthSourceRequest region + */ + + /** + * Constructs a new GetHealthRegionHealthSourceRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a GetHealthRegionHealthSourceRequest. + * @implements IGetHealthRegionHealthSourceRequest + * @constructor + * @param {google.cloud.compute.v1.IGetHealthRegionHealthSourceRequest=} [properties] Properties to set + */ + function GetHealthRegionHealthSourceRequest(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]]; + } + + /** + * GetHealthRegionHealthSourceRequest healthSource. + * @member {string} healthSource + * @memberof google.cloud.compute.v1.GetHealthRegionHealthSourceRequest + * @instance + */ + GetHealthRegionHealthSourceRequest.prototype.healthSource = ""; + + /** + * GetHealthRegionHealthSourceRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.GetHealthRegionHealthSourceRequest + * @instance + */ + GetHealthRegionHealthSourceRequest.prototype.project = ""; + + /** + * GetHealthRegionHealthSourceRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.GetHealthRegionHealthSourceRequest + * @instance + */ + GetHealthRegionHealthSourceRequest.prototype.region = ""; + + /** + * Creates a new GetHealthRegionHealthSourceRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.GetHealthRegionHealthSourceRequest + * @static + * @param {google.cloud.compute.v1.IGetHealthRegionHealthSourceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.GetHealthRegionHealthSourceRequest} GetHealthRegionHealthSourceRequest instance + */ + GetHealthRegionHealthSourceRequest.create = function create(properties) { + return new GetHealthRegionHealthSourceRequest(properties); + }; + + /** + * Encodes the specified GetHealthRegionHealthSourceRequest message. Does not implicitly {@link google.cloud.compute.v1.GetHealthRegionHealthSourceRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.GetHealthRegionHealthSourceRequest + * @static + * @param {google.cloud.compute.v1.IGetHealthRegionHealthSourceRequest} message GetHealthRegionHealthSourceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetHealthRegionHealthSourceRequest.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.healthSource != null && Object.hasOwnProperty.call(message, "healthSource")) + writer.uint32(/* id 376521566, wireType 2 =*/3012172530).string(message.healthSource); + return writer; + }; + + /** + * Encodes the specified GetHealthRegionHealthSourceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetHealthRegionHealthSourceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.GetHealthRegionHealthSourceRequest + * @static + * @param {google.cloud.compute.v1.IGetHealthRegionHealthSourceRequest} message GetHealthRegionHealthSourceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetHealthRegionHealthSourceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetHealthRegionHealthSourceRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.GetHealthRegionHealthSourceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.GetHealthRegionHealthSourceRequest} GetHealthRegionHealthSourceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetHealthRegionHealthSourceRequest.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.v1.GetHealthRegionHealthSourceRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 376521566: { + message.healthSource = 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 GetHealthRegionHealthSourceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.GetHealthRegionHealthSourceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.GetHealthRegionHealthSourceRequest} GetHealthRegionHealthSourceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetHealthRegionHealthSourceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetHealthRegionHealthSourceRequest message. + * @function verify + * @memberof google.cloud.compute.v1.GetHealthRegionHealthSourceRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetHealthRegionHealthSourceRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.healthSource != null && message.hasOwnProperty("healthSource")) + if (!$util.isString(message.healthSource)) + return "healthSource: 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 GetHealthRegionHealthSourceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.GetHealthRegionHealthSourceRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.GetHealthRegionHealthSourceRequest} GetHealthRegionHealthSourceRequest + */ + GetHealthRegionHealthSourceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest) + return object; + var message = new $root.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest(); + if (object.healthSource != null) + message.healthSource = String(object.healthSource); + 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 GetHealthRegionHealthSourceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.GetHealthRegionHealthSourceRequest + * @static + * @param {google.cloud.compute.v1.GetHealthRegionHealthSourceRequest} message GetHealthRegionHealthSourceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetHealthRegionHealthSourceRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.healthSource = ""; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.healthSource != null && message.hasOwnProperty("healthSource")) + object.healthSource = message.healthSource; + return object; + }; + + /** + * Converts this GetHealthRegionHealthSourceRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.GetHealthRegionHealthSourceRequest + * @instance + * @returns {Object.} JSON object + */ + GetHealthRegionHealthSourceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetHealthRegionHealthSourceRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.GetHealthRegionHealthSourceRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetHealthRegionHealthSourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.GetHealthRegionHealthSourceRequest"; + }; + + return GetHealthRegionHealthSourceRequest; + })(); + v1.GetHealthTargetPoolRequest = (function() { /** @@ -158660,6 +164448,295 @@ return GetIamPolicyInstanceTemplateRequest; })(); + v1.GetIamPolicyInstantSnapshotGroupRequest = (function() { + + /** + * Properties of a GetIamPolicyInstantSnapshotGroupRequest. + * @memberof google.cloud.compute.v1 + * @interface IGetIamPolicyInstantSnapshotGroupRequest + * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyInstantSnapshotGroupRequest optionsRequestedPolicyVersion + * @property {string|null} [project] GetIamPolicyInstantSnapshotGroupRequest project + * @property {string|null} [resource] GetIamPolicyInstantSnapshotGroupRequest resource + * @property {string|null} [zone] GetIamPolicyInstantSnapshotGroupRequest zone + */ + + /** + * Constructs a new GetIamPolicyInstantSnapshotGroupRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a GetIamPolicyInstantSnapshotGroupRequest. + * @implements IGetIamPolicyInstantSnapshotGroupRequest + * @constructor + * @param {google.cloud.compute.v1.IGetIamPolicyInstantSnapshotGroupRequest=} [properties] Properties to set + */ + function GetIamPolicyInstantSnapshotGroupRequest(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]]; + } + + /** + * GetIamPolicyInstantSnapshotGroupRequest optionsRequestedPolicyVersion. + * @member {number|null|undefined} optionsRequestedPolicyVersion + * @memberof google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest + * @instance + */ + GetIamPolicyInstantSnapshotGroupRequest.prototype.optionsRequestedPolicyVersion = null; + + /** + * GetIamPolicyInstantSnapshotGroupRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest + * @instance + */ + GetIamPolicyInstantSnapshotGroupRequest.prototype.project = ""; + + /** + * GetIamPolicyInstantSnapshotGroupRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest + * @instance + */ + GetIamPolicyInstantSnapshotGroupRequest.prototype.resource = ""; + + /** + * GetIamPolicyInstantSnapshotGroupRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest + * @instance + */ + GetIamPolicyInstantSnapshotGroupRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GetIamPolicyInstantSnapshotGroupRequest.prototype, "_optionsRequestedPolicyVersion", { + get: $util.oneOfGetter($oneOfFields = ["optionsRequestedPolicyVersion"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GetIamPolicyInstantSnapshotGroupRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.IGetIamPolicyInstantSnapshotGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest} GetIamPolicyInstantSnapshotGroupRequest instance + */ + GetIamPolicyInstantSnapshotGroupRequest.create = function create(properties) { + return new GetIamPolicyInstantSnapshotGroupRequest(properties); + }; + + /** + * Encodes the specified GetIamPolicyInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.IGetIamPolicyInstantSnapshotGroupRequest} message GetIamPolicyInstantSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIamPolicyInstantSnapshotGroupRequest.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.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 GetIamPolicyInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.IGetIamPolicyInstantSnapshotGroupRequest} message GetIamPolicyInstantSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIamPolicyInstantSnapshotGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetIamPolicyInstantSnapshotGroupRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest} GetIamPolicyInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIamPolicyInstantSnapshotGroupRequest.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.v1.GetIamPolicyInstantSnapshotGroupRequest(); + 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 195806222: { + message.resource = reader.string(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetIamPolicyInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest} GetIamPolicyInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIamPolicyInstantSnapshotGroupRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetIamPolicyInstantSnapshotGroupRequest message. + * @function verify + * @memberof google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetIamPolicyInstantSnapshotGroupRequest.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.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 GetIamPolicyInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest} GetIamPolicyInstantSnapshotGroupRequest + */ + GetIamPolicyInstantSnapshotGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest) + return object; + var message = new $root.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest(); + if (object.optionsRequestedPolicyVersion != null) + message.optionsRequestedPolicyVersion = object.optionsRequestedPolicyVersion | 0; + 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 GetIamPolicyInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest} message GetIamPolicyInstantSnapshotGroupRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetIamPolicyInstantSnapshotGroupRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.resource = ""; + object.project = ""; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + 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 GetIamPolicyInstantSnapshotGroupRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest + * @instance + * @returns {Object.} JSON object + */ + GetIamPolicyInstantSnapshotGroupRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetIamPolicyInstantSnapshotGroupRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetIamPolicyInstantSnapshotGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest"; + }; + + return GetIamPolicyInstantSnapshotGroupRequest; + })(); + v1.GetIamPolicyInstantSnapshotRequest = (function() { /** @@ -161146,6 +167223,295 @@ return GetIamPolicyNodeTemplateRequest; })(); + v1.GetIamPolicyRegionBackendBucketRequest = (function() { + + /** + * Properties of a GetIamPolicyRegionBackendBucketRequest. + * @memberof google.cloud.compute.v1 + * @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 GetIamPolicyRegionBackendBucketRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a GetIamPolicyRegionBackendBucketRequest. + * @implements IGetIamPolicyRegionBackendBucketRequest + * @constructor + * @param {google.cloud.compute.v1.IGetIamPolicyRegionBackendBucketRequest=} [properties] Properties to set + */ + function GetIamPolicyRegionBackendBucketRequest(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]]; + } + + /** + * GetIamPolicyRegionBackendBucketRequest optionsRequestedPolicyVersion. + * @member {number|null|undefined} optionsRequestedPolicyVersion + * @memberof google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest + * @instance + */ + GetIamPolicyRegionBackendBucketRequest.prototype.optionsRequestedPolicyVersion = null; + + /** + * GetIamPolicyRegionBackendBucketRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest + * @instance + */ + GetIamPolicyRegionBackendBucketRequest.prototype.project = ""; + + /** + * GetIamPolicyRegionBackendBucketRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest + * @instance + */ + GetIamPolicyRegionBackendBucketRequest.prototype.region = ""; + + /** + * GetIamPolicyRegionBackendBucketRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest + * @instance + */ + GetIamPolicyRegionBackendBucketRequest.prototype.resource = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GetIamPolicyRegionBackendBucketRequest.prototype, "_optionsRequestedPolicyVersion", { + get: $util.oneOfGetter($oneOfFields = ["optionsRequestedPolicyVersion"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GetIamPolicyRegionBackendBucketRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1.IGetIamPolicyRegionBackendBucketRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest} GetIamPolicyRegionBackendBucketRequest instance + */ + GetIamPolicyRegionBackendBucketRequest.create = function create(properties) { + return new GetIamPolicyRegionBackendBucketRequest(properties); + }; + + /** + * Encodes the specified GetIamPolicyRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1.IGetIamPolicyRegionBackendBucketRequest} message GetIamPolicyRegionBackendBucketRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIamPolicyRegionBackendBucketRequest.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 GetIamPolicyRegionBackendBucketRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1.IGetIamPolicyRegionBackendBucketRequest} message GetIamPolicyRegionBackendBucketRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIamPolicyRegionBackendBucketRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetIamPolicyRegionBackendBucketRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.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.v1.GetIamPolicyRegionBackendBucketRequest} GetIamPolicyRegionBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + 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.v1.GetIamPolicyRegionBackendBucketRequest(); + 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 GetIamPolicyRegionBackendBucketRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest} GetIamPolicyRegionBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIamPolicyRegionBackendBucketRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetIamPolicyRegionBackendBucketRequest message. + * @function verify + * @memberof google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetIamPolicyRegionBackendBucketRequest.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 GetIamPolicyRegionBackendBucketRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest} GetIamPolicyRegionBackendBucketRequest + */ + GetIamPolicyRegionBackendBucketRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest) + return object; + var message = new $root.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest(); + 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 GetIamPolicyRegionBackendBucketRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest} message GetIamPolicyRegionBackendBucketRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetIamPolicyRegionBackendBucketRequest.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 GetIamPolicyRegionBackendBucketRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest + * @instance + * @returns {Object.} JSON object + */ + GetIamPolicyRegionBackendBucketRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetIamPolicyRegionBackendBucketRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetIamPolicyRegionBackendBucketRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest"; + }; + + return GetIamPolicyRegionBackendBucketRequest; + })(); + v1.GetIamPolicyRegionBackendServiceRequest = (function() { /** @@ -161724,6 +168090,295 @@ return GetIamPolicyRegionDiskRequest; })(); + v1.GetIamPolicyRegionInstantSnapshotGroupRequest = (function() { + + /** + * Properties of a GetIamPolicyRegionInstantSnapshotGroupRequest. + * @memberof google.cloud.compute.v1 + * @interface IGetIamPolicyRegionInstantSnapshotGroupRequest + * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyRegionInstantSnapshotGroupRequest optionsRequestedPolicyVersion + * @property {string|null} [project] GetIamPolicyRegionInstantSnapshotGroupRequest project + * @property {string|null} [region] GetIamPolicyRegionInstantSnapshotGroupRequest region + * @property {string|null} [resource] GetIamPolicyRegionInstantSnapshotGroupRequest resource + */ + + /** + * Constructs a new GetIamPolicyRegionInstantSnapshotGroupRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a GetIamPolicyRegionInstantSnapshotGroupRequest. + * @implements IGetIamPolicyRegionInstantSnapshotGroupRequest + * @constructor + * @param {google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotGroupRequest=} [properties] Properties to set + */ + function GetIamPolicyRegionInstantSnapshotGroupRequest(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]]; + } + + /** + * GetIamPolicyRegionInstantSnapshotGroupRequest optionsRequestedPolicyVersion. + * @member {number|null|undefined} optionsRequestedPolicyVersion + * @memberof google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest + * @instance + */ + GetIamPolicyRegionInstantSnapshotGroupRequest.prototype.optionsRequestedPolicyVersion = null; + + /** + * GetIamPolicyRegionInstantSnapshotGroupRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest + * @instance + */ + GetIamPolicyRegionInstantSnapshotGroupRequest.prototype.project = ""; + + /** + * GetIamPolicyRegionInstantSnapshotGroupRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest + * @instance + */ + GetIamPolicyRegionInstantSnapshotGroupRequest.prototype.region = ""; + + /** + * GetIamPolicyRegionInstantSnapshotGroupRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest + * @instance + */ + GetIamPolicyRegionInstantSnapshotGroupRequest.prototype.resource = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GetIamPolicyRegionInstantSnapshotGroupRequest.prototype, "_optionsRequestedPolicyVersion", { + get: $util.oneOfGetter($oneOfFields = ["optionsRequestedPolicyVersion"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GetIamPolicyRegionInstantSnapshotGroupRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest} GetIamPolicyRegionInstantSnapshotGroupRequest instance + */ + GetIamPolicyRegionInstantSnapshotGroupRequest.create = function create(properties) { + return new GetIamPolicyRegionInstantSnapshotGroupRequest(properties); + }; + + /** + * Encodes the specified GetIamPolicyRegionInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotGroupRequest} message GetIamPolicyRegionInstantSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIamPolicyRegionInstantSnapshotGroupRequest.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 GetIamPolicyRegionInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotGroupRequest} message GetIamPolicyRegionInstantSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIamPolicyRegionInstantSnapshotGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetIamPolicyRegionInstantSnapshotGroupRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest} GetIamPolicyRegionInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIamPolicyRegionInstantSnapshotGroupRequest.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.v1.GetIamPolicyRegionInstantSnapshotGroupRequest(); + 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 GetIamPolicyRegionInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest} GetIamPolicyRegionInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIamPolicyRegionInstantSnapshotGroupRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetIamPolicyRegionInstantSnapshotGroupRequest message. + * @function verify + * @memberof google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetIamPolicyRegionInstantSnapshotGroupRequest.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 GetIamPolicyRegionInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest} GetIamPolicyRegionInstantSnapshotGroupRequest + */ + GetIamPolicyRegionInstantSnapshotGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest) + return object; + var message = new $root.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest(); + 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 GetIamPolicyRegionInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest} message GetIamPolicyRegionInstantSnapshotGroupRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetIamPolicyRegionInstantSnapshotGroupRequest.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 GetIamPolicyRegionInstantSnapshotGroupRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest + * @instance + * @returns {Object.} JSON object + */ + GetIamPolicyRegionInstantSnapshotGroupRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetIamPolicyRegionInstantSnapshotGroupRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetIamPolicyRegionInstantSnapshotGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest"; + }; + + return GetIamPolicyRegionInstantSnapshotGroupRequest; + })(); + v1.GetIamPolicyRegionInstantSnapshotRequest = (function() { /** @@ -162302,6 +168957,295 @@ return GetIamPolicyRegionNetworkFirewallPolicyRequest; })(); + v1.GetIamPolicyRegionSnapshotRequest = (function() { + + /** + * Properties of a GetIamPolicyRegionSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @interface IGetIamPolicyRegionSnapshotRequest + * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyRegionSnapshotRequest optionsRequestedPolicyVersion + * @property {string|null} [project] GetIamPolicyRegionSnapshotRequest project + * @property {string|null} [region] GetIamPolicyRegionSnapshotRequest region + * @property {string|null} [resource] GetIamPolicyRegionSnapshotRequest resource + */ + + /** + * Constructs a new GetIamPolicyRegionSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a GetIamPolicyRegionSnapshotRequest. + * @implements IGetIamPolicyRegionSnapshotRequest + * @constructor + * @param {google.cloud.compute.v1.IGetIamPolicyRegionSnapshotRequest=} [properties] Properties to set + */ + function GetIamPolicyRegionSnapshotRequest(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]]; + } + + /** + * GetIamPolicyRegionSnapshotRequest optionsRequestedPolicyVersion. + * @member {number|null|undefined} optionsRequestedPolicyVersion + * @memberof google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest + * @instance + */ + GetIamPolicyRegionSnapshotRequest.prototype.optionsRequestedPolicyVersion = null; + + /** + * GetIamPolicyRegionSnapshotRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest + * @instance + */ + GetIamPolicyRegionSnapshotRequest.prototype.project = ""; + + /** + * GetIamPolicyRegionSnapshotRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest + * @instance + */ + GetIamPolicyRegionSnapshotRequest.prototype.region = ""; + + /** + * GetIamPolicyRegionSnapshotRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest + * @instance + */ + GetIamPolicyRegionSnapshotRequest.prototype.resource = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GetIamPolicyRegionSnapshotRequest.prototype, "_optionsRequestedPolicyVersion", { + get: $util.oneOfGetter($oneOfFields = ["optionsRequestedPolicyVersion"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GetIamPolicyRegionSnapshotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IGetIamPolicyRegionSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest} GetIamPolicyRegionSnapshotRequest instance + */ + GetIamPolicyRegionSnapshotRequest.create = function create(properties) { + return new GetIamPolicyRegionSnapshotRequest(properties); + }; + + /** + * Encodes the specified GetIamPolicyRegionSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IGetIamPolicyRegionSnapshotRequest} message GetIamPolicyRegionSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIamPolicyRegionSnapshotRequest.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 GetIamPolicyRegionSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IGetIamPolicyRegionSnapshotRequest} message GetIamPolicyRegionSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIamPolicyRegionSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetIamPolicyRegionSnapshotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest} GetIamPolicyRegionSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIamPolicyRegionSnapshotRequest.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.v1.GetIamPolicyRegionSnapshotRequest(); + 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 GetIamPolicyRegionSnapshotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest} GetIamPolicyRegionSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIamPolicyRegionSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetIamPolicyRegionSnapshotRequest message. + * @function verify + * @memberof google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetIamPolicyRegionSnapshotRequest.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 GetIamPolicyRegionSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest} GetIamPolicyRegionSnapshotRequest + */ + GetIamPolicyRegionSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest) + return object; + var message = new $root.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest(); + 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 GetIamPolicyRegionSnapshotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest} message GetIamPolicyRegionSnapshotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetIamPolicyRegionSnapshotRequest.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 GetIamPolicyRegionSnapshotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest + * @instance + * @returns {Object.} JSON object + */ + GetIamPolicyRegionSnapshotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetIamPolicyRegionSnapshotRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetIamPolicyRegionSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest"; + }; + + return GetIamPolicyRegionSnapshotRequest; + })(); + v1.GetIamPolicyReservationBlockRequest = (function() { /** @@ -166607,6 +173551,258 @@ return GetInstanceTemplateRequest; })(); + v1.GetInstantSnapshotGroupRequest = (function() { + + /** + * Properties of a GetInstantSnapshotGroupRequest. + * @memberof google.cloud.compute.v1 + * @interface IGetInstantSnapshotGroupRequest + * @property {string|null} [instantSnapshotGroup] GetInstantSnapshotGroupRequest instantSnapshotGroup + * @property {string|null} [project] GetInstantSnapshotGroupRequest project + * @property {string|null} [zone] GetInstantSnapshotGroupRequest zone + */ + + /** + * Constructs a new GetInstantSnapshotGroupRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a GetInstantSnapshotGroupRequest. + * @implements IGetInstantSnapshotGroupRequest + * @constructor + * @param {google.cloud.compute.v1.IGetInstantSnapshotGroupRequest=} [properties] Properties to set + */ + function GetInstantSnapshotGroupRequest(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]]; + } + + /** + * GetInstantSnapshotGroupRequest instantSnapshotGroup. + * @member {string} instantSnapshotGroup + * @memberof google.cloud.compute.v1.GetInstantSnapshotGroupRequest + * @instance + */ + GetInstantSnapshotGroupRequest.prototype.instantSnapshotGroup = ""; + + /** + * GetInstantSnapshotGroupRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.GetInstantSnapshotGroupRequest + * @instance + */ + GetInstantSnapshotGroupRequest.prototype.project = ""; + + /** + * GetInstantSnapshotGroupRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.GetInstantSnapshotGroupRequest + * @instance + */ + GetInstantSnapshotGroupRequest.prototype.zone = ""; + + /** + * Creates a new GetInstantSnapshotGroupRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.GetInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.IGetInstantSnapshotGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.GetInstantSnapshotGroupRequest} GetInstantSnapshotGroupRequest instance + */ + GetInstantSnapshotGroupRequest.create = function create(properties) { + return new GetInstantSnapshotGroupRequest(properties); + }; + + /** + * Encodes the specified GetInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1.GetInstantSnapshotGroupRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.GetInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.IGetInstantSnapshotGroupRequest} message GetInstantSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetInstantSnapshotGroupRequest.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.instantSnapshotGroup != null && Object.hasOwnProperty.call(message, "instantSnapshotGroup")) + writer.uint32(/* id 223180386, wireType 2 =*/1785443090).string(message.instantSnapshotGroup); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + return writer; + }; + + /** + * Encodes the specified GetInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetInstantSnapshotGroupRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.GetInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.IGetInstantSnapshotGroupRequest} message GetInstantSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetInstantSnapshotGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetInstantSnapshotGroupRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.GetInstantSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.GetInstantSnapshotGroupRequest} GetInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetInstantSnapshotGroupRequest.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.v1.GetInstantSnapshotGroupRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 223180386: { + message.instantSnapshotGroup = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.GetInstantSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.GetInstantSnapshotGroupRequest} GetInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetInstantSnapshotGroupRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetInstantSnapshotGroupRequest message. + * @function verify + * @memberof google.cloud.compute.v1.GetInstantSnapshotGroupRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetInstantSnapshotGroupRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.instantSnapshotGroup != null && message.hasOwnProperty("instantSnapshotGroup")) + if (!$util.isString(message.instantSnapshotGroup)) + return "instantSnapshotGroup: string expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates a GetInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.GetInstantSnapshotGroupRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.GetInstantSnapshotGroupRequest} GetInstantSnapshotGroupRequest + */ + GetInstantSnapshotGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.GetInstantSnapshotGroupRequest) + return object; + var message = new $root.google.cloud.compute.v1.GetInstantSnapshotGroupRequest(); + if (object.instantSnapshotGroup != null) + message.instantSnapshotGroup = String(object.instantSnapshotGroup); + if (object.project != null) + message.project = String(object.project); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from a GetInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.GetInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.GetInstantSnapshotGroupRequest} message GetInstantSnapshotGroupRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetInstantSnapshotGroupRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.instantSnapshotGroup = ""; + object.project = ""; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.instantSnapshotGroup != null && message.hasOwnProperty("instantSnapshotGroup")) + object.instantSnapshotGroup = message.instantSnapshotGroup; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + return object; + }; + + /** + * Converts this GetInstantSnapshotGroupRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.GetInstantSnapshotGroupRequest + * @instance + * @returns {Object.} JSON object + */ + GetInstantSnapshotGroupRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetInstantSnapshotGroupRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.GetInstantSnapshotGroupRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetInstantSnapshotGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.GetInstantSnapshotGroupRequest"; + }; + + return GetInstantSnapshotGroupRequest; + })(); + v1.GetInstantSnapshotRequest = (function() { /** @@ -174714,6 +181910,258 @@ return GetRegionAutoscalerRequest; })(); + v1.GetRegionBackendBucketRequest = (function() { + + /** + * Properties of a GetRegionBackendBucketRequest. + * @memberof google.cloud.compute.v1 + * @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.v1 + * @classdesc Represents a GetRegionBackendBucketRequest. + * @implements IGetRegionBackendBucketRequest + * @constructor + * @param {google.cloud.compute.v1.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.v1.GetRegionBackendBucketRequest + * @instance + */ + GetRegionBackendBucketRequest.prototype.backendBucket = ""; + + /** + * GetRegionBackendBucketRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.GetRegionBackendBucketRequest + * @instance + */ + GetRegionBackendBucketRequest.prototype.project = ""; + + /** + * GetRegionBackendBucketRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.GetRegionBackendBucketRequest + * @instance + */ + GetRegionBackendBucketRequest.prototype.region = ""; + + /** + * Creates a new GetRegionBackendBucketRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.GetRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1.IGetRegionBackendBucketRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.GetRegionBackendBucketRequest} GetRegionBackendBucketRequest instance + */ + GetRegionBackendBucketRequest.create = function create(properties) { + return new GetRegionBackendBucketRequest(properties); + }; + + /** + * Encodes the specified GetRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1.GetRegionBackendBucketRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.GetRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1.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.v1.GetRegionBackendBucketRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.GetRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.GetRegionBackendBucketRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.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.v1.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.v1.GetRegionBackendBucketRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.GetRegionBackendBucketRequest} GetRegionBackendBucketRequest + */ + GetRegionBackendBucketRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.GetRegionBackendBucketRequest) + return object; + var message = new $root.google.cloud.compute.v1.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.v1.GetRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.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.v1.GetRegionBackendBucketRequest"; + }; + + return GetRegionBackendBucketRequest; + })(); + v1.GetRegionBackendServiceRequest = (function() { /** @@ -177234,6 +184682,281 @@ return GetRegionInstanceGroupManagerRequest; })(); + v1.GetRegionInstanceGroupManagerResizeRequestRequest = (function() { + + /** + * Properties of a GetRegionInstanceGroupManagerResizeRequestRequest. + * @memberof google.cloud.compute.v1 + * @interface IGetRegionInstanceGroupManagerResizeRequestRequest + * @property {string|null} [instanceGroupManager] GetRegionInstanceGroupManagerResizeRequestRequest instanceGroupManager + * @property {string|null} [project] GetRegionInstanceGroupManagerResizeRequestRequest project + * @property {string|null} [region] GetRegionInstanceGroupManagerResizeRequestRequest region + * @property {string|null} [resizeRequest] GetRegionInstanceGroupManagerResizeRequestRequest resizeRequest + */ + + /** + * Constructs a new GetRegionInstanceGroupManagerResizeRequestRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a GetRegionInstanceGroupManagerResizeRequestRequest. + * @implements IGetRegionInstanceGroupManagerResizeRequestRequest + * @constructor + * @param {google.cloud.compute.v1.IGetRegionInstanceGroupManagerResizeRequestRequest=} [properties] Properties to set + */ + function GetRegionInstanceGroupManagerResizeRequestRequest(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]]; + } + + /** + * GetRegionInstanceGroupManagerResizeRequestRequest instanceGroupManager. + * @member {string} instanceGroupManager + * @memberof google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + * @instance + */ + GetRegionInstanceGroupManagerResizeRequestRequest.prototype.instanceGroupManager = ""; + + /** + * GetRegionInstanceGroupManagerResizeRequestRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + * @instance + */ + GetRegionInstanceGroupManagerResizeRequestRequest.prototype.project = ""; + + /** + * GetRegionInstanceGroupManagerResizeRequestRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + * @instance + */ + GetRegionInstanceGroupManagerResizeRequestRequest.prototype.region = ""; + + /** + * GetRegionInstanceGroupManagerResizeRequestRequest resizeRequest. + * @member {string} resizeRequest + * @memberof google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + * @instance + */ + GetRegionInstanceGroupManagerResizeRequestRequest.prototype.resizeRequest = ""; + + /** + * Creates a new GetRegionInstanceGroupManagerResizeRequestRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {google.cloud.compute.v1.IGetRegionInstanceGroupManagerResizeRequestRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest} GetRegionInstanceGroupManagerResizeRequestRequest instance + */ + GetRegionInstanceGroupManagerResizeRequestRequest.create = function create(properties) { + return new GetRegionInstanceGroupManagerResizeRequestRequest(properties); + }; + + /** + * Encodes the specified GetRegionInstanceGroupManagerResizeRequestRequest message. Does not implicitly {@link google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {google.cloud.compute.v1.IGetRegionInstanceGroupManagerResizeRequestRequest} message GetRegionInstanceGroupManagerResizeRequestRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRegionInstanceGroupManagerResizeRequestRequest.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.resizeRequest != null && Object.hasOwnProperty.call(message, "resizeRequest")) + writer.uint32(/* id 216941060, wireType 2 =*/1735528482).string(message.resizeRequest); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.instanceGroupManager != null && Object.hasOwnProperty.call(message, "instanceGroupManager")) + writer.uint32(/* id 249363395, wireType 2 =*/1994907162).string(message.instanceGroupManager); + return writer; + }; + + /** + * Encodes the specified GetRegionInstanceGroupManagerResizeRequestRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {google.cloud.compute.v1.IGetRegionInstanceGroupManagerResizeRequestRequest} message GetRegionInstanceGroupManagerResizeRequestRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRegionInstanceGroupManagerResizeRequestRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetRegionInstanceGroupManagerResizeRequestRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest} GetRegionInstanceGroupManagerResizeRequestRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRegionInstanceGroupManagerResizeRequestRequest.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.v1.GetRegionInstanceGroupManagerResizeRequestRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 249363395: { + message.instanceGroupManager = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 216941060: { + message.resizeRequest = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetRegionInstanceGroupManagerResizeRequestRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest} GetRegionInstanceGroupManagerResizeRequestRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRegionInstanceGroupManagerResizeRequestRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetRegionInstanceGroupManagerResizeRequestRequest message. + * @function verify + * @memberof google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetRegionInstanceGroupManagerResizeRequestRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.instanceGroupManager != null && message.hasOwnProperty("instanceGroupManager")) + if (!$util.isString(message.instanceGroupManager)) + return "instanceGroupManager: 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.resizeRequest != null && message.hasOwnProperty("resizeRequest")) + if (!$util.isString(message.resizeRequest)) + return "resizeRequest: string expected"; + return null; + }; + + /** + * Creates a GetRegionInstanceGroupManagerResizeRequestRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest} GetRegionInstanceGroupManagerResizeRequestRequest + */ + GetRegionInstanceGroupManagerResizeRequestRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest) + return object; + var message = new $root.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest(); + if (object.instanceGroupManager != null) + message.instanceGroupManager = String(object.instanceGroupManager); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.resizeRequest != null) + message.resizeRequest = String(object.resizeRequest); + return message; + }; + + /** + * Creates a plain object from a GetRegionInstanceGroupManagerResizeRequestRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest} message GetRegionInstanceGroupManagerResizeRequestRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetRegionInstanceGroupManagerResizeRequestRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.resizeRequest = ""; + object.project = ""; + object.instanceGroupManager = ""; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.resizeRequest != null && message.hasOwnProperty("resizeRequest")) + object.resizeRequest = message.resizeRequest; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.instanceGroupManager != null && message.hasOwnProperty("instanceGroupManager")) + object.instanceGroupManager = message.instanceGroupManager; + return object; + }; + + /** + * Converts this GetRegionInstanceGroupManagerResizeRequestRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + * @instance + * @returns {Object.} JSON object + */ + GetRegionInstanceGroupManagerResizeRequestRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetRegionInstanceGroupManagerResizeRequestRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetRegionInstanceGroupManagerResizeRequestRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest"; + }; + + return GetRegionInstanceGroupManagerResizeRequestRequest; + })(); + v1.GetRegionInstanceGroupRequest = (function() { /** @@ -177738,6 +185461,258 @@ return GetRegionInstanceTemplateRequest; })(); + v1.GetRegionInstantSnapshotGroupRequest = (function() { + + /** + * Properties of a GetRegionInstantSnapshotGroupRequest. + * @memberof google.cloud.compute.v1 + * @interface IGetRegionInstantSnapshotGroupRequest + * @property {string|null} [instantSnapshotGroup] GetRegionInstantSnapshotGroupRequest instantSnapshotGroup + * @property {string|null} [project] GetRegionInstantSnapshotGroupRequest project + * @property {string|null} [region] GetRegionInstantSnapshotGroupRequest region + */ + + /** + * Constructs a new GetRegionInstantSnapshotGroupRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a GetRegionInstantSnapshotGroupRequest. + * @implements IGetRegionInstantSnapshotGroupRequest + * @constructor + * @param {google.cloud.compute.v1.IGetRegionInstantSnapshotGroupRequest=} [properties] Properties to set + */ + function GetRegionInstantSnapshotGroupRequest(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]]; + } + + /** + * GetRegionInstantSnapshotGroupRequest instantSnapshotGroup. + * @member {string} instantSnapshotGroup + * @memberof google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest + * @instance + */ + GetRegionInstantSnapshotGroupRequest.prototype.instantSnapshotGroup = ""; + + /** + * GetRegionInstantSnapshotGroupRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest + * @instance + */ + GetRegionInstantSnapshotGroupRequest.prototype.project = ""; + + /** + * GetRegionInstantSnapshotGroupRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest + * @instance + */ + GetRegionInstantSnapshotGroupRequest.prototype.region = ""; + + /** + * Creates a new GetRegionInstantSnapshotGroupRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.IGetRegionInstantSnapshotGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest} GetRegionInstantSnapshotGroupRequest instance + */ + GetRegionInstantSnapshotGroupRequest.create = function create(properties) { + return new GetRegionInstantSnapshotGroupRequest(properties); + }; + + /** + * Encodes the specified GetRegionInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.IGetRegionInstantSnapshotGroupRequest} message GetRegionInstantSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRegionInstantSnapshotGroupRequest.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.instantSnapshotGroup != null && Object.hasOwnProperty.call(message, "instantSnapshotGroup")) + writer.uint32(/* id 223180386, wireType 2 =*/1785443090).string(message.instantSnapshotGroup); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + return writer; + }; + + /** + * Encodes the specified GetRegionInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.IGetRegionInstantSnapshotGroupRequest} message GetRegionInstantSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRegionInstantSnapshotGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetRegionInstantSnapshotGroupRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest} GetRegionInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRegionInstantSnapshotGroupRequest.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.v1.GetRegionInstantSnapshotGroupRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 223180386: { + message.instantSnapshotGroup = 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 GetRegionInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest} GetRegionInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRegionInstantSnapshotGroupRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetRegionInstantSnapshotGroupRequest message. + * @function verify + * @memberof google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetRegionInstantSnapshotGroupRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.instantSnapshotGroup != null && message.hasOwnProperty("instantSnapshotGroup")) + if (!$util.isString(message.instantSnapshotGroup)) + return "instantSnapshotGroup: 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 GetRegionInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest} GetRegionInstantSnapshotGroupRequest + */ + GetRegionInstantSnapshotGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest) + return object; + var message = new $root.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest(); + if (object.instantSnapshotGroup != null) + message.instantSnapshotGroup = String(object.instantSnapshotGroup); + 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 GetRegionInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest} message GetRegionInstantSnapshotGroupRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetRegionInstantSnapshotGroupRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.instantSnapshotGroup = ""; + object.project = ""; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.instantSnapshotGroup != null && message.hasOwnProperty("instantSnapshotGroup")) + object.instantSnapshotGroup = message.instantSnapshotGroup; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + return object; + }; + + /** + * Converts this GetRegionInstantSnapshotGroupRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest + * @instance + * @returns {Object.} JSON object + */ + GetRegionInstantSnapshotGroupRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetRegionInstantSnapshotGroupRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetRegionInstantSnapshotGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest"; + }; + + return GetRegionInstantSnapshotGroupRequest; + })(); + v1.GetRegionInstantSnapshotRequest = (function() { /** @@ -179479,6 +187454,487 @@ return GetRegionSecurityPolicyRequest; })(); + v1.GetRegionSnapshotRequest = (function() { + + /** + * Properties of a GetRegionSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @interface IGetRegionSnapshotRequest + * @property {string|null} [project] GetRegionSnapshotRequest project + * @property {string|null} [region] GetRegionSnapshotRequest region + * @property {string|null} [snapshot] GetRegionSnapshotRequest snapshot + */ + + /** + * Constructs a new GetRegionSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a GetRegionSnapshotRequest. + * @implements IGetRegionSnapshotRequest + * @constructor + * @param {google.cloud.compute.v1.IGetRegionSnapshotRequest=} [properties] Properties to set + */ + function GetRegionSnapshotRequest(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]]; + } + + /** + * GetRegionSnapshotRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.GetRegionSnapshotRequest + * @instance + */ + GetRegionSnapshotRequest.prototype.project = ""; + + /** + * GetRegionSnapshotRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.GetRegionSnapshotRequest + * @instance + */ + GetRegionSnapshotRequest.prototype.region = ""; + + /** + * GetRegionSnapshotRequest snapshot. + * @member {string} snapshot + * @memberof google.cloud.compute.v1.GetRegionSnapshotRequest + * @instance + */ + GetRegionSnapshotRequest.prototype.snapshot = ""; + + /** + * Creates a new GetRegionSnapshotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.GetRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IGetRegionSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.GetRegionSnapshotRequest} GetRegionSnapshotRequest instance + */ + GetRegionSnapshotRequest.create = function create(properties) { + return new GetRegionSnapshotRequest(properties); + }; + + /** + * Encodes the specified GetRegionSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.GetRegionSnapshotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.GetRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IGetRegionSnapshotRequest} message GetRegionSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRegionSnapshotRequest.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.snapshot != null && Object.hasOwnProperty.call(message, "snapshot")) + writer.uint32(/* id 284874180, wireType 2 =*/2278993442).string(message.snapshot); + return writer; + }; + + /** + * Encodes the specified GetRegionSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetRegionSnapshotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.GetRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IGetRegionSnapshotRequest} message GetRegionSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRegionSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetRegionSnapshotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.GetRegionSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.GetRegionSnapshotRequest} GetRegionSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRegionSnapshotRequest.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.v1.GetRegionSnapshotRequest(); + 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 284874180: { + message.snapshot = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetRegionSnapshotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.GetRegionSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.GetRegionSnapshotRequest} GetRegionSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRegionSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetRegionSnapshotRequest message. + * @function verify + * @memberof google.cloud.compute.v1.GetRegionSnapshotRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetRegionSnapshotRequest.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.snapshot != null && message.hasOwnProperty("snapshot")) + if (!$util.isString(message.snapshot)) + return "snapshot: string expected"; + return null; + }; + + /** + * Creates a GetRegionSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.GetRegionSnapshotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.GetRegionSnapshotRequest} GetRegionSnapshotRequest + */ + GetRegionSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.GetRegionSnapshotRequest) + return object; + var message = new $root.google.cloud.compute.v1.GetRegionSnapshotRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.snapshot != null) + message.snapshot = String(object.snapshot); + return message; + }; + + /** + * Creates a plain object from a GetRegionSnapshotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.GetRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.GetRegionSnapshotRequest} message GetRegionSnapshotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetRegionSnapshotRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.snapshot = ""; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.snapshot != null && message.hasOwnProperty("snapshot")) + object.snapshot = message.snapshot; + return object; + }; + + /** + * Converts this GetRegionSnapshotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.GetRegionSnapshotRequest + * @instance + * @returns {Object.} JSON object + */ + GetRegionSnapshotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetRegionSnapshotRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.GetRegionSnapshotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetRegionSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.GetRegionSnapshotRequest"; + }; + + return GetRegionSnapshotRequest; + })(); + + v1.GetRegionSnapshotSettingRequest = (function() { + + /** + * Properties of a GetRegionSnapshotSettingRequest. + * @memberof google.cloud.compute.v1 + * @interface IGetRegionSnapshotSettingRequest + * @property {string|null} [project] GetRegionSnapshotSettingRequest project + * @property {string|null} [region] GetRegionSnapshotSettingRequest region + */ + + /** + * Constructs a new GetRegionSnapshotSettingRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a GetRegionSnapshotSettingRequest. + * @implements IGetRegionSnapshotSettingRequest + * @constructor + * @param {google.cloud.compute.v1.IGetRegionSnapshotSettingRequest=} [properties] Properties to set + */ + function GetRegionSnapshotSettingRequest(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]]; + } + + /** + * GetRegionSnapshotSettingRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.GetRegionSnapshotSettingRequest + * @instance + */ + GetRegionSnapshotSettingRequest.prototype.project = ""; + + /** + * GetRegionSnapshotSettingRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.GetRegionSnapshotSettingRequest + * @instance + */ + GetRegionSnapshotSettingRequest.prototype.region = ""; + + /** + * Creates a new GetRegionSnapshotSettingRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.GetRegionSnapshotSettingRequest + * @static + * @param {google.cloud.compute.v1.IGetRegionSnapshotSettingRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.GetRegionSnapshotSettingRequest} GetRegionSnapshotSettingRequest instance + */ + GetRegionSnapshotSettingRequest.create = function create(properties) { + return new GetRegionSnapshotSettingRequest(properties); + }; + + /** + * Encodes the specified GetRegionSnapshotSettingRequest message. Does not implicitly {@link google.cloud.compute.v1.GetRegionSnapshotSettingRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.GetRegionSnapshotSettingRequest + * @static + * @param {google.cloud.compute.v1.IGetRegionSnapshotSettingRequest} message GetRegionSnapshotSettingRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRegionSnapshotSettingRequest.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); + return writer; + }; + + /** + * Encodes the specified GetRegionSnapshotSettingRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetRegionSnapshotSettingRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.GetRegionSnapshotSettingRequest + * @static + * @param {google.cloud.compute.v1.IGetRegionSnapshotSettingRequest} message GetRegionSnapshotSettingRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRegionSnapshotSettingRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetRegionSnapshotSettingRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.GetRegionSnapshotSettingRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.GetRegionSnapshotSettingRequest} GetRegionSnapshotSettingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRegionSnapshotSettingRequest.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.v1.GetRegionSnapshotSettingRequest(); + 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; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetRegionSnapshotSettingRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.GetRegionSnapshotSettingRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.GetRegionSnapshotSettingRequest} GetRegionSnapshotSettingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRegionSnapshotSettingRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetRegionSnapshotSettingRequest message. + * @function verify + * @memberof google.cloud.compute.v1.GetRegionSnapshotSettingRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetRegionSnapshotSettingRequest.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"; + return null; + }; + + /** + * Creates a GetRegionSnapshotSettingRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.GetRegionSnapshotSettingRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.GetRegionSnapshotSettingRequest} GetRegionSnapshotSettingRequest + */ + GetRegionSnapshotSettingRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.GetRegionSnapshotSettingRequest) + return object; + var message = new $root.google.cloud.compute.v1.GetRegionSnapshotSettingRequest(); + 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 GetRegionSnapshotSettingRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.GetRegionSnapshotSettingRequest + * @static + * @param {google.cloud.compute.v1.GetRegionSnapshotSettingRequest} message GetRegionSnapshotSettingRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetRegionSnapshotSettingRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + } + 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 GetRegionSnapshotSettingRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.GetRegionSnapshotSettingRequest + * @instance + * @returns {Object.} JSON object + */ + GetRegionSnapshotSettingRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetRegionSnapshotSettingRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.GetRegionSnapshotSettingRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetRegionSnapshotSettingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.GetRegionSnapshotSettingRequest"; + }; + + return GetRegionSnapshotSettingRequest; + })(); + v1.GetRegionSslCertificateRequest = (function() { /** @@ -193501,6 +201957,258 @@ return GetZoneRequest; })(); + v1.GetZoneVmExtensionPolicyRequest = (function() { + + /** + * Properties of a GetZoneVmExtensionPolicyRequest. + * @memberof google.cloud.compute.v1 + * @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.v1 + * @classdesc Represents a GetZoneVmExtensionPolicyRequest. + * @implements IGetZoneVmExtensionPolicyRequest + * @constructor + * @param {google.cloud.compute.v1.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.v1.GetZoneVmExtensionPolicyRequest + * @instance + */ + GetZoneVmExtensionPolicyRequest.prototype.project = ""; + + /** + * GetZoneVmExtensionPolicyRequest vmExtensionPolicy. + * @member {string} vmExtensionPolicy + * @memberof google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest + * @instance + */ + GetZoneVmExtensionPolicyRequest.prototype.vmExtensionPolicy = ""; + + /** + * GetZoneVmExtensionPolicyRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest + * @instance + */ + GetZoneVmExtensionPolicyRequest.prototype.zone = ""; + + /** + * Creates a new GetZoneVmExtensionPolicyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1.IGetZoneVmExtensionPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest} GetZoneVmExtensionPolicyRequest instance + */ + GetZoneVmExtensionPolicyRequest.create = function create(properties) { + return new GetZoneVmExtensionPolicyRequest(properties); + }; + + /** + * Encodes the specified GetZoneVmExtensionPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1.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.v1.GetZoneVmExtensionPolicyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.GetZoneVmExtensionPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.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.v1.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.v1.GetZoneVmExtensionPolicyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest} GetZoneVmExtensionPolicyRequest + */ + GetZoneVmExtensionPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest) + return object; + var message = new $root.google.cloud.compute.v1.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.v1.GetZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.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.v1.GetZoneVmExtensionPolicyRequest"; + }; + + return GetZoneVmExtensionPolicyRequest; + })(); + v1.GlobalAddressesMoveRequest = (function() { /** @@ -205396,6 +214104,320 @@ return HealthSourceAggregatedList; })(); + v1.HealthSourceHealth = (function() { + + /** + * Properties of a HealthSourceHealth. + * @memberof google.cloud.compute.v1 + * @interface IHealthSourceHealth + * @property {string|null} [healthState] HealthSourceHealth healthState + * @property {string|null} [kind] HealthSourceHealth kind + * @property {Array.|null} [sources] HealthSourceHealth sources + */ + + /** + * Constructs a new HealthSourceHealth. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a HealthSourceHealth. + * @implements IHealthSourceHealth + * @constructor + * @param {google.cloud.compute.v1.IHealthSourceHealth=} [properties] Properties to set + */ + function HealthSourceHealth(properties) { + this.sources = []; + 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]]; + } + + /** + * HealthSourceHealth healthState. + * @member {string|null|undefined} healthState + * @memberof google.cloud.compute.v1.HealthSourceHealth + * @instance + */ + HealthSourceHealth.prototype.healthState = null; + + /** + * HealthSourceHealth kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.HealthSourceHealth + * @instance + */ + HealthSourceHealth.prototype.kind = null; + + /** + * HealthSourceHealth sources. + * @member {Array.} sources + * @memberof google.cloud.compute.v1.HealthSourceHealth + * @instance + */ + HealthSourceHealth.prototype.sources = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSourceHealth.prototype, "_healthState", { + get: $util.oneOfGetter($oneOfFields = ["healthState"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSourceHealth.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HealthSourceHealth instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.HealthSourceHealth + * @static + * @param {google.cloud.compute.v1.IHealthSourceHealth=} [properties] Properties to set + * @returns {google.cloud.compute.v1.HealthSourceHealth} HealthSourceHealth instance + */ + HealthSourceHealth.create = function create(properties) { + return new HealthSourceHealth(properties); + }; + + /** + * Encodes the specified HealthSourceHealth message. Does not implicitly {@link google.cloud.compute.v1.HealthSourceHealth.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.HealthSourceHealth + * @static + * @param {google.cloud.compute.v1.IHealthSourceHealth} message HealthSourceHealth message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthSourceHealth.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.sources != null && message.sources.length) + for (var i = 0; i < message.sources.length; ++i) + $root.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo.encode(message.sources[i], writer.uint32(/* id 125606840, wireType 2 =*/1004854722).fork()).ldelim(); + if (message.healthState != null && Object.hasOwnProperty.call(message, "healthState")) + writer.uint32(/* id 324007150, wireType 2 =*/2592057202).string(message.healthState); + return writer; + }; + + /** + * Encodes the specified HealthSourceHealth message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthSourceHealth.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.HealthSourceHealth + * @static + * @param {google.cloud.compute.v1.IHealthSourceHealth} message HealthSourceHealth message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthSourceHealth.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HealthSourceHealth message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.HealthSourceHealth + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.HealthSourceHealth} HealthSourceHealth + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthSourceHealth.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.v1.HealthSourceHealth(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 324007150: { + message.healthState = reader.string(); + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 125606840: { + if (!(message.sources && message.sources.length)) + message.sources = []; + message.sources.push($root.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HealthSourceHealth message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.HealthSourceHealth + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.HealthSourceHealth} HealthSourceHealth + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthSourceHealth.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HealthSourceHealth message. + * @function verify + * @memberof google.cloud.compute.v1.HealthSourceHealth + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HealthSourceHealth.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.healthState != null && message.hasOwnProperty("healthState")) { + properties._healthState = 1; + if (!$util.isString(message.healthState)) + return "healthState: string expected"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.sources != null && message.hasOwnProperty("sources")) { + if (!Array.isArray(message.sources)) + return "sources: array expected"; + for (var i = 0; i < message.sources.length; ++i) { + var error = $root.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo.verify(message.sources[i]); + if (error) + return "sources." + error; + } + } + return null; + }; + + /** + * Creates a HealthSourceHealth message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.HealthSourceHealth + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.HealthSourceHealth} HealthSourceHealth + */ + HealthSourceHealth.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.HealthSourceHealth) + return object; + var message = new $root.google.cloud.compute.v1.HealthSourceHealth(); + if (object.healthState != null) + message.healthState = String(object.healthState); + if (object.kind != null) + message.kind = String(object.kind); + if (object.sources) { + if (!Array.isArray(object.sources)) + throw TypeError(".google.cloud.compute.v1.HealthSourceHealth.sources: array expected"); + message.sources = []; + for (var i = 0; i < object.sources.length; ++i) { + if (typeof object.sources[i] !== "object") + throw TypeError(".google.cloud.compute.v1.HealthSourceHealth.sources: object expected"); + message.sources[i] = $root.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo.fromObject(object.sources[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a HealthSourceHealth message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.HealthSourceHealth + * @static + * @param {google.cloud.compute.v1.HealthSourceHealth} message HealthSourceHealth + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HealthSourceHealth.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.sources = []; + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.sources && message.sources.length) { + object.sources = []; + for (var j = 0; j < message.sources.length; ++j) + object.sources[j] = $root.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo.toObject(message.sources[j], options); + } + if (message.healthState != null && message.hasOwnProperty("healthState")) { + object.healthState = message.healthState; + if (options.oneofs) + object._healthState = "healthState"; + } + return object; + }; + + /** + * Converts this HealthSourceHealth to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.HealthSourceHealth + * @instance + * @returns {Object.} JSON object + */ + HealthSourceHealth.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HealthSourceHealth + * @function getTypeUrl + * @memberof google.cloud.compute.v1.HealthSourceHealth + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HealthSourceHealth.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.HealthSourceHealth"; + }; + + /** + * HealthState enum. + * @name google.cloud.compute.v1.HealthSourceHealth.HealthState + * @enum {number} + * @property {number} UNDEFINED_HEALTH_STATE=0 UNDEFINED_HEALTH_STATE value + * @property {number} HEALTHY=439801213 HEALTHY value + * @property {number} UNHEALTHY=462118084 UNHEALTHY value + * @property {number} UNKNOWN=433141802 UNKNOWN value + */ + HealthSourceHealth.HealthState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_HEALTH_STATE"] = 0; + values[valuesById[439801213] = "HEALTHY"] = 439801213; + values[valuesById[462118084] = "UNHEALTHY"] = 462118084; + values[valuesById[433141802] = "UNKNOWN"] = 433141802; + return values; + })(); + + return HealthSourceHealth; + })(); + v1.HealthSourceList = (function() { /** @@ -205797,6 +214819,586 @@ return HealthSourceList; })(); + v1.HealthSourcesGetHealthResponseSourceInfo = (function() { + + /** + * Properties of a HealthSourcesGetHealthResponseSourceInfo. + * @memberof google.cloud.compute.v1 + * @interface IHealthSourcesGetHealthResponseSourceInfo + * @property {Array.|null} [backends] HealthSourcesGetHealthResponseSourceInfo backends + * @property {string|null} [forwardingRule] HealthSourcesGetHealthResponseSourceInfo forwardingRule + * @property {string|null} [source] HealthSourcesGetHealthResponseSourceInfo source + */ + + /** + * Constructs a new HealthSourcesGetHealthResponseSourceInfo. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a HealthSourcesGetHealthResponseSourceInfo. + * @implements IHealthSourcesGetHealthResponseSourceInfo + * @constructor + * @param {google.cloud.compute.v1.IHealthSourcesGetHealthResponseSourceInfo=} [properties] Properties to set + */ + function HealthSourcesGetHealthResponseSourceInfo(properties) { + this.backends = []; + 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]]; + } + + /** + * HealthSourcesGetHealthResponseSourceInfo backends. + * @member {Array.} backends + * @memberof google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo + * @instance + */ + HealthSourcesGetHealthResponseSourceInfo.prototype.backends = $util.emptyArray; + + /** + * HealthSourcesGetHealthResponseSourceInfo forwardingRule. + * @member {string|null|undefined} forwardingRule + * @memberof google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo + * @instance + */ + HealthSourcesGetHealthResponseSourceInfo.prototype.forwardingRule = null; + + /** + * HealthSourcesGetHealthResponseSourceInfo source. + * @member {string|null|undefined} source + * @memberof google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo + * @instance + */ + HealthSourcesGetHealthResponseSourceInfo.prototype.source = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSourcesGetHealthResponseSourceInfo.prototype, "_forwardingRule", { + get: $util.oneOfGetter($oneOfFields = ["forwardingRule"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSourcesGetHealthResponseSourceInfo.prototype, "_source", { + get: $util.oneOfGetter($oneOfFields = ["source"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HealthSourcesGetHealthResponseSourceInfo instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo + * @static + * @param {google.cloud.compute.v1.IHealthSourcesGetHealthResponseSourceInfo=} [properties] Properties to set + * @returns {google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo} HealthSourcesGetHealthResponseSourceInfo instance + */ + HealthSourcesGetHealthResponseSourceInfo.create = function create(properties) { + return new HealthSourcesGetHealthResponseSourceInfo(properties); + }; + + /** + * Encodes the specified HealthSourcesGetHealthResponseSourceInfo message. Does not implicitly {@link google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo + * @static + * @param {google.cloud.compute.v1.IHealthSourcesGetHealthResponseSourceInfo} message HealthSourcesGetHealthResponseSourceInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthSourcesGetHealthResponseSourceInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.source != null && Object.hasOwnProperty.call(message, "source")) + writer.uint32(/* id 177235995, wireType 2 =*/1417887962).string(message.source); + if (message.forwardingRule != null && Object.hasOwnProperty.call(message, "forwardingRule")) + writer.uint32(/* id 269964030, wireType 2 =*/2159712242).string(message.forwardingRule); + if (message.backends != null && message.backends.length) + for (var i = 0; i < message.backends.length; ++i) + $root.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo.encode(message.backends[i], writer.uint32(/* id 510839903, wireType 2 =*/4086719226).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified HealthSourcesGetHealthResponseSourceInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo + * @static + * @param {google.cloud.compute.v1.IHealthSourcesGetHealthResponseSourceInfo} message HealthSourcesGetHealthResponseSourceInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthSourcesGetHealthResponseSourceInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HealthSourcesGetHealthResponseSourceInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo} HealthSourcesGetHealthResponseSourceInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthSourcesGetHealthResponseSourceInfo.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.v1.HealthSourcesGetHealthResponseSourceInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 510839903: { + if (!(message.backends && message.backends.length)) + message.backends = []; + message.backends.push($root.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo.decode(reader, reader.uint32())); + break; + } + case 269964030: { + message.forwardingRule = reader.string(); + break; + } + case 177235995: { + message.source = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HealthSourcesGetHealthResponseSourceInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo} HealthSourcesGetHealthResponseSourceInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthSourcesGetHealthResponseSourceInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HealthSourcesGetHealthResponseSourceInfo message. + * @function verify + * @memberof google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HealthSourcesGetHealthResponseSourceInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.backends != null && message.hasOwnProperty("backends")) { + if (!Array.isArray(message.backends)) + return "backends: array expected"; + for (var i = 0; i < message.backends.length; ++i) { + var error = $root.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo.verify(message.backends[i]); + if (error) + return "backends." + error; + } + } + if (message.forwardingRule != null && message.hasOwnProperty("forwardingRule")) { + properties._forwardingRule = 1; + if (!$util.isString(message.forwardingRule)) + return "forwardingRule: string expected"; + } + if (message.source != null && message.hasOwnProperty("source")) { + properties._source = 1; + if (!$util.isString(message.source)) + return "source: string expected"; + } + return null; + }; + + /** + * Creates a HealthSourcesGetHealthResponseSourceInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo} HealthSourcesGetHealthResponseSourceInfo + */ + HealthSourcesGetHealthResponseSourceInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo) + return object; + var message = new $root.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo(); + if (object.backends) { + if (!Array.isArray(object.backends)) + throw TypeError(".google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo.backends: array expected"); + message.backends = []; + for (var i = 0; i < object.backends.length; ++i) { + if (typeof object.backends[i] !== "object") + throw TypeError(".google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo.backends: object expected"); + message.backends[i] = $root.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo.fromObject(object.backends[i]); + } + } + if (object.forwardingRule != null) + message.forwardingRule = String(object.forwardingRule); + if (object.source != null) + message.source = String(object.source); + return message; + }; + + /** + * Creates a plain object from a HealthSourcesGetHealthResponseSourceInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo + * @static + * @param {google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo} message HealthSourcesGetHealthResponseSourceInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HealthSourcesGetHealthResponseSourceInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.backends = []; + if (message.source != null && message.hasOwnProperty("source")) { + object.source = message.source; + if (options.oneofs) + object._source = "source"; + } + if (message.forwardingRule != null && message.hasOwnProperty("forwardingRule")) { + object.forwardingRule = message.forwardingRule; + if (options.oneofs) + object._forwardingRule = "forwardingRule"; + } + if (message.backends && message.backends.length) { + object.backends = []; + for (var j = 0; j < message.backends.length; ++j) + object.backends[j] = $root.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo.toObject(message.backends[j], options); + } + return object; + }; + + /** + * Converts this HealthSourcesGetHealthResponseSourceInfo to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo + * @instance + * @returns {Object.} JSON object + */ + HealthSourcesGetHealthResponseSourceInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HealthSourcesGetHealthResponseSourceInfo + * @function getTypeUrl + * @memberof google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HealthSourcesGetHealthResponseSourceInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo"; + }; + + return HealthSourcesGetHealthResponseSourceInfo; + })(); + + v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo = (function() { + + /** + * Properties of a HealthSourcesGetHealthResponseSourceInfoBackendInfo. + * @memberof google.cloud.compute.v1 + * @interface IHealthSourcesGetHealthResponseSourceInfoBackendInfo + * @property {number|null} [endpointCount] HealthSourcesGetHealthResponseSourceInfoBackendInfo endpointCount + * @property {string|null} [group] HealthSourcesGetHealthResponseSourceInfoBackendInfo group + * @property {number|null} [healthyEndpointCount] HealthSourcesGetHealthResponseSourceInfoBackendInfo healthyEndpointCount + */ + + /** + * Constructs a new HealthSourcesGetHealthResponseSourceInfoBackendInfo. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a HealthSourcesGetHealthResponseSourceInfoBackendInfo. + * @implements IHealthSourcesGetHealthResponseSourceInfoBackendInfo + * @constructor + * @param {google.cloud.compute.v1.IHealthSourcesGetHealthResponseSourceInfoBackendInfo=} [properties] Properties to set + */ + function HealthSourcesGetHealthResponseSourceInfoBackendInfo(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]]; + } + + /** + * HealthSourcesGetHealthResponseSourceInfoBackendInfo endpointCount. + * @member {number|null|undefined} endpointCount + * @memberof google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @instance + */ + HealthSourcesGetHealthResponseSourceInfoBackendInfo.prototype.endpointCount = null; + + /** + * HealthSourcesGetHealthResponseSourceInfoBackendInfo group. + * @member {string|null|undefined} group + * @memberof google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @instance + */ + HealthSourcesGetHealthResponseSourceInfoBackendInfo.prototype.group = null; + + /** + * HealthSourcesGetHealthResponseSourceInfoBackendInfo healthyEndpointCount. + * @member {number|null|undefined} healthyEndpointCount + * @memberof google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @instance + */ + HealthSourcesGetHealthResponseSourceInfoBackendInfo.prototype.healthyEndpointCount = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSourcesGetHealthResponseSourceInfoBackendInfo.prototype, "_endpointCount", { + get: $util.oneOfGetter($oneOfFields = ["endpointCount"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSourcesGetHealthResponseSourceInfoBackendInfo.prototype, "_group", { + get: $util.oneOfGetter($oneOfFields = ["group"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSourcesGetHealthResponseSourceInfoBackendInfo.prototype, "_healthyEndpointCount", { + get: $util.oneOfGetter($oneOfFields = ["healthyEndpointCount"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HealthSourcesGetHealthResponseSourceInfoBackendInfo instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @static + * @param {google.cloud.compute.v1.IHealthSourcesGetHealthResponseSourceInfoBackendInfo=} [properties] Properties to set + * @returns {google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo} HealthSourcesGetHealthResponseSourceInfoBackendInfo instance + */ + HealthSourcesGetHealthResponseSourceInfoBackendInfo.create = function create(properties) { + return new HealthSourcesGetHealthResponseSourceInfoBackendInfo(properties); + }; + + /** + * Encodes the specified HealthSourcesGetHealthResponseSourceInfoBackendInfo message. Does not implicitly {@link google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @static + * @param {google.cloud.compute.v1.IHealthSourcesGetHealthResponseSourceInfoBackendInfo} message HealthSourcesGetHealthResponseSourceInfoBackendInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthSourcesGetHealthResponseSourceInfoBackendInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.group != null && Object.hasOwnProperty.call(message, "group")) + writer.uint32(/* id 98629247, wireType 2 =*/789033978).string(message.group); + if (message.healthyEndpointCount != null && Object.hasOwnProperty.call(message, "healthyEndpointCount")) + writer.uint32(/* id 291284167, wireType 0 =*/2330273336).int32(message.healthyEndpointCount); + if (message.endpointCount != null && Object.hasOwnProperty.call(message, "endpointCount")) + writer.uint32(/* id 486641125, wireType 0 =*/3893129000).int32(message.endpointCount); + return writer; + }; + + /** + * Encodes the specified HealthSourcesGetHealthResponseSourceInfoBackendInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @static + * @param {google.cloud.compute.v1.IHealthSourcesGetHealthResponseSourceInfoBackendInfo} message HealthSourcesGetHealthResponseSourceInfoBackendInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthSourcesGetHealthResponseSourceInfoBackendInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HealthSourcesGetHealthResponseSourceInfoBackendInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo} HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthSourcesGetHealthResponseSourceInfoBackendInfo.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.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 486641125: { + message.endpointCount = reader.int32(); + break; + } + case 98629247: { + message.group = reader.string(); + break; + } + case 291284167: { + message.healthyEndpointCount = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HealthSourcesGetHealthResponseSourceInfoBackendInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo} HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthSourcesGetHealthResponseSourceInfoBackendInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HealthSourcesGetHealthResponseSourceInfoBackendInfo message. + * @function verify + * @memberof google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HealthSourcesGetHealthResponseSourceInfoBackendInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.endpointCount != null && message.hasOwnProperty("endpointCount")) { + properties._endpointCount = 1; + if (!$util.isInteger(message.endpointCount)) + return "endpointCount: integer expected"; + } + if (message.group != null && message.hasOwnProperty("group")) { + properties._group = 1; + if (!$util.isString(message.group)) + return "group: string expected"; + } + if (message.healthyEndpointCount != null && message.hasOwnProperty("healthyEndpointCount")) { + properties._healthyEndpointCount = 1; + if (!$util.isInteger(message.healthyEndpointCount)) + return "healthyEndpointCount: integer expected"; + } + return null; + }; + + /** + * Creates a HealthSourcesGetHealthResponseSourceInfoBackendInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo} HealthSourcesGetHealthResponseSourceInfoBackendInfo + */ + HealthSourcesGetHealthResponseSourceInfoBackendInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo) + return object; + var message = new $root.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo(); + if (object.endpointCount != null) + message.endpointCount = object.endpointCount | 0; + if (object.group != null) + message.group = String(object.group); + if (object.healthyEndpointCount != null) + message.healthyEndpointCount = object.healthyEndpointCount | 0; + return message; + }; + + /** + * Creates a plain object from a HealthSourcesGetHealthResponseSourceInfoBackendInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @static + * @param {google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo} message HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HealthSourcesGetHealthResponseSourceInfoBackendInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.group != null && message.hasOwnProperty("group")) { + object.group = message.group; + if (options.oneofs) + object._group = "group"; + } + if (message.healthyEndpointCount != null && message.hasOwnProperty("healthyEndpointCount")) { + object.healthyEndpointCount = message.healthyEndpointCount; + if (options.oneofs) + object._healthyEndpointCount = "healthyEndpointCount"; + } + if (message.endpointCount != null && message.hasOwnProperty("endpointCount")) { + object.endpointCount = message.endpointCount; + if (options.oneofs) + object._endpointCount = "endpointCount"; + } + return object; + }; + + /** + * Converts this HealthSourcesGetHealthResponseSourceInfoBackendInfo to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @instance + * @returns {Object.} JSON object + */ + HealthSourcesGetHealthResponseSourceInfoBackendInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @function getTypeUrl + * @memberof google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HealthSourcesGetHealthResponseSourceInfoBackendInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo"; + }; + + return HealthSourcesGetHealthResponseSourceInfoBackendInfo; + })(); + v1.HealthSourcesScopedList = (function() { /** @@ -221370,6 +230972,333 @@ return InsertInstanceTemplateRequest; })(); + v1.InsertInstantSnapshotGroupRequest = (function() { + + /** + * Properties of an InsertInstantSnapshotGroupRequest. + * @memberof google.cloud.compute.v1 + * @interface IInsertInstantSnapshotGroupRequest + * @property {google.cloud.compute.v1.IInstantSnapshotGroup|null} [instantSnapshotGroupResource] InsertInstantSnapshotGroupRequest instantSnapshotGroupResource + * @property {string|null} [project] InsertInstantSnapshotGroupRequest project + * @property {string|null} [requestId] InsertInstantSnapshotGroupRequest requestId + * @property {string|null} [sourceConsistencyGroup] InsertInstantSnapshotGroupRequest sourceConsistencyGroup + * @property {string|null} [zone] InsertInstantSnapshotGroupRequest zone + */ + + /** + * Constructs a new InsertInstantSnapshotGroupRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InsertInstantSnapshotGroupRequest. + * @implements IInsertInstantSnapshotGroupRequest + * @constructor + * @param {google.cloud.compute.v1.IInsertInstantSnapshotGroupRequest=} [properties] Properties to set + */ + function InsertInstantSnapshotGroupRequest(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]]; + } + + /** + * InsertInstantSnapshotGroupRequest instantSnapshotGroupResource. + * @member {google.cloud.compute.v1.IInstantSnapshotGroup|null|undefined} instantSnapshotGroupResource + * @memberof google.cloud.compute.v1.InsertInstantSnapshotGroupRequest + * @instance + */ + InsertInstantSnapshotGroupRequest.prototype.instantSnapshotGroupResource = null; + + /** + * InsertInstantSnapshotGroupRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.InsertInstantSnapshotGroupRequest + * @instance + */ + InsertInstantSnapshotGroupRequest.prototype.project = ""; + + /** + * InsertInstantSnapshotGroupRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.InsertInstantSnapshotGroupRequest + * @instance + */ + InsertInstantSnapshotGroupRequest.prototype.requestId = null; + + /** + * InsertInstantSnapshotGroupRequest sourceConsistencyGroup. + * @member {string|null|undefined} sourceConsistencyGroup + * @memberof google.cloud.compute.v1.InsertInstantSnapshotGroupRequest + * @instance + */ + InsertInstantSnapshotGroupRequest.prototype.sourceConsistencyGroup = null; + + /** + * InsertInstantSnapshotGroupRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.InsertInstantSnapshotGroupRequest + * @instance + */ + InsertInstantSnapshotGroupRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InsertInstantSnapshotGroupRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InsertInstantSnapshotGroupRequest.prototype, "_sourceConsistencyGroup", { + get: $util.oneOfGetter($oneOfFields = ["sourceConsistencyGroup"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InsertInstantSnapshotGroupRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InsertInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.IInsertInstantSnapshotGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InsertInstantSnapshotGroupRequest} InsertInstantSnapshotGroupRequest instance + */ + InsertInstantSnapshotGroupRequest.create = function create(properties) { + return new InsertInstantSnapshotGroupRequest(properties); + }; + + /** + * Encodes the specified InsertInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertInstantSnapshotGroupRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InsertInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.IInsertInstantSnapshotGroupRequest} message InsertInstantSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertInstantSnapshotGroupRequest.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.instantSnapshotGroupResource != null && Object.hasOwnProperty.call(message, "instantSnapshotGroupResource")) + $root.google.cloud.compute.v1.InstantSnapshotGroup.encode(message.instantSnapshotGroupResource, writer.uint32(/* id 145067339, wireType 2 =*/1160538714).fork()).ldelim(); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.sourceConsistencyGroup != null && Object.hasOwnProperty.call(message, "sourceConsistencyGroup")) + writer.uint32(/* id 531359348, wireType 2 =*/4250874786).string(message.sourceConsistencyGroup); + return writer; + }; + + /** + * Encodes the specified InsertInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InsertInstantSnapshotGroupRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InsertInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.IInsertInstantSnapshotGroupRequest} message InsertInstantSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertInstantSnapshotGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InsertInstantSnapshotGroupRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InsertInstantSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.InsertInstantSnapshotGroupRequest} InsertInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertInstantSnapshotGroupRequest.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.v1.InsertInstantSnapshotGroupRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 145067339: { + message.instantSnapshotGroupResource = $root.google.cloud.compute.v1.InstantSnapshotGroup.decode(reader, reader.uint32()); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + case 531359348: { + message.sourceConsistencyGroup = reader.string(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InsertInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InsertInstantSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InsertInstantSnapshotGroupRequest} InsertInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertInstantSnapshotGroupRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InsertInstantSnapshotGroupRequest message. + * @function verify + * @memberof google.cloud.compute.v1.InsertInstantSnapshotGroupRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InsertInstantSnapshotGroupRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.instantSnapshotGroupResource != null && message.hasOwnProperty("instantSnapshotGroupResource")) { + var error = $root.google.cloud.compute.v1.InstantSnapshotGroup.verify(message.instantSnapshotGroupResource); + if (error) + return "instantSnapshotGroupResource." + error; + } + 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.sourceConsistencyGroup != null && message.hasOwnProperty("sourceConsistencyGroup")) { + properties._sourceConsistencyGroup = 1; + if (!$util.isString(message.sourceConsistencyGroup)) + return "sourceConsistencyGroup: string expected"; + } + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates an InsertInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InsertInstantSnapshotGroupRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InsertInstantSnapshotGroupRequest} InsertInstantSnapshotGroupRequest + */ + InsertInstantSnapshotGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest) + return object; + var message = new $root.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest(); + if (object.instantSnapshotGroupResource != null) { + if (typeof object.instantSnapshotGroupResource !== "object") + throw TypeError(".google.cloud.compute.v1.InsertInstantSnapshotGroupRequest.instantSnapshotGroupResource: object expected"); + message.instantSnapshotGroupResource = $root.google.cloud.compute.v1.InstantSnapshotGroup.fromObject(object.instantSnapshotGroupResource); + } + if (object.project != null) + message.project = String(object.project); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.sourceConsistencyGroup != null) + message.sourceConsistencyGroup = String(object.sourceConsistencyGroup); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from an InsertInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InsertInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.InsertInstantSnapshotGroupRequest} message InsertInstantSnapshotGroupRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InsertInstantSnapshotGroupRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.instantSnapshotGroupResource = null; + object.project = ""; + } + 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.instantSnapshotGroupResource != null && message.hasOwnProperty("instantSnapshotGroupResource")) + object.instantSnapshotGroupResource = $root.google.cloud.compute.v1.InstantSnapshotGroup.toObject(message.instantSnapshotGroupResource, options); + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.sourceConsistencyGroup != null && message.hasOwnProperty("sourceConsistencyGroup")) { + object.sourceConsistencyGroup = message.sourceConsistencyGroup; + if (options.oneofs) + object._sourceConsistencyGroup = "sourceConsistencyGroup"; + } + return object; + }; + + /** + * Converts this InsertInstantSnapshotGroupRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InsertInstantSnapshotGroupRequest + * @instance + * @returns {Object.} JSON object + */ + InsertInstantSnapshotGroupRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InsertInstantSnapshotGroupRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InsertInstantSnapshotGroupRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InsertInstantSnapshotGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InsertInstantSnapshotGroupRequest"; + }; + + return InsertInstantSnapshotGroupRequest; + })(); + v1.InsertInstantSnapshotRequest = (function() { /** @@ -226880,6 +236809,300 @@ return InsertRegionAutoscalerRequest; })(); + v1.InsertRegionBackendBucketRequest = (function() { + + /** + * Properties of an InsertRegionBackendBucketRequest. + * @memberof google.cloud.compute.v1 + * @interface IInsertRegionBackendBucketRequest + * @property {google.cloud.compute.v1.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.v1 + * @classdesc Represents an InsertRegionBackendBucketRequest. + * @implements IInsertRegionBackendBucketRequest + * @constructor + * @param {google.cloud.compute.v1.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.v1.IBackendBucket|null|undefined} backendBucketResource + * @memberof google.cloud.compute.v1.InsertRegionBackendBucketRequest + * @instance + */ + InsertRegionBackendBucketRequest.prototype.backendBucketResource = null; + + /** + * InsertRegionBackendBucketRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.InsertRegionBackendBucketRequest + * @instance + */ + InsertRegionBackendBucketRequest.prototype.project = ""; + + /** + * InsertRegionBackendBucketRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.InsertRegionBackendBucketRequest + * @instance + */ + InsertRegionBackendBucketRequest.prototype.region = ""; + + /** + * InsertRegionBackendBucketRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.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.v1.InsertRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1.IInsertRegionBackendBucketRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InsertRegionBackendBucketRequest} InsertRegionBackendBucketRequest instance + */ + InsertRegionBackendBucketRequest.create = function create(properties) { + return new InsertRegionBackendBucketRequest(properties); + }; + + /** + * Encodes the specified InsertRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertRegionBackendBucketRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InsertRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.InsertRegionBackendBucketRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InsertRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.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.v1.InsertRegionBackendBucketRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 380757784: { + message.backendBucketResource = $root.google.cloud.compute.v1.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.v1.InsertRegionBackendBucketRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.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.v1.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.v1.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.v1.InsertRegionBackendBucketRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InsertRegionBackendBucketRequest} InsertRegionBackendBucketRequest + */ + InsertRegionBackendBucketRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InsertRegionBackendBucketRequest) + return object; + var message = new $root.google.cloud.compute.v1.InsertRegionBackendBucketRequest(); + if (object.backendBucketResource != null) { + if (typeof object.backendBucketResource !== "object") + throw TypeError(".google.cloud.compute.v1.InsertRegionBackendBucketRequest.backendBucketResource: object expected"); + message.backendBucketResource = $root.google.cloud.compute.v1.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.v1.InsertRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1.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.v1.BackendBucket.toObject(message.backendBucketResource, options); + return object; + }; + + /** + * Converts this InsertRegionBackendBucketRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.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.v1.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.v1.InsertRegionBackendBucketRequest"; + }; + + return InsertRegionBackendBucketRequest; + })(); + v1.InsertRegionBackendServiceRequest = (function() { /** @@ -229559,6 +239782,323 @@ return InsertRegionInstanceGroupManagerRequest; })(); + v1.InsertRegionInstanceGroupManagerResizeRequestRequest = (function() { + + /** + * Properties of an InsertRegionInstanceGroupManagerResizeRequestRequest. + * @memberof google.cloud.compute.v1 + * @interface IInsertRegionInstanceGroupManagerResizeRequestRequest + * @property {string|null} [instanceGroupManager] InsertRegionInstanceGroupManagerResizeRequestRequest instanceGroupManager + * @property {google.cloud.compute.v1.IInstanceGroupManagerResizeRequest|null} [instanceGroupManagerResizeRequestResource] InsertRegionInstanceGroupManagerResizeRequestRequest instanceGroupManagerResizeRequestResource + * @property {string|null} [project] InsertRegionInstanceGroupManagerResizeRequestRequest project + * @property {string|null} [region] InsertRegionInstanceGroupManagerResizeRequestRequest region + * @property {string|null} [requestId] InsertRegionInstanceGroupManagerResizeRequestRequest requestId + */ + + /** + * Constructs a new InsertRegionInstanceGroupManagerResizeRequestRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InsertRegionInstanceGroupManagerResizeRequestRequest. + * @implements IInsertRegionInstanceGroupManagerResizeRequestRequest + * @constructor + * @param {google.cloud.compute.v1.IInsertRegionInstanceGroupManagerResizeRequestRequest=} [properties] Properties to set + */ + function InsertRegionInstanceGroupManagerResizeRequestRequest(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]]; + } + + /** + * InsertRegionInstanceGroupManagerResizeRequestRequest instanceGroupManager. + * @member {string} instanceGroupManager + * @memberof google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + * @instance + */ + InsertRegionInstanceGroupManagerResizeRequestRequest.prototype.instanceGroupManager = ""; + + /** + * InsertRegionInstanceGroupManagerResizeRequestRequest instanceGroupManagerResizeRequestResource. + * @member {google.cloud.compute.v1.IInstanceGroupManagerResizeRequest|null|undefined} instanceGroupManagerResizeRequestResource + * @memberof google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + * @instance + */ + InsertRegionInstanceGroupManagerResizeRequestRequest.prototype.instanceGroupManagerResizeRequestResource = null; + + /** + * InsertRegionInstanceGroupManagerResizeRequestRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + * @instance + */ + InsertRegionInstanceGroupManagerResizeRequestRequest.prototype.project = ""; + + /** + * InsertRegionInstanceGroupManagerResizeRequestRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + * @instance + */ + InsertRegionInstanceGroupManagerResizeRequestRequest.prototype.region = ""; + + /** + * InsertRegionInstanceGroupManagerResizeRequestRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + * @instance + */ + InsertRegionInstanceGroupManagerResizeRequestRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InsertRegionInstanceGroupManagerResizeRequestRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InsertRegionInstanceGroupManagerResizeRequestRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {google.cloud.compute.v1.IInsertRegionInstanceGroupManagerResizeRequestRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest} InsertRegionInstanceGroupManagerResizeRequestRequest instance + */ + InsertRegionInstanceGroupManagerResizeRequestRequest.create = function create(properties) { + return new InsertRegionInstanceGroupManagerResizeRequestRequest(properties); + }; + + /** + * Encodes the specified InsertRegionInstanceGroupManagerResizeRequestRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {google.cloud.compute.v1.IInsertRegionInstanceGroupManagerResizeRequestRequest} message InsertRegionInstanceGroupManagerResizeRequestRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertRegionInstanceGroupManagerResizeRequestRequest.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.instanceGroupManager != null && Object.hasOwnProperty.call(message, "instanceGroupManager")) + writer.uint32(/* id 249363395, wireType 2 =*/1994907162).string(message.instanceGroupManager); + if (message.instanceGroupManagerResizeRequestResource != null && Object.hasOwnProperty.call(message, "instanceGroupManagerResizeRequestResource")) + $root.google.cloud.compute.v1.InstanceGroupManagerResizeRequest.encode(message.instanceGroupManagerResizeRequestResource, writer.uint32(/* id 468541293, wireType 2 =*/3748330346).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified InsertRegionInstanceGroupManagerResizeRequestRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {google.cloud.compute.v1.IInsertRegionInstanceGroupManagerResizeRequestRequest} message InsertRegionInstanceGroupManagerResizeRequestRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertRegionInstanceGroupManagerResizeRequestRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InsertRegionInstanceGroupManagerResizeRequestRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest} InsertRegionInstanceGroupManagerResizeRequestRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertRegionInstanceGroupManagerResizeRequestRequest.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.v1.InsertRegionInstanceGroupManagerResizeRequestRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 249363395: { + message.instanceGroupManager = reader.string(); + break; + } + case 468541293: { + message.instanceGroupManagerResizeRequestResource = $root.google.cloud.compute.v1.InstanceGroupManagerResizeRequest.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 InsertRegionInstanceGroupManagerResizeRequestRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest} InsertRegionInstanceGroupManagerResizeRequestRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertRegionInstanceGroupManagerResizeRequestRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InsertRegionInstanceGroupManagerResizeRequestRequest message. + * @function verify + * @memberof google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InsertRegionInstanceGroupManagerResizeRequestRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.instanceGroupManager != null && message.hasOwnProperty("instanceGroupManager")) + if (!$util.isString(message.instanceGroupManager)) + return "instanceGroupManager: string expected"; + if (message.instanceGroupManagerResizeRequestResource != null && message.hasOwnProperty("instanceGroupManagerResizeRequestResource")) { + var error = $root.google.cloud.compute.v1.InstanceGroupManagerResizeRequest.verify(message.instanceGroupManagerResizeRequestResource); + if (error) + return "instanceGroupManagerResizeRequestResource." + 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 InsertRegionInstanceGroupManagerResizeRequestRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest} InsertRegionInstanceGroupManagerResizeRequestRequest + */ + InsertRegionInstanceGroupManagerResizeRequestRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest) + return object; + var message = new $root.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest(); + if (object.instanceGroupManager != null) + message.instanceGroupManager = String(object.instanceGroupManager); + if (object.instanceGroupManagerResizeRequestResource != null) { + if (typeof object.instanceGroupManagerResizeRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest.instanceGroupManagerResizeRequestResource: object expected"); + message.instanceGroupManagerResizeRequestResource = $root.google.cloud.compute.v1.InstanceGroupManagerResizeRequest.fromObject(object.instanceGroupManagerResizeRequestResource); + } + 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 InsertRegionInstanceGroupManagerResizeRequestRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest} message InsertRegionInstanceGroupManagerResizeRequestRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InsertRegionInstanceGroupManagerResizeRequestRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.instanceGroupManager = ""; + object.instanceGroupManagerResizeRequestResource = 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.instanceGroupManager != null && message.hasOwnProperty("instanceGroupManager")) + object.instanceGroupManager = message.instanceGroupManager; + if (message.instanceGroupManagerResizeRequestResource != null && message.hasOwnProperty("instanceGroupManagerResizeRequestResource")) + object.instanceGroupManagerResizeRequestResource = $root.google.cloud.compute.v1.InstanceGroupManagerResizeRequest.toObject(message.instanceGroupManagerResizeRequestResource, options); + return object; + }; + + /** + * Converts this InsertRegionInstanceGroupManagerResizeRequestRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + * @instance + * @returns {Object.} JSON object + */ + InsertRegionInstanceGroupManagerResizeRequestRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InsertRegionInstanceGroupManagerResizeRequestRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InsertRegionInstanceGroupManagerResizeRequestRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest"; + }; + + return InsertRegionInstanceGroupManagerResizeRequestRequest; + })(); + v1.InsertRegionInstanceTemplateRequest = (function() { /** @@ -229853,6 +240393,333 @@ return InsertRegionInstanceTemplateRequest; })(); + v1.InsertRegionInstantSnapshotGroupRequest = (function() { + + /** + * Properties of an InsertRegionInstantSnapshotGroupRequest. + * @memberof google.cloud.compute.v1 + * @interface IInsertRegionInstantSnapshotGroupRequest + * @property {google.cloud.compute.v1.IInstantSnapshotGroup|null} [instantSnapshotGroupResource] InsertRegionInstantSnapshotGroupRequest instantSnapshotGroupResource + * @property {string|null} [project] InsertRegionInstantSnapshotGroupRequest project + * @property {string|null} [region] InsertRegionInstantSnapshotGroupRequest region + * @property {string|null} [requestId] InsertRegionInstantSnapshotGroupRequest requestId + * @property {string|null} [sourceConsistencyGroup] InsertRegionInstantSnapshotGroupRequest sourceConsistencyGroup + */ + + /** + * Constructs a new InsertRegionInstantSnapshotGroupRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InsertRegionInstantSnapshotGroupRequest. + * @implements IInsertRegionInstantSnapshotGroupRequest + * @constructor + * @param {google.cloud.compute.v1.IInsertRegionInstantSnapshotGroupRequest=} [properties] Properties to set + */ + function InsertRegionInstantSnapshotGroupRequest(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]]; + } + + /** + * InsertRegionInstantSnapshotGroupRequest instantSnapshotGroupResource. + * @member {google.cloud.compute.v1.IInstantSnapshotGroup|null|undefined} instantSnapshotGroupResource + * @memberof google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest + * @instance + */ + InsertRegionInstantSnapshotGroupRequest.prototype.instantSnapshotGroupResource = null; + + /** + * InsertRegionInstantSnapshotGroupRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest + * @instance + */ + InsertRegionInstantSnapshotGroupRequest.prototype.project = ""; + + /** + * InsertRegionInstantSnapshotGroupRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest + * @instance + */ + InsertRegionInstantSnapshotGroupRequest.prototype.region = ""; + + /** + * InsertRegionInstantSnapshotGroupRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest + * @instance + */ + InsertRegionInstantSnapshotGroupRequest.prototype.requestId = null; + + /** + * InsertRegionInstantSnapshotGroupRequest sourceConsistencyGroup. + * @member {string|null|undefined} sourceConsistencyGroup + * @memberof google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest + * @instance + */ + InsertRegionInstantSnapshotGroupRequest.prototype.sourceConsistencyGroup = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InsertRegionInstantSnapshotGroupRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InsertRegionInstantSnapshotGroupRequest.prototype, "_sourceConsistencyGroup", { + get: $util.oneOfGetter($oneOfFields = ["sourceConsistencyGroup"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InsertRegionInstantSnapshotGroupRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.IInsertRegionInstantSnapshotGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest} InsertRegionInstantSnapshotGroupRequest instance + */ + InsertRegionInstantSnapshotGroupRequest.create = function create(properties) { + return new InsertRegionInstantSnapshotGroupRequest(properties); + }; + + /** + * Encodes the specified InsertRegionInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.IInsertRegionInstantSnapshotGroupRequest} message InsertRegionInstantSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertRegionInstantSnapshotGroupRequest.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.instantSnapshotGroupResource != null && Object.hasOwnProperty.call(message, "instantSnapshotGroupResource")) + $root.google.cloud.compute.v1.InstantSnapshotGroup.encode(message.instantSnapshotGroupResource, writer.uint32(/* id 145067339, wireType 2 =*/1160538714).fork()).ldelim(); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.sourceConsistencyGroup != null && Object.hasOwnProperty.call(message, "sourceConsistencyGroup")) + writer.uint32(/* id 531359348, wireType 2 =*/4250874786).string(message.sourceConsistencyGroup); + return writer; + }; + + /** + * Encodes the specified InsertRegionInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.IInsertRegionInstantSnapshotGroupRequest} message InsertRegionInstantSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertRegionInstantSnapshotGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InsertRegionInstantSnapshotGroupRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest} InsertRegionInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertRegionInstantSnapshotGroupRequest.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.v1.InsertRegionInstantSnapshotGroupRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 145067339: { + message.instantSnapshotGroupResource = $root.google.cloud.compute.v1.InstantSnapshotGroup.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; + } + case 531359348: { + message.sourceConsistencyGroup = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InsertRegionInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest} InsertRegionInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertRegionInstantSnapshotGroupRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InsertRegionInstantSnapshotGroupRequest message. + * @function verify + * @memberof google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InsertRegionInstantSnapshotGroupRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.instantSnapshotGroupResource != null && message.hasOwnProperty("instantSnapshotGroupResource")) { + var error = $root.google.cloud.compute.v1.InstantSnapshotGroup.verify(message.instantSnapshotGroupResource); + if (error) + return "instantSnapshotGroupResource." + 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"; + } + if (message.sourceConsistencyGroup != null && message.hasOwnProperty("sourceConsistencyGroup")) { + properties._sourceConsistencyGroup = 1; + if (!$util.isString(message.sourceConsistencyGroup)) + return "sourceConsistencyGroup: string expected"; + } + return null; + }; + + /** + * Creates an InsertRegionInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest} InsertRegionInstantSnapshotGroupRequest + */ + InsertRegionInstantSnapshotGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest) + return object; + var message = new $root.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest(); + if (object.instantSnapshotGroupResource != null) { + if (typeof object.instantSnapshotGroupResource !== "object") + throw TypeError(".google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest.instantSnapshotGroupResource: object expected"); + message.instantSnapshotGroupResource = $root.google.cloud.compute.v1.InstantSnapshotGroup.fromObject(object.instantSnapshotGroupResource); + } + 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); + if (object.sourceConsistencyGroup != null) + message.sourceConsistencyGroup = String(object.sourceConsistencyGroup); + return message; + }; + + /** + * Creates a plain object from an InsertRegionInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest} message InsertRegionInstantSnapshotGroupRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InsertRegionInstantSnapshotGroupRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.instantSnapshotGroupResource = 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.instantSnapshotGroupResource != null && message.hasOwnProperty("instantSnapshotGroupResource")) + object.instantSnapshotGroupResource = $root.google.cloud.compute.v1.InstantSnapshotGroup.toObject(message.instantSnapshotGroupResource, options); + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.sourceConsistencyGroup != null && message.hasOwnProperty("sourceConsistencyGroup")) { + object.sourceConsistencyGroup = message.sourceConsistencyGroup; + if (options.oneofs) + object._sourceConsistencyGroup = "sourceConsistencyGroup"; + } + return object; + }; + + /** + * Converts this InsertRegionInstantSnapshotGroupRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest + * @instance + * @returns {Object.} JSON object + */ + InsertRegionInstantSnapshotGroupRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InsertRegionInstantSnapshotGroupRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InsertRegionInstantSnapshotGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest"; + }; + + return InsertRegionInstantSnapshotGroupRequest; + })(); + v1.InsertRegionInstantSnapshotRequest = (function() { /** @@ -231356,6 +242223,300 @@ return InsertRegionSecurityPolicyRequest; })(); + v1.InsertRegionSnapshotRequest = (function() { + + /** + * Properties of an InsertRegionSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @interface IInsertRegionSnapshotRequest + * @property {string|null} [project] InsertRegionSnapshotRequest project + * @property {string|null} [region] InsertRegionSnapshotRequest region + * @property {string|null} [requestId] InsertRegionSnapshotRequest requestId + * @property {google.cloud.compute.v1.ISnapshot|null} [snapshotResource] InsertRegionSnapshotRequest snapshotResource + */ + + /** + * Constructs a new InsertRegionSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InsertRegionSnapshotRequest. + * @implements IInsertRegionSnapshotRequest + * @constructor + * @param {google.cloud.compute.v1.IInsertRegionSnapshotRequest=} [properties] Properties to set + */ + function InsertRegionSnapshotRequest(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]]; + } + + /** + * InsertRegionSnapshotRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.InsertRegionSnapshotRequest + * @instance + */ + InsertRegionSnapshotRequest.prototype.project = ""; + + /** + * InsertRegionSnapshotRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.InsertRegionSnapshotRequest + * @instance + */ + InsertRegionSnapshotRequest.prototype.region = ""; + + /** + * InsertRegionSnapshotRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.InsertRegionSnapshotRequest + * @instance + */ + InsertRegionSnapshotRequest.prototype.requestId = null; + + /** + * InsertRegionSnapshotRequest snapshotResource. + * @member {google.cloud.compute.v1.ISnapshot|null|undefined} snapshotResource + * @memberof google.cloud.compute.v1.InsertRegionSnapshotRequest + * @instance + */ + InsertRegionSnapshotRequest.prototype.snapshotResource = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InsertRegionSnapshotRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InsertRegionSnapshotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InsertRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IInsertRegionSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InsertRegionSnapshotRequest} InsertRegionSnapshotRequest instance + */ + InsertRegionSnapshotRequest.create = function create(properties) { + return new InsertRegionSnapshotRequest(properties); + }; + + /** + * Encodes the specified InsertRegionSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertRegionSnapshotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InsertRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IInsertRegionSnapshotRequest} message InsertRegionSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertRegionSnapshotRequest.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.snapshotResource != null && Object.hasOwnProperty.call(message, "snapshotResource")) + $root.google.cloud.compute.v1.Snapshot.encode(message.snapshotResource, writer.uint32(/* id 481319977, wireType 2 =*/3850559818).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified InsertRegionSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InsertRegionSnapshotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InsertRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IInsertRegionSnapshotRequest} message InsertRegionSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertRegionSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InsertRegionSnapshotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InsertRegionSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.InsertRegionSnapshotRequest} InsertRegionSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertRegionSnapshotRequest.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.v1.InsertRegionSnapshotRequest(); + 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 37109963: { + message.requestId = reader.string(); + break; + } + case 481319977: { + message.snapshotResource = $root.google.cloud.compute.v1.Snapshot.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InsertRegionSnapshotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InsertRegionSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InsertRegionSnapshotRequest} InsertRegionSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertRegionSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InsertRegionSnapshotRequest message. + * @function verify + * @memberof google.cloud.compute.v1.InsertRegionSnapshotRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InsertRegionSnapshotRequest.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.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"; + } + if (message.snapshotResource != null && message.hasOwnProperty("snapshotResource")) { + var error = $root.google.cloud.compute.v1.Snapshot.verify(message.snapshotResource); + if (error) + return "snapshotResource." + error; + } + return null; + }; + + /** + * Creates an InsertRegionSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InsertRegionSnapshotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InsertRegionSnapshotRequest} InsertRegionSnapshotRequest + */ + InsertRegionSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InsertRegionSnapshotRequest) + return object; + var message = new $root.google.cloud.compute.v1.InsertRegionSnapshotRequest(); + 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); + if (object.snapshotResource != null) { + if (typeof object.snapshotResource !== "object") + throw TypeError(".google.cloud.compute.v1.InsertRegionSnapshotRequest.snapshotResource: object expected"); + message.snapshotResource = $root.google.cloud.compute.v1.Snapshot.fromObject(object.snapshotResource); + } + return message; + }; + + /** + * Creates a plain object from an InsertRegionSnapshotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InsertRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.InsertRegionSnapshotRequest} message InsertRegionSnapshotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InsertRegionSnapshotRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.snapshotResource = 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.snapshotResource != null && message.hasOwnProperty("snapshotResource")) + object.snapshotResource = $root.google.cloud.compute.v1.Snapshot.toObject(message.snapshotResource, options); + return object; + }; + + /** + * Converts this InsertRegionSnapshotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InsertRegionSnapshotRequest + * @instance + * @returns {Object.} JSON object + */ + InsertRegionSnapshotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InsertRegionSnapshotRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InsertRegionSnapshotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InsertRegionSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InsertRegionSnapshotRequest"; + }; + + return InsertRegionSnapshotRequest; + })(); + v1.InsertRegionSslCertificateRequest = (function() { /** @@ -239695,6 +250856,300 @@ return InsertWireGroupRequest; })(); + v1.InsertZoneVmExtensionPolicyRequest = (function() { + + /** + * Properties of an InsertZoneVmExtensionPolicyRequest. + * @memberof google.cloud.compute.v1 + * @interface IInsertZoneVmExtensionPolicyRequest + * @property {string|null} [project] InsertZoneVmExtensionPolicyRequest project + * @property {string|null} [requestId] InsertZoneVmExtensionPolicyRequest requestId + * @property {google.cloud.compute.v1.IVmExtensionPolicy|null} [vmExtensionPolicyResource] InsertZoneVmExtensionPolicyRequest vmExtensionPolicyResource + * @property {string|null} [zone] InsertZoneVmExtensionPolicyRequest zone + */ + + /** + * Constructs a new InsertZoneVmExtensionPolicyRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InsertZoneVmExtensionPolicyRequest. + * @implements IInsertZoneVmExtensionPolicyRequest + * @constructor + * @param {google.cloud.compute.v1.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.v1.InsertZoneVmExtensionPolicyRequest + * @instance + */ + InsertZoneVmExtensionPolicyRequest.prototype.project = ""; + + /** + * InsertZoneVmExtensionPolicyRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest + * @instance + */ + InsertZoneVmExtensionPolicyRequest.prototype.requestId = null; + + /** + * InsertZoneVmExtensionPolicyRequest vmExtensionPolicyResource. + * @member {google.cloud.compute.v1.IVmExtensionPolicy|null|undefined} vmExtensionPolicyResource + * @memberof google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest + * @instance + */ + InsertZoneVmExtensionPolicyRequest.prototype.vmExtensionPolicyResource = null; + + /** + * InsertZoneVmExtensionPolicyRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.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.v1.InsertZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1.IInsertZoneVmExtensionPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest} InsertZoneVmExtensionPolicyRequest instance + */ + InsertZoneVmExtensionPolicyRequest.create = function create(properties) { + return new InsertZoneVmExtensionPolicyRequest(properties); + }; + + /** + * Encodes the specified InsertZoneVmExtensionPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.InsertZoneVmExtensionPolicyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.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.v1.InsertZoneVmExtensionPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.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.v1.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.v1.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.v1.InsertZoneVmExtensionPolicyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest} InsertZoneVmExtensionPolicyRequest + */ + InsertZoneVmExtensionPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest) + return object; + var message = new $root.google.cloud.compute.v1.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.v1.InsertZoneVmExtensionPolicyRequest.vmExtensionPolicyResource: object expected"); + message.vmExtensionPolicyResource = $root.google.cloud.compute.v1.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.v1.InsertZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1.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.v1.VmExtensionPolicy.toObject(message.vmExtensionPolicyResource, options); + return object; + }; + + /** + * Converts this InsertZoneVmExtensionPolicyRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.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.v1.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.v1.InsertZoneVmExtensionPolicyRequest"; + }; + + return InsertZoneVmExtensionPolicyRequest; + })(); + v1.Instance = (function() { /** @@ -248979,6 +260434,7 @@ * @property {number|Long|null} [id] InstanceGroupManagerResizeRequest id * @property {string|null} [kind] InstanceGroupManagerResizeRequest kind * @property {string|null} [name] InstanceGroupManagerResizeRequest name + * @property {string|null} [region] InstanceGroupManagerResizeRequest region * @property {google.cloud.compute.v1.IDuration|null} [requestedRunDuration] InstanceGroupManagerResizeRequest requestedRunDuration * @property {number|null} [resizeBy] InstanceGroupManagerResizeRequest resizeBy * @property {string|null} [selfLink] InstanceGroupManagerResizeRequest selfLink @@ -249043,6 +260499,14 @@ */ InstanceGroupManagerResizeRequest.prototype.name = null; + /** + * InstanceGroupManagerResizeRequest region. + * @member {string|null|undefined} region + * @memberof google.cloud.compute.v1.InstanceGroupManagerResizeRequest + * @instance + */ + InstanceGroupManagerResizeRequest.prototype.region = null; + /** * InstanceGroupManagerResizeRequest requestedRunDuration. * @member {google.cloud.compute.v1.IDuration|null|undefined} requestedRunDuration @@ -249132,6 +260596,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerResizeRequest.prototype, "_region", { + get: $util.oneOfGetter($oneOfFields = ["region"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(InstanceGroupManagerResizeRequest.prototype, "_requestedRunDuration", { get: $util.oneOfGetter($oneOfFields = ["requestedRunDuration"]), @@ -249212,6 +260682,8 @@ writer.uint32(/* id 44520962, wireType 2 =*/356167698).string(message.selfLinkWithId); if (message.state != null && Object.hasOwnProperty.call(message, "state")) writer.uint32(/* id 109757585, wireType 2 =*/878060682).string(message.state); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); if (message.status != null && Object.hasOwnProperty.call(message, "status")) $root.google.cloud.compute.v1.InstanceGroupManagerResizeRequestStatus.encode(message.status, writer.uint32(/* id 181260274, wireType 2 =*/1450082194).fork()).ldelim(); if (message.requestedRunDuration != null && Object.hasOwnProperty.call(message, "requestedRunDuration")) @@ -249278,6 +260750,10 @@ message.name = reader.string(); break; } + case 138946292: { + message.region = reader.string(); + break; + } case 232146425: { message.requestedRunDuration = $root.google.cloud.compute.v1.Duration.decode(reader, reader.uint32()); break; @@ -249367,6 +260843,11 @@ 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.requestedRunDuration != null && message.hasOwnProperty("requestedRunDuration")) { properties._requestedRunDuration = 1; { @@ -249440,6 +260921,8 @@ 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.requestedRunDuration != null) { if (typeof object.requestedRunDuration !== "object") throw TypeError(".google.cloud.compute.v1.InstanceGroupManagerResizeRequest.requestedRunDuration: object expected"); @@ -249514,6 +260997,11 @@ if (options.oneofs) object._state = "state"; } + if (message.region != null && message.hasOwnProperty("region")) { + object.region = message.region; + if (options.oneofs) + object._region = "region"; + } if (message.status != null && message.hasOwnProperty("status")) { object.status = $root.google.cloud.compute.v1.InstanceGroupManagerResizeRequestStatus.toObject(message.status, options); if (options.oneofs) @@ -250978,6 +262466,7 @@ * @property {Array.|null} [appliedAcceleratorTopologies] InstanceGroupManagerStatus appliedAcceleratorTopologies * @property {string|null} [autoscaler] InstanceGroupManagerStatus autoscaler * @property {google.cloud.compute.v1.IInstanceGroupManagerStatusBulkInstanceOperation|null} [bulkInstanceOperation] InstanceGroupManagerStatus bulkInstanceOperation + * @property {google.cloud.compute.v1.IInstanceGroupManagerStatusInstanceStatusSummary|null} [currentInstanceStatuses] InstanceGroupManagerStatus currentInstanceStatuses * @property {boolean|null} [isStable] InstanceGroupManagerStatus isStable * @property {google.cloud.compute.v1.IInstanceGroupManagerStatusStateful|null} [stateful] InstanceGroupManagerStatus stateful * @property {google.cloud.compute.v1.IInstanceGroupManagerStatusVersionTarget|null} [versionTarget] InstanceGroupManagerStatus versionTarget @@ -251031,6 +262520,14 @@ */ InstanceGroupManagerStatus.prototype.bulkInstanceOperation = null; + /** + * InstanceGroupManagerStatus currentInstanceStatuses. + * @member {google.cloud.compute.v1.IInstanceGroupManagerStatusInstanceStatusSummary|null|undefined} currentInstanceStatuses + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatus + * @instance + */ + InstanceGroupManagerStatus.prototype.currentInstanceStatuses = null; + /** * InstanceGroupManagerStatus isStable. * @member {boolean|null|undefined} isStable @@ -251076,6 +262573,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatus.prototype, "_currentInstanceStatuses", { + get: $util.oneOfGetter($oneOfFields = ["currentInstanceStatuses"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(InstanceGroupManagerStatus.prototype, "_isStable", { get: $util.oneOfGetter($oneOfFields = ["isStable"]), @@ -251124,6 +262627,8 @@ $root.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig.encode(message.allInstancesConfig, writer.uint32(/* id 112596737, wireType 2 =*/900773898).fork()).ldelim(); if (message.stateful != null && Object.hasOwnProperty.call(message, "stateful")) $root.google.cloud.compute.v1.InstanceGroupManagerStatusStateful.encode(message.stateful, writer.uint32(/* id 244462412, wireType 2 =*/1955699298).fork()).ldelim(); + if (message.currentInstanceStatuses != null && Object.hasOwnProperty.call(message, "currentInstanceStatuses")) + $root.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary.encode(message.currentInstanceStatuses, writer.uint32(/* id 269432644, wireType 2 =*/2155461154).fork()).ldelim(); if (message.versionTarget != null && Object.hasOwnProperty.call(message, "versionTarget")) $root.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget.encode(message.versionTarget, writer.uint32(/* id 289386200, wireType 2 =*/2315089602).fork()).ldelim(); if (message.appliedAcceleratorTopologies != null && message.appliedAcceleratorTopologies.length) @@ -251187,6 +262692,10 @@ message.bulkInstanceOperation = $root.google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation.decode(reader, reader.uint32()); break; } + case 269432644: { + message.currentInstanceStatuses = $root.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary.decode(reader, reader.uint32()); + break; + } case 108410864: { message.isStable = reader.bool(); break; @@ -251265,6 +262774,14 @@ return "bulkInstanceOperation." + error; } } + if (message.currentInstanceStatuses != null && message.hasOwnProperty("currentInstanceStatuses")) { + properties._currentInstanceStatuses = 1; + { + var error = $root.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary.verify(message.currentInstanceStatuses); + if (error) + return "currentInstanceStatuses." + error; + } + } if (message.isStable != null && message.hasOwnProperty("isStable")) { properties._isStable = 1; if (typeof message.isStable !== "boolean") @@ -251323,6 +262840,11 @@ throw TypeError(".google.cloud.compute.v1.InstanceGroupManagerStatus.bulkInstanceOperation: object expected"); message.bulkInstanceOperation = $root.google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation.fromObject(object.bulkInstanceOperation); } + if (object.currentInstanceStatuses != null) { + if (typeof object.currentInstanceStatuses !== "object") + throw TypeError(".google.cloud.compute.v1.InstanceGroupManagerStatus.currentInstanceStatuses: object expected"); + message.currentInstanceStatuses = $root.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary.fromObject(object.currentInstanceStatuses); + } if (object.isStable != null) message.isStable = Boolean(object.isStable); if (object.stateful != null) { @@ -251368,6 +262890,11 @@ if (options.oneofs) object._stateful = "stateful"; } + if (message.currentInstanceStatuses != null && message.hasOwnProperty("currentInstanceStatuses")) { + object.currentInstanceStatuses = $root.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary.toObject(message.currentInstanceStatuses, options); + if (options.oneofs) + object._currentInstanceStatuses = "currentInstanceStatuses"; + } if (message.versionTarget != null && message.hasOwnProperty("versionTarget")) { object.versionTarget = $root.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget.toObject(message.versionTarget, options); if (options.oneofs) @@ -252756,6 +264283,620 @@ return InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck; })(); + v1.InstanceGroupManagerStatusInstanceStatusSummary = (function() { + + /** + * Properties of an InstanceGroupManagerStatusInstanceStatusSummary. + * @memberof google.cloud.compute.v1 + * @interface IInstanceGroupManagerStatusInstanceStatusSummary + * @property {number|null} [deprovisioning] InstanceGroupManagerStatusInstanceStatusSummary deprovisioning + * @property {number|null} [nonExistent] InstanceGroupManagerStatusInstanceStatusSummary nonExistent + * @property {number|null} [pending] InstanceGroupManagerStatusInstanceStatusSummary pending + * @property {number|null} [pendingStop] InstanceGroupManagerStatusInstanceStatusSummary pendingStop + * @property {number|null} [provisioning] InstanceGroupManagerStatusInstanceStatusSummary provisioning + * @property {number|null} [repairing] InstanceGroupManagerStatusInstanceStatusSummary repairing + * @property {number|null} [running] InstanceGroupManagerStatusInstanceStatusSummary running + * @property {number|null} [staging] InstanceGroupManagerStatusInstanceStatusSummary staging + * @property {number|null} [stopped] InstanceGroupManagerStatusInstanceStatusSummary stopped + * @property {number|null} [stopping] InstanceGroupManagerStatusInstanceStatusSummary stopping + * @property {number|null} [suspended] InstanceGroupManagerStatusInstanceStatusSummary suspended + * @property {number|null} [suspending] InstanceGroupManagerStatusInstanceStatusSummary suspending + * @property {number|null} [terminated] InstanceGroupManagerStatusInstanceStatusSummary terminated + */ + + /** + * Constructs a new InstanceGroupManagerStatusInstanceStatusSummary. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InstanceGroupManagerStatusInstanceStatusSummary. + * @implements IInstanceGroupManagerStatusInstanceStatusSummary + * @constructor + * @param {google.cloud.compute.v1.IInstanceGroupManagerStatusInstanceStatusSummary=} [properties] Properties to set + */ + function InstanceGroupManagerStatusInstanceStatusSummary(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]]; + } + + /** + * InstanceGroupManagerStatusInstanceStatusSummary deprovisioning. + * @member {number|null|undefined} deprovisioning + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + * @instance + */ + InstanceGroupManagerStatusInstanceStatusSummary.prototype.deprovisioning = null; + + /** + * InstanceGroupManagerStatusInstanceStatusSummary nonExistent. + * @member {number|null|undefined} nonExistent + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + * @instance + */ + InstanceGroupManagerStatusInstanceStatusSummary.prototype.nonExistent = null; + + /** + * InstanceGroupManagerStatusInstanceStatusSummary pending. + * @member {number|null|undefined} pending + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + * @instance + */ + InstanceGroupManagerStatusInstanceStatusSummary.prototype.pending = null; + + /** + * InstanceGroupManagerStatusInstanceStatusSummary pendingStop. + * @member {number|null|undefined} pendingStop + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + * @instance + */ + InstanceGroupManagerStatusInstanceStatusSummary.prototype.pendingStop = null; + + /** + * InstanceGroupManagerStatusInstanceStatusSummary provisioning. + * @member {number|null|undefined} provisioning + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + * @instance + */ + InstanceGroupManagerStatusInstanceStatusSummary.prototype.provisioning = null; + + /** + * InstanceGroupManagerStatusInstanceStatusSummary repairing. + * @member {number|null|undefined} repairing + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + * @instance + */ + InstanceGroupManagerStatusInstanceStatusSummary.prototype.repairing = null; + + /** + * InstanceGroupManagerStatusInstanceStatusSummary running. + * @member {number|null|undefined} running + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + * @instance + */ + InstanceGroupManagerStatusInstanceStatusSummary.prototype.running = null; + + /** + * InstanceGroupManagerStatusInstanceStatusSummary staging. + * @member {number|null|undefined} staging + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + * @instance + */ + InstanceGroupManagerStatusInstanceStatusSummary.prototype.staging = null; + + /** + * InstanceGroupManagerStatusInstanceStatusSummary stopped. + * @member {number|null|undefined} stopped + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + * @instance + */ + InstanceGroupManagerStatusInstanceStatusSummary.prototype.stopped = null; + + /** + * InstanceGroupManagerStatusInstanceStatusSummary stopping. + * @member {number|null|undefined} stopping + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + * @instance + */ + InstanceGroupManagerStatusInstanceStatusSummary.prototype.stopping = null; + + /** + * InstanceGroupManagerStatusInstanceStatusSummary suspended. + * @member {number|null|undefined} suspended + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + * @instance + */ + InstanceGroupManagerStatusInstanceStatusSummary.prototype.suspended = null; + + /** + * InstanceGroupManagerStatusInstanceStatusSummary suspending. + * @member {number|null|undefined} suspending + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + * @instance + */ + InstanceGroupManagerStatusInstanceStatusSummary.prototype.suspending = null; + + /** + * InstanceGroupManagerStatusInstanceStatusSummary terminated. + * @member {number|null|undefined} terminated + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + * @instance + */ + InstanceGroupManagerStatusInstanceStatusSummary.prototype.terminated = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusInstanceStatusSummary.prototype, "_deprovisioning", { + get: $util.oneOfGetter($oneOfFields = ["deprovisioning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusInstanceStatusSummary.prototype, "_nonExistent", { + get: $util.oneOfGetter($oneOfFields = ["nonExistent"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusInstanceStatusSummary.prototype, "_pending", { + get: $util.oneOfGetter($oneOfFields = ["pending"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusInstanceStatusSummary.prototype, "_pendingStop", { + get: $util.oneOfGetter($oneOfFields = ["pendingStop"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusInstanceStatusSummary.prototype, "_provisioning", { + get: $util.oneOfGetter($oneOfFields = ["provisioning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusInstanceStatusSummary.prototype, "_repairing", { + get: $util.oneOfGetter($oneOfFields = ["repairing"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusInstanceStatusSummary.prototype, "_running", { + get: $util.oneOfGetter($oneOfFields = ["running"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusInstanceStatusSummary.prototype, "_staging", { + get: $util.oneOfGetter($oneOfFields = ["staging"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusInstanceStatusSummary.prototype, "_stopped", { + get: $util.oneOfGetter($oneOfFields = ["stopped"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusInstanceStatusSummary.prototype, "_stopping", { + get: $util.oneOfGetter($oneOfFields = ["stopping"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusInstanceStatusSummary.prototype, "_suspended", { + get: $util.oneOfGetter($oneOfFields = ["suspended"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusInstanceStatusSummary.prototype, "_suspending", { + get: $util.oneOfGetter($oneOfFields = ["suspending"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusInstanceStatusSummary.prototype, "_terminated", { + get: $util.oneOfGetter($oneOfFields = ["terminated"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstanceGroupManagerStatusInstanceStatusSummary instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerStatusInstanceStatusSummary=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary} InstanceGroupManagerStatusInstanceStatusSummary instance + */ + InstanceGroupManagerStatusInstanceStatusSummary.create = function create(properties) { + return new InstanceGroupManagerStatusInstanceStatusSummary(properties); + }; + + /** + * Encodes the specified InstanceGroupManagerStatusInstanceStatusSummary message. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerStatusInstanceStatusSummary} message InstanceGroupManagerStatusInstanceStatusSummary message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagerStatusInstanceStatusSummary.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.suspending != null && Object.hasOwnProperty.call(message, "suspending")) + writer.uint32(/* id 29113894, wireType 0 =*/232911152).int32(message.suspending); + if (message.stopping != null && Object.hasOwnProperty.call(message, "stopping")) + writer.uint32(/* id 105035892, wireType 0 =*/840287136).int32(message.stopping); + if (message.provisioning != null && Object.hasOwnProperty.call(message, "provisioning")) + writer.uint32(/* id 121098989, wireType 0 =*/968791912).int32(message.provisioning); + if (message.pendingStop != null && Object.hasOwnProperty.call(message, "pendingStop")) + writer.uint32(/* id 163159466, wireType 0 =*/1305275728).int32(message.pendingStop); + if (message.staging != null && Object.hasOwnProperty.call(message, "staging")) + writer.uint32(/* id 249960507, wireType 0 =*/1999684056).int32(message.staging); + if (message.stopped != null && Object.hasOwnProperty.call(message, "stopped")) + writer.uint32(/* id 263164365, wireType 0 =*/2105314920).int32(message.stopped); + if (message.terminated != null && Object.hasOwnProperty.call(message, "terminated")) + writer.uint32(/* id 301796899, wireType 0 =*/2414375192).int32(message.terminated); + if (message.repairing != null && Object.hasOwnProperty.call(message, "repairing")) + writer.uint32(/* id 311243061, wireType 0 =*/2489944488).int32(message.repairing); + if (message.pending != null && Object.hasOwnProperty.call(message, "pending")) + writer.uint32(/* id 391154071, wireType 0 =*/3129232568).int32(message.pending); + if (message.deprovisioning != null && Object.hasOwnProperty.call(message, "deprovisioning")) + writer.uint32(/* id 462169582, wireType 0 =*/3697356656).int32(message.deprovisioning); + if (message.nonExistent != null && Object.hasOwnProperty.call(message, "nonExistent")) + writer.uint32(/* id 468485062, wireType 0 =*/3747880496).int32(message.nonExistent); + if (message.running != null && Object.hasOwnProperty.call(message, "running")) + writer.uint32(/* id 477042111, wireType 0 =*/3816336888).int32(message.running); + if (message.suspended != null && Object.hasOwnProperty.call(message, "suspended")) + writer.uint32(/* id 485854683, wireType 0 =*/3886837464).int32(message.suspended); + return writer; + }; + + /** + * Encodes the specified InstanceGroupManagerStatusInstanceStatusSummary message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerStatusInstanceStatusSummary} message InstanceGroupManagerStatusInstanceStatusSummary message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagerStatusInstanceStatusSummary.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstanceGroupManagerStatusInstanceStatusSummary message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary} InstanceGroupManagerStatusInstanceStatusSummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagerStatusInstanceStatusSummary.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.v1.InstanceGroupManagerStatusInstanceStatusSummary(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 462169582: { + message.deprovisioning = reader.int32(); + break; + } + case 468485062: { + message.nonExistent = reader.int32(); + break; + } + case 391154071: { + message.pending = reader.int32(); + break; + } + case 163159466: { + message.pendingStop = reader.int32(); + break; + } + case 121098989: { + message.provisioning = reader.int32(); + break; + } + case 311243061: { + message.repairing = reader.int32(); + break; + } + case 477042111: { + message.running = reader.int32(); + break; + } + case 249960507: { + message.staging = reader.int32(); + break; + } + case 263164365: { + message.stopped = reader.int32(); + break; + } + case 105035892: { + message.stopping = reader.int32(); + break; + } + case 485854683: { + message.suspended = reader.int32(); + break; + } + case 29113894: { + message.suspending = reader.int32(); + break; + } + case 301796899: { + message.terminated = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstanceGroupManagerStatusInstanceStatusSummary message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary} InstanceGroupManagerStatusInstanceStatusSummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagerStatusInstanceStatusSummary.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstanceGroupManagerStatusInstanceStatusSummary message. + * @function verify + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstanceGroupManagerStatusInstanceStatusSummary.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.deprovisioning != null && message.hasOwnProperty("deprovisioning")) { + properties._deprovisioning = 1; + if (!$util.isInteger(message.deprovisioning)) + return "deprovisioning: integer expected"; + } + if (message.nonExistent != null && message.hasOwnProperty("nonExistent")) { + properties._nonExistent = 1; + if (!$util.isInteger(message.nonExistent)) + return "nonExistent: integer expected"; + } + if (message.pending != null && message.hasOwnProperty("pending")) { + properties._pending = 1; + if (!$util.isInteger(message.pending)) + return "pending: integer expected"; + } + if (message.pendingStop != null && message.hasOwnProperty("pendingStop")) { + properties._pendingStop = 1; + if (!$util.isInteger(message.pendingStop)) + return "pendingStop: integer expected"; + } + if (message.provisioning != null && message.hasOwnProperty("provisioning")) { + properties._provisioning = 1; + if (!$util.isInteger(message.provisioning)) + return "provisioning: integer expected"; + } + if (message.repairing != null && message.hasOwnProperty("repairing")) { + properties._repairing = 1; + if (!$util.isInteger(message.repairing)) + return "repairing: integer expected"; + } + if (message.running != null && message.hasOwnProperty("running")) { + properties._running = 1; + if (!$util.isInteger(message.running)) + return "running: integer expected"; + } + if (message.staging != null && message.hasOwnProperty("staging")) { + properties._staging = 1; + if (!$util.isInteger(message.staging)) + return "staging: integer expected"; + } + if (message.stopped != null && message.hasOwnProperty("stopped")) { + properties._stopped = 1; + if (!$util.isInteger(message.stopped)) + return "stopped: integer expected"; + } + if (message.stopping != null && message.hasOwnProperty("stopping")) { + properties._stopping = 1; + if (!$util.isInteger(message.stopping)) + return "stopping: integer expected"; + } + if (message.suspended != null && message.hasOwnProperty("suspended")) { + properties._suspended = 1; + if (!$util.isInteger(message.suspended)) + return "suspended: integer expected"; + } + if (message.suspending != null && message.hasOwnProperty("suspending")) { + properties._suspending = 1; + if (!$util.isInteger(message.suspending)) + return "suspending: integer expected"; + } + if (message.terminated != null && message.hasOwnProperty("terminated")) { + properties._terminated = 1; + if (!$util.isInteger(message.terminated)) + return "terminated: integer expected"; + } + return null; + }; + + /** + * Creates an InstanceGroupManagerStatusInstanceStatusSummary message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary} InstanceGroupManagerStatusInstanceStatusSummary + */ + InstanceGroupManagerStatusInstanceStatusSummary.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary) + return object; + var message = new $root.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary(); + if (object.deprovisioning != null) + message.deprovisioning = object.deprovisioning | 0; + if (object.nonExistent != null) + message.nonExistent = object.nonExistent | 0; + if (object.pending != null) + message.pending = object.pending | 0; + if (object.pendingStop != null) + message.pendingStop = object.pendingStop | 0; + if (object.provisioning != null) + message.provisioning = object.provisioning | 0; + if (object.repairing != null) + message.repairing = object.repairing | 0; + if (object.running != null) + message.running = object.running | 0; + if (object.staging != null) + message.staging = object.staging | 0; + if (object.stopped != null) + message.stopped = object.stopped | 0; + if (object.stopping != null) + message.stopping = object.stopping | 0; + if (object.suspended != null) + message.suspended = object.suspended | 0; + if (object.suspending != null) + message.suspending = object.suspending | 0; + if (object.terminated != null) + message.terminated = object.terminated | 0; + return message; + }; + + /** + * Creates a plain object from an InstanceGroupManagerStatusInstanceStatusSummary message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + * @static + * @param {google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary} message InstanceGroupManagerStatusInstanceStatusSummary + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstanceGroupManagerStatusInstanceStatusSummary.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.suspending != null && message.hasOwnProperty("suspending")) { + object.suspending = message.suspending; + if (options.oneofs) + object._suspending = "suspending"; + } + if (message.stopping != null && message.hasOwnProperty("stopping")) { + object.stopping = message.stopping; + if (options.oneofs) + object._stopping = "stopping"; + } + if (message.provisioning != null && message.hasOwnProperty("provisioning")) { + object.provisioning = message.provisioning; + if (options.oneofs) + object._provisioning = "provisioning"; + } + if (message.pendingStop != null && message.hasOwnProperty("pendingStop")) { + object.pendingStop = message.pendingStop; + if (options.oneofs) + object._pendingStop = "pendingStop"; + } + if (message.staging != null && message.hasOwnProperty("staging")) { + object.staging = message.staging; + if (options.oneofs) + object._staging = "staging"; + } + if (message.stopped != null && message.hasOwnProperty("stopped")) { + object.stopped = message.stopped; + if (options.oneofs) + object._stopped = "stopped"; + } + if (message.terminated != null && message.hasOwnProperty("terminated")) { + object.terminated = message.terminated; + if (options.oneofs) + object._terminated = "terminated"; + } + if (message.repairing != null && message.hasOwnProperty("repairing")) { + object.repairing = message.repairing; + if (options.oneofs) + object._repairing = "repairing"; + } + if (message.pending != null && message.hasOwnProperty("pending")) { + object.pending = message.pending; + if (options.oneofs) + object._pending = "pending"; + } + if (message.deprovisioning != null && message.hasOwnProperty("deprovisioning")) { + object.deprovisioning = message.deprovisioning; + if (options.oneofs) + object._deprovisioning = "deprovisioning"; + } + if (message.nonExistent != null && message.hasOwnProperty("nonExistent")) { + object.nonExistent = message.nonExistent; + if (options.oneofs) + object._nonExistent = "nonExistent"; + } + if (message.running != null && message.hasOwnProperty("running")) { + object.running = message.running; + if (options.oneofs) + object._running = "running"; + } + if (message.suspended != null && message.hasOwnProperty("suspended")) { + object.suspended = message.suspended; + if (options.oneofs) + object._suspended = "suspended"; + } + return object; + }; + + /** + * Converts this InstanceGroupManagerStatusInstanceStatusSummary to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + * @instance + * @returns {Object.} JSON object + */ + InstanceGroupManagerStatusInstanceStatusSummary.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstanceGroupManagerStatusInstanceStatusSummary + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstanceGroupManagerStatusInstanceStatusSummary.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary"; + }; + + return InstanceGroupManagerStatusInstanceStatusSummary; + })(); + v1.InstanceGroupManagerStatusStateful = (function() { /** @@ -271159,6 +283300,8 @@ * @property {string|null} [selfLinkWithId] InstantSnapshot selfLinkWithId * @property {string|null} [sourceDisk] InstantSnapshot sourceDisk * @property {string|null} [sourceDiskId] InstantSnapshot sourceDiskId + * @property {string|null} [sourceInstantSnapshotGroup] InstantSnapshot sourceInstantSnapshotGroup + * @property {string|null} [sourceInstantSnapshotGroupId] InstantSnapshot sourceInstantSnapshotGroupId * @property {string|null} [status] InstantSnapshot status * @property {string|null} [zone] InstantSnapshot zone */ @@ -271323,6 +283466,22 @@ */ InstantSnapshot.prototype.sourceDiskId = null; + /** + * InstantSnapshot sourceInstantSnapshotGroup. + * @member {string|null|undefined} sourceInstantSnapshotGroup + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + InstantSnapshot.prototype.sourceInstantSnapshotGroup = null; + + /** + * InstantSnapshot sourceInstantSnapshotGroupId. + * @member {string|null|undefined} sourceInstantSnapshotGroupId + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + InstantSnapshot.prototype.sourceInstantSnapshotGroupId = null; + /** * InstantSnapshot status. * @member {string|null|undefined} status @@ -271444,6 +283603,18 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshot.prototype, "_sourceInstantSnapshotGroup", { + get: $util.oneOfGetter($oneOfFields = ["sourceInstantSnapshotGroup"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshot.prototype, "_sourceInstantSnapshotGroupId", { + get: $util.oneOfGetter($oneOfFields = ["sourceInstantSnapshotGroupId"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(InstantSnapshot.prototype, "_status", { get: $util.oneOfGetter($oneOfFields = ["status"]), @@ -271496,6 +283667,8 @@ $root.google.cloud.compute.v1.InstantSnapshotParams.encode(message.params, writer.uint32(/* id 78313862, wireType 2 =*/626510898).fork()).ldelim(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.sourceInstantSnapshotGroupId != null && Object.hasOwnProperty.call(message, "sourceInstantSnapshotGroupId")) + writer.uint32(/* id 167103732, wireType 2 =*/1336829858).string(message.sourceInstantSnapshotGroupId); if (message.labelFingerprint != null && Object.hasOwnProperty.call(message, "labelFingerprint")) writer.uint32(/* id 178124825, wireType 2 =*/1424998602).string(message.labelFingerprint); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -271521,6 +283694,8 @@ if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) writer.uint32(/* id 500195327, wireType 2 =*/4001562618).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.sourceInstantSnapshotGroup != null && Object.hasOwnProperty.call(message, "sourceInstantSnapshotGroup")) + writer.uint32(/* id 525991686, wireType 2 =*/4207933490).string(message.sourceInstantSnapshotGroup); return writer; }; @@ -271648,6 +283823,14 @@ message.sourceDiskId = reader.string(); break; } + case 525991686: { + message.sourceInstantSnapshotGroup = reader.string(); + break; + } + case 167103732: { + message.sourceInstantSnapshotGroupId = reader.string(); + break; + } case 181260274: { message.status = reader.string(); break; @@ -271791,6 +283974,16 @@ if (!$util.isString(message.sourceDiskId)) return "sourceDiskId: string expected"; } + if (message.sourceInstantSnapshotGroup != null && message.hasOwnProperty("sourceInstantSnapshotGroup")) { + properties._sourceInstantSnapshotGroup = 1; + if (!$util.isString(message.sourceInstantSnapshotGroup)) + return "sourceInstantSnapshotGroup: string expected"; + } + if (message.sourceInstantSnapshotGroupId != null && message.hasOwnProperty("sourceInstantSnapshotGroupId")) { + properties._sourceInstantSnapshotGroupId = 1; + if (!$util.isString(message.sourceInstantSnapshotGroupId)) + return "sourceInstantSnapshotGroupId: string expected"; + } if (message.status != null && message.hasOwnProperty("status")) { properties._status = 1; if (!$util.isString(message.status)) @@ -271877,6 +284070,10 @@ message.sourceDisk = String(object.sourceDisk); if (object.sourceDiskId != null) message.sourceDiskId = String(object.sourceDiskId); + if (object.sourceInstantSnapshotGroup != null) + message.sourceInstantSnapshotGroup = String(object.sourceInstantSnapshotGroup); + if (object.sourceInstantSnapshotGroupId != null) + message.sourceInstantSnapshotGroupId = String(object.sourceInstantSnapshotGroupId); if (object.status != null) message.status = String(object.status); if (object.zone != null) @@ -271942,6 +284139,11 @@ if (options.oneofs) object._region = "region"; } + if (message.sourceInstantSnapshotGroupId != null && message.hasOwnProperty("sourceInstantSnapshotGroupId")) { + object.sourceInstantSnapshotGroupId = message.sourceInstantSnapshotGroupId; + if (options.oneofs) + object._sourceInstantSnapshotGroupId = "sourceInstantSnapshotGroupId"; + } if (message.labelFingerprint != null && message.hasOwnProperty("labelFingerprint")) { object.labelFingerprint = message.labelFingerprint; if (options.oneofs) @@ -272006,6 +284208,11 @@ for (var j = 0; j < keys2.length; ++j) object.labels[keys2[j]] = message.labels[keys2[j]]; } + if (message.sourceInstantSnapshotGroup != null && message.hasOwnProperty("sourceInstantSnapshotGroup")) { + object.sourceInstantSnapshotGroup = message.sourceInstantSnapshotGroup; + if (options.oneofs) + object._sourceInstantSnapshotGroup = "sourceInstantSnapshotGroup"; + } return object; }; @@ -272540,6 +284747,1353 @@ return InstantSnapshotAggregatedList; })(); + v1.InstantSnapshotGroup = (function() { + + /** + * Properties of an InstantSnapshotGroup. + * @memberof google.cloud.compute.v1 + * @interface IInstantSnapshotGroup + * @property {string|null} [creationTimestamp] InstantSnapshotGroup creationTimestamp + * @property {string|null} [description] InstantSnapshotGroup description + * @property {number|Long|null} [id] InstantSnapshotGroup id + * @property {string|null} [kind] InstantSnapshotGroup kind + * @property {string|null} [name] InstantSnapshotGroup name + * @property {string|null} [region] InstantSnapshotGroup region + * @property {google.cloud.compute.v1.IInstantSnapshotGroupResourceStatus|null} [resourceStatus] InstantSnapshotGroup resourceStatus + * @property {string|null} [selfLink] InstantSnapshotGroup selfLink + * @property {string|null} [selfLinkWithId] InstantSnapshotGroup selfLinkWithId + * @property {string|null} [sourceConsistencyGroup] InstantSnapshotGroup sourceConsistencyGroup + * @property {string|null} [status] InstantSnapshotGroup status + * @property {string|null} [zone] InstantSnapshotGroup zone + */ + + /** + * Constructs a new InstantSnapshotGroup. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InstantSnapshotGroup. + * @implements IInstantSnapshotGroup + * @constructor + * @param {google.cloud.compute.v1.IInstantSnapshotGroup=} [properties] Properties to set + */ + function InstantSnapshotGroup(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]]; + } + + /** + * InstantSnapshotGroup creationTimestamp. + * @member {string|null|undefined} creationTimestamp + * @memberof google.cloud.compute.v1.InstantSnapshotGroup + * @instance + */ + InstantSnapshotGroup.prototype.creationTimestamp = null; + + /** + * InstantSnapshotGroup description. + * @member {string|null|undefined} description + * @memberof google.cloud.compute.v1.InstantSnapshotGroup + * @instance + */ + InstantSnapshotGroup.prototype.description = null; + + /** + * InstantSnapshotGroup id. + * @member {number|Long|null|undefined} id + * @memberof google.cloud.compute.v1.InstantSnapshotGroup + * @instance + */ + InstantSnapshotGroup.prototype.id = null; + + /** + * InstantSnapshotGroup kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.InstantSnapshotGroup + * @instance + */ + InstantSnapshotGroup.prototype.kind = null; + + /** + * InstantSnapshotGroup name. + * @member {string|null|undefined} name + * @memberof google.cloud.compute.v1.InstantSnapshotGroup + * @instance + */ + InstantSnapshotGroup.prototype.name = null; + + /** + * InstantSnapshotGroup region. + * @member {string|null|undefined} region + * @memberof google.cloud.compute.v1.InstantSnapshotGroup + * @instance + */ + InstantSnapshotGroup.prototype.region = null; + + /** + * InstantSnapshotGroup resourceStatus. + * @member {google.cloud.compute.v1.IInstantSnapshotGroupResourceStatus|null|undefined} resourceStatus + * @memberof google.cloud.compute.v1.InstantSnapshotGroup + * @instance + */ + InstantSnapshotGroup.prototype.resourceStatus = null; + + /** + * InstantSnapshotGroup selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.InstantSnapshotGroup + * @instance + */ + InstantSnapshotGroup.prototype.selfLink = null; + + /** + * InstantSnapshotGroup selfLinkWithId. + * @member {string|null|undefined} selfLinkWithId + * @memberof google.cloud.compute.v1.InstantSnapshotGroup + * @instance + */ + InstantSnapshotGroup.prototype.selfLinkWithId = null; + + /** + * InstantSnapshotGroup sourceConsistencyGroup. + * @member {string|null|undefined} sourceConsistencyGroup + * @memberof google.cloud.compute.v1.InstantSnapshotGroup + * @instance + */ + InstantSnapshotGroup.prototype.sourceConsistencyGroup = null; + + /** + * InstantSnapshotGroup status. + * @member {string|null|undefined} status + * @memberof google.cloud.compute.v1.InstantSnapshotGroup + * @instance + */ + InstantSnapshotGroup.prototype.status = null; + + /** + * InstantSnapshotGroup zone. + * @member {string|null|undefined} zone + * @memberof google.cloud.compute.v1.InstantSnapshotGroup + * @instance + */ + InstantSnapshotGroup.prototype.zone = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroup.prototype, "_creationTimestamp", { + get: $util.oneOfGetter($oneOfFields = ["creationTimestamp"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroup.prototype, "_description", { + get: $util.oneOfGetter($oneOfFields = ["description"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroup.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroup.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroup.prototype, "_name", { + get: $util.oneOfGetter($oneOfFields = ["name"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroup.prototype, "_region", { + get: $util.oneOfGetter($oneOfFields = ["region"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroup.prototype, "_resourceStatus", { + get: $util.oneOfGetter($oneOfFields = ["resourceStatus"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroup.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroup.prototype, "_selfLinkWithId", { + get: $util.oneOfGetter($oneOfFields = ["selfLinkWithId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroup.prototype, "_sourceConsistencyGroup", { + get: $util.oneOfGetter($oneOfFields = ["sourceConsistencyGroup"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroup.prototype, "_status", { + get: $util.oneOfGetter($oneOfFields = ["status"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroup.prototype, "_zone", { + get: $util.oneOfGetter($oneOfFields = ["zone"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstantSnapshotGroup instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InstantSnapshotGroup + * @static + * @param {google.cloud.compute.v1.IInstantSnapshotGroup=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InstantSnapshotGroup} InstantSnapshotGroup instance + */ + InstantSnapshotGroup.create = function create(properties) { + return new InstantSnapshotGroup(properties); + }; + + /** + * Encodes the specified InstantSnapshotGroup message. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotGroup.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InstantSnapshotGroup + * @static + * @param {google.cloud.compute.v1.IInstantSnapshotGroup} message InstantSnapshotGroup message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstantSnapshotGroup.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.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + 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.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 181260274, wireType 2 =*/1450082194).string(message.status); + if (message.resourceStatus != null && Object.hasOwnProperty.call(message, "resourceStatus")) + $root.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus.encode(message.resourceStatus, writer.uint32(/* id 249429315, wireType 2 =*/1995434522).fork()).ldelim(); + 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); + if (message.sourceConsistencyGroup != null && Object.hasOwnProperty.call(message, "sourceConsistencyGroup")) + writer.uint32(/* id 531359348, wireType 2 =*/4250874786).string(message.sourceConsistencyGroup); + return writer; + }; + + /** + * Encodes the specified InstantSnapshotGroup message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotGroup.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InstantSnapshotGroup + * @static + * @param {google.cloud.compute.v1.IInstantSnapshotGroup} message InstantSnapshotGroup message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstantSnapshotGroup.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstantSnapshotGroup message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InstantSnapshotGroup + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.InstantSnapshotGroup} InstantSnapshotGroup + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstantSnapshotGroup.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.v1.InstantSnapshotGroup(); + 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 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 249429315: { + message.resourceStatus = $root.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus.decode(reader, reader.uint32()); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 44520962: { + message.selfLinkWithId = reader.string(); + break; + } + case 531359348: { + message.sourceConsistencyGroup = reader.string(); + break; + } + case 181260274: { + message.status = reader.string(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstantSnapshotGroup message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InstantSnapshotGroup + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InstantSnapshotGroup} InstantSnapshotGroup + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstantSnapshotGroup.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstantSnapshotGroup message. + * @function verify + * @memberof google.cloud.compute.v1.InstantSnapshotGroup + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstantSnapshotGroup.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.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.resourceStatus != null && message.hasOwnProperty("resourceStatus")) { + properties._resourceStatus = 1; + { + var error = $root.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus.verify(message.resourceStatus); + if (error) + return "resourceStatus." + error; + } + } + 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.sourceConsistencyGroup != null && message.hasOwnProperty("sourceConsistencyGroup")) { + properties._sourceConsistencyGroup = 1; + if (!$util.isString(message.sourceConsistencyGroup)) + return "sourceConsistencyGroup: string expected"; + } + if (message.status != null && message.hasOwnProperty("status")) { + properties._status = 1; + if (!$util.isString(message.status)) + return "status: string expected"; + } + if (message.zone != null && message.hasOwnProperty("zone")) { + properties._zone = 1; + if (!$util.isString(message.zone)) + return "zone: string expected"; + } + return null; + }; + + /** + * Creates an InstantSnapshotGroup message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InstantSnapshotGroup + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InstantSnapshotGroup} InstantSnapshotGroup + */ + InstantSnapshotGroup.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InstantSnapshotGroup) + return object; + var message = new $root.google.cloud.compute.v1.InstantSnapshotGroup(); + if (object.creationTimestamp != null) + message.creationTimestamp = String(object.creationTimestamp); + if (object.description != null) + message.description = String(object.description); + 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.resourceStatus != null) { + if (typeof object.resourceStatus !== "object") + throw TypeError(".google.cloud.compute.v1.InstantSnapshotGroup.resourceStatus: object expected"); + message.resourceStatus = $root.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus.fromObject(object.resourceStatus); + } + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.selfLinkWithId != null) + message.selfLinkWithId = String(object.selfLinkWithId); + if (object.sourceConsistencyGroup != null) + message.sourceConsistencyGroup = String(object.sourceConsistencyGroup); + if (object.status != null) + message.status = String(object.status); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from an InstantSnapshotGroup message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InstantSnapshotGroup + * @static + * @param {google.cloud.compute.v1.InstantSnapshotGroup} message InstantSnapshotGroup + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstantSnapshotGroup.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + 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.zone != null && message.hasOwnProperty("zone")) { + object.zone = message.zone; + if (options.oneofs) + object._zone = "zone"; + } + 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.status != null && message.hasOwnProperty("status")) { + object.status = message.status; + if (options.oneofs) + object._status = "status"; + } + if (message.resourceStatus != null && message.hasOwnProperty("resourceStatus")) { + object.resourceStatus = $root.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus.toObject(message.resourceStatus, options); + if (options.oneofs) + object._resourceStatus = "resourceStatus"; + } + 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"; + } + if (message.sourceConsistencyGroup != null && message.hasOwnProperty("sourceConsistencyGroup")) { + object.sourceConsistencyGroup = message.sourceConsistencyGroup; + if (options.oneofs) + object._sourceConsistencyGroup = "sourceConsistencyGroup"; + } + return object; + }; + + /** + * Converts this InstantSnapshotGroup to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InstantSnapshotGroup + * @instance + * @returns {Object.} JSON object + */ + InstantSnapshotGroup.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstantSnapshotGroup + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InstantSnapshotGroup + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstantSnapshotGroup.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InstantSnapshotGroup"; + }; + + /** + * Status enum. + * @name google.cloud.compute.v1.InstantSnapshotGroup.Status + * @enum {number} + * @property {number} UNDEFINED_STATUS=0 UNDEFINED_STATUS value + * @property {number} CREATING=455564985 CREATING value + * @property {number} DELETING=528602024 DELETING value + * @property {number} FAILED=455706685 FAILED value + * @property {number} INVALID=530283991 INVALID value + * @property {number} READY=77848963 READY value + * @property {number} UNKNOWN=433141802 UNKNOWN value + */ + InstantSnapshotGroup.Status = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_STATUS"] = 0; + values[valuesById[455564985] = "CREATING"] = 455564985; + values[valuesById[528602024] = "DELETING"] = 528602024; + values[valuesById[455706685] = "FAILED"] = 455706685; + values[valuesById[530283991] = "INVALID"] = 530283991; + values[valuesById[77848963] = "READY"] = 77848963; + values[valuesById[433141802] = "UNKNOWN"] = 433141802; + return values; + })(); + + return InstantSnapshotGroup; + })(); + + v1.InstantSnapshotGroupParameters = (function() { + + /** + * Properties of an InstantSnapshotGroupParameters. + * @memberof google.cloud.compute.v1 + * @interface IInstantSnapshotGroupParameters + * @property {string|null} [sourceInstantSnapshotGroup] InstantSnapshotGroupParameters sourceInstantSnapshotGroup + */ + + /** + * Constructs a new InstantSnapshotGroupParameters. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InstantSnapshotGroupParameters. + * @implements IInstantSnapshotGroupParameters + * @constructor + * @param {google.cloud.compute.v1.IInstantSnapshotGroupParameters=} [properties] Properties to set + */ + function InstantSnapshotGroupParameters(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]]; + } + + /** + * InstantSnapshotGroupParameters sourceInstantSnapshotGroup. + * @member {string|null|undefined} sourceInstantSnapshotGroup + * @memberof google.cloud.compute.v1.InstantSnapshotGroupParameters + * @instance + */ + InstantSnapshotGroupParameters.prototype.sourceInstantSnapshotGroup = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroupParameters.prototype, "_sourceInstantSnapshotGroup", { + get: $util.oneOfGetter($oneOfFields = ["sourceInstantSnapshotGroup"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstantSnapshotGroupParameters instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InstantSnapshotGroupParameters + * @static + * @param {google.cloud.compute.v1.IInstantSnapshotGroupParameters=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InstantSnapshotGroupParameters} InstantSnapshotGroupParameters instance + */ + InstantSnapshotGroupParameters.create = function create(properties) { + return new InstantSnapshotGroupParameters(properties); + }; + + /** + * Encodes the specified InstantSnapshotGroupParameters message. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotGroupParameters.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InstantSnapshotGroupParameters + * @static + * @param {google.cloud.compute.v1.IInstantSnapshotGroupParameters} message InstantSnapshotGroupParameters message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstantSnapshotGroupParameters.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sourceInstantSnapshotGroup != null && Object.hasOwnProperty.call(message, "sourceInstantSnapshotGroup")) + writer.uint32(/* id 525991686, wireType 2 =*/4207933490).string(message.sourceInstantSnapshotGroup); + return writer; + }; + + /** + * Encodes the specified InstantSnapshotGroupParameters message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotGroupParameters.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InstantSnapshotGroupParameters + * @static + * @param {google.cloud.compute.v1.IInstantSnapshotGroupParameters} message InstantSnapshotGroupParameters message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstantSnapshotGroupParameters.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstantSnapshotGroupParameters message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InstantSnapshotGroupParameters + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.InstantSnapshotGroupParameters} InstantSnapshotGroupParameters + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstantSnapshotGroupParameters.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.v1.InstantSnapshotGroupParameters(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 525991686: { + message.sourceInstantSnapshotGroup = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstantSnapshotGroupParameters message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InstantSnapshotGroupParameters + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InstantSnapshotGroupParameters} InstantSnapshotGroupParameters + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstantSnapshotGroupParameters.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstantSnapshotGroupParameters message. + * @function verify + * @memberof google.cloud.compute.v1.InstantSnapshotGroupParameters + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstantSnapshotGroupParameters.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.sourceInstantSnapshotGroup != null && message.hasOwnProperty("sourceInstantSnapshotGroup")) { + properties._sourceInstantSnapshotGroup = 1; + if (!$util.isString(message.sourceInstantSnapshotGroup)) + return "sourceInstantSnapshotGroup: string expected"; + } + return null; + }; + + /** + * Creates an InstantSnapshotGroupParameters message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InstantSnapshotGroupParameters + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InstantSnapshotGroupParameters} InstantSnapshotGroupParameters + */ + InstantSnapshotGroupParameters.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InstantSnapshotGroupParameters) + return object; + var message = new $root.google.cloud.compute.v1.InstantSnapshotGroupParameters(); + if (object.sourceInstantSnapshotGroup != null) + message.sourceInstantSnapshotGroup = String(object.sourceInstantSnapshotGroup); + return message; + }; + + /** + * Creates a plain object from an InstantSnapshotGroupParameters message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InstantSnapshotGroupParameters + * @static + * @param {google.cloud.compute.v1.InstantSnapshotGroupParameters} message InstantSnapshotGroupParameters + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstantSnapshotGroupParameters.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.sourceInstantSnapshotGroup != null && message.hasOwnProperty("sourceInstantSnapshotGroup")) { + object.sourceInstantSnapshotGroup = message.sourceInstantSnapshotGroup; + if (options.oneofs) + object._sourceInstantSnapshotGroup = "sourceInstantSnapshotGroup"; + } + return object; + }; + + /** + * Converts this InstantSnapshotGroupParameters to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InstantSnapshotGroupParameters + * @instance + * @returns {Object.} JSON object + */ + InstantSnapshotGroupParameters.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstantSnapshotGroupParameters + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InstantSnapshotGroupParameters + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstantSnapshotGroupParameters.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InstantSnapshotGroupParameters"; + }; + + return InstantSnapshotGroupParameters; + })(); + + v1.InstantSnapshotGroupResourceStatus = (function() { + + /** + * Properties of an InstantSnapshotGroupResourceStatus. + * @memberof google.cloud.compute.v1 + * @interface IInstantSnapshotGroupResourceStatus + * @property {string|null} [consistencyMembershipResolutionTime] InstantSnapshotGroupResourceStatus consistencyMembershipResolutionTime + * @property {google.cloud.compute.v1.IInstantSnapshotGroupSourceInfo|null} [sourceInfo] InstantSnapshotGroupResourceStatus sourceInfo + */ + + /** + * Constructs a new InstantSnapshotGroupResourceStatus. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InstantSnapshotGroupResourceStatus. + * @implements IInstantSnapshotGroupResourceStatus + * @constructor + * @param {google.cloud.compute.v1.IInstantSnapshotGroupResourceStatus=} [properties] Properties to set + */ + function InstantSnapshotGroupResourceStatus(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]]; + } + + /** + * InstantSnapshotGroupResourceStatus consistencyMembershipResolutionTime. + * @member {string|null|undefined} consistencyMembershipResolutionTime + * @memberof google.cloud.compute.v1.InstantSnapshotGroupResourceStatus + * @instance + */ + InstantSnapshotGroupResourceStatus.prototype.consistencyMembershipResolutionTime = null; + + /** + * InstantSnapshotGroupResourceStatus sourceInfo. + * @member {google.cloud.compute.v1.IInstantSnapshotGroupSourceInfo|null|undefined} sourceInfo + * @memberof google.cloud.compute.v1.InstantSnapshotGroupResourceStatus + * @instance + */ + InstantSnapshotGroupResourceStatus.prototype.sourceInfo = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroupResourceStatus.prototype, "_consistencyMembershipResolutionTime", { + get: $util.oneOfGetter($oneOfFields = ["consistencyMembershipResolutionTime"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroupResourceStatus.prototype, "_sourceInfo", { + get: $util.oneOfGetter($oneOfFields = ["sourceInfo"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstantSnapshotGroupResourceStatus instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InstantSnapshotGroupResourceStatus + * @static + * @param {google.cloud.compute.v1.IInstantSnapshotGroupResourceStatus=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InstantSnapshotGroupResourceStatus} InstantSnapshotGroupResourceStatus instance + */ + InstantSnapshotGroupResourceStatus.create = function create(properties) { + return new InstantSnapshotGroupResourceStatus(properties); + }; + + /** + * Encodes the specified InstantSnapshotGroupResourceStatus message. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotGroupResourceStatus.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InstantSnapshotGroupResourceStatus + * @static + * @param {google.cloud.compute.v1.IInstantSnapshotGroupResourceStatus} message InstantSnapshotGroupResourceStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstantSnapshotGroupResourceStatus.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.consistencyMembershipResolutionTime != null && Object.hasOwnProperty.call(message, "consistencyMembershipResolutionTime")) + writer.uint32(/* id 346675870, wireType 2 =*/2773406962).string(message.consistencyMembershipResolutionTime); + if (message.sourceInfo != null && Object.hasOwnProperty.call(message, "sourceInfo")) + $root.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo.encode(message.sourceInfo, writer.uint32(/* id 451907154, wireType 2 =*/3615257234).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified InstantSnapshotGroupResourceStatus message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotGroupResourceStatus.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InstantSnapshotGroupResourceStatus + * @static + * @param {google.cloud.compute.v1.IInstantSnapshotGroupResourceStatus} message InstantSnapshotGroupResourceStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstantSnapshotGroupResourceStatus.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstantSnapshotGroupResourceStatus message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InstantSnapshotGroupResourceStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.InstantSnapshotGroupResourceStatus} InstantSnapshotGroupResourceStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstantSnapshotGroupResourceStatus.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.v1.InstantSnapshotGroupResourceStatus(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 346675870: { + message.consistencyMembershipResolutionTime = reader.string(); + break; + } + case 451907154: { + message.sourceInfo = $root.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstantSnapshotGroupResourceStatus message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InstantSnapshotGroupResourceStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InstantSnapshotGroupResourceStatus} InstantSnapshotGroupResourceStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstantSnapshotGroupResourceStatus.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstantSnapshotGroupResourceStatus message. + * @function verify + * @memberof google.cloud.compute.v1.InstantSnapshotGroupResourceStatus + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstantSnapshotGroupResourceStatus.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.consistencyMembershipResolutionTime != null && message.hasOwnProperty("consistencyMembershipResolutionTime")) { + properties._consistencyMembershipResolutionTime = 1; + if (!$util.isString(message.consistencyMembershipResolutionTime)) + return "consistencyMembershipResolutionTime: string expected"; + } + if (message.sourceInfo != null && message.hasOwnProperty("sourceInfo")) { + properties._sourceInfo = 1; + { + var error = $root.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo.verify(message.sourceInfo); + if (error) + return "sourceInfo." + error; + } + } + return null; + }; + + /** + * Creates an InstantSnapshotGroupResourceStatus message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InstantSnapshotGroupResourceStatus + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InstantSnapshotGroupResourceStatus} InstantSnapshotGroupResourceStatus + */ + InstantSnapshotGroupResourceStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus) + return object; + var message = new $root.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus(); + if (object.consistencyMembershipResolutionTime != null) + message.consistencyMembershipResolutionTime = String(object.consistencyMembershipResolutionTime); + if (object.sourceInfo != null) { + if (typeof object.sourceInfo !== "object") + throw TypeError(".google.cloud.compute.v1.InstantSnapshotGroupResourceStatus.sourceInfo: object expected"); + message.sourceInfo = $root.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo.fromObject(object.sourceInfo); + } + return message; + }; + + /** + * Creates a plain object from an InstantSnapshotGroupResourceStatus message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InstantSnapshotGroupResourceStatus + * @static + * @param {google.cloud.compute.v1.InstantSnapshotGroupResourceStatus} message InstantSnapshotGroupResourceStatus + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstantSnapshotGroupResourceStatus.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.consistencyMembershipResolutionTime != null && message.hasOwnProperty("consistencyMembershipResolutionTime")) { + object.consistencyMembershipResolutionTime = message.consistencyMembershipResolutionTime; + if (options.oneofs) + object._consistencyMembershipResolutionTime = "consistencyMembershipResolutionTime"; + } + if (message.sourceInfo != null && message.hasOwnProperty("sourceInfo")) { + object.sourceInfo = $root.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo.toObject(message.sourceInfo, options); + if (options.oneofs) + object._sourceInfo = "sourceInfo"; + } + return object; + }; + + /** + * Converts this InstantSnapshotGroupResourceStatus to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InstantSnapshotGroupResourceStatus + * @instance + * @returns {Object.} JSON object + */ + InstantSnapshotGroupResourceStatus.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstantSnapshotGroupResourceStatus + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InstantSnapshotGroupResourceStatus + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstantSnapshotGroupResourceStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InstantSnapshotGroupResourceStatus"; + }; + + return InstantSnapshotGroupResourceStatus; + })(); + + v1.InstantSnapshotGroupSourceInfo = (function() { + + /** + * Properties of an InstantSnapshotGroupSourceInfo. + * @memberof google.cloud.compute.v1 + * @interface IInstantSnapshotGroupSourceInfo + * @property {string|null} [consistencyGroup] InstantSnapshotGroupSourceInfo consistencyGroup + * @property {string|null} [consistencyGroupId] InstantSnapshotGroupSourceInfo consistencyGroupId + */ + + /** + * Constructs a new InstantSnapshotGroupSourceInfo. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InstantSnapshotGroupSourceInfo. + * @implements IInstantSnapshotGroupSourceInfo + * @constructor + * @param {google.cloud.compute.v1.IInstantSnapshotGroupSourceInfo=} [properties] Properties to set + */ + function InstantSnapshotGroupSourceInfo(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]]; + } + + /** + * InstantSnapshotGroupSourceInfo consistencyGroup. + * @member {string|null|undefined} consistencyGroup + * @memberof google.cloud.compute.v1.InstantSnapshotGroupSourceInfo + * @instance + */ + InstantSnapshotGroupSourceInfo.prototype.consistencyGroup = null; + + /** + * InstantSnapshotGroupSourceInfo consistencyGroupId. + * @member {string|null|undefined} consistencyGroupId + * @memberof google.cloud.compute.v1.InstantSnapshotGroupSourceInfo + * @instance + */ + InstantSnapshotGroupSourceInfo.prototype.consistencyGroupId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroupSourceInfo.prototype, "_consistencyGroup", { + get: $util.oneOfGetter($oneOfFields = ["consistencyGroup"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshotGroupSourceInfo.prototype, "_consistencyGroupId", { + get: $util.oneOfGetter($oneOfFields = ["consistencyGroupId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstantSnapshotGroupSourceInfo instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InstantSnapshotGroupSourceInfo + * @static + * @param {google.cloud.compute.v1.IInstantSnapshotGroupSourceInfo=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InstantSnapshotGroupSourceInfo} InstantSnapshotGroupSourceInfo instance + */ + InstantSnapshotGroupSourceInfo.create = function create(properties) { + return new InstantSnapshotGroupSourceInfo(properties); + }; + + /** + * Encodes the specified InstantSnapshotGroupSourceInfo message. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotGroupSourceInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InstantSnapshotGroupSourceInfo + * @static + * @param {google.cloud.compute.v1.IInstantSnapshotGroupSourceInfo} message InstantSnapshotGroupSourceInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstantSnapshotGroupSourceInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.consistencyGroupId != null && Object.hasOwnProperty.call(message, "consistencyGroupId")) + writer.uint32(/* id 85599522, wireType 2 =*/684796178).string(message.consistencyGroupId); + if (message.consistencyGroup != null && Object.hasOwnProperty.call(message, "consistencyGroup")) + writer.uint32(/* id 508183960, wireType 2 =*/4065471682).string(message.consistencyGroup); + return writer; + }; + + /** + * Encodes the specified InstantSnapshotGroupSourceInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotGroupSourceInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InstantSnapshotGroupSourceInfo + * @static + * @param {google.cloud.compute.v1.IInstantSnapshotGroupSourceInfo} message InstantSnapshotGroupSourceInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstantSnapshotGroupSourceInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstantSnapshotGroupSourceInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InstantSnapshotGroupSourceInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.InstantSnapshotGroupSourceInfo} InstantSnapshotGroupSourceInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstantSnapshotGroupSourceInfo.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.v1.InstantSnapshotGroupSourceInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 508183960: { + message.consistencyGroup = reader.string(); + break; + } + case 85599522: { + message.consistencyGroupId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstantSnapshotGroupSourceInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InstantSnapshotGroupSourceInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InstantSnapshotGroupSourceInfo} InstantSnapshotGroupSourceInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstantSnapshotGroupSourceInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstantSnapshotGroupSourceInfo message. + * @function verify + * @memberof google.cloud.compute.v1.InstantSnapshotGroupSourceInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstantSnapshotGroupSourceInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.consistencyGroup != null && message.hasOwnProperty("consistencyGroup")) { + properties._consistencyGroup = 1; + if (!$util.isString(message.consistencyGroup)) + return "consistencyGroup: string expected"; + } + if (message.consistencyGroupId != null && message.hasOwnProperty("consistencyGroupId")) { + properties._consistencyGroupId = 1; + if (!$util.isString(message.consistencyGroupId)) + return "consistencyGroupId: string expected"; + } + return null; + }; + + /** + * Creates an InstantSnapshotGroupSourceInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InstantSnapshotGroupSourceInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InstantSnapshotGroupSourceInfo} InstantSnapshotGroupSourceInfo + */ + InstantSnapshotGroupSourceInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo) + return object; + var message = new $root.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo(); + if (object.consistencyGroup != null) + message.consistencyGroup = String(object.consistencyGroup); + if (object.consistencyGroupId != null) + message.consistencyGroupId = String(object.consistencyGroupId); + return message; + }; + + /** + * Creates a plain object from an InstantSnapshotGroupSourceInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InstantSnapshotGroupSourceInfo + * @static + * @param {google.cloud.compute.v1.InstantSnapshotGroupSourceInfo} message InstantSnapshotGroupSourceInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstantSnapshotGroupSourceInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.consistencyGroupId != null && message.hasOwnProperty("consistencyGroupId")) { + object.consistencyGroupId = message.consistencyGroupId; + if (options.oneofs) + object._consistencyGroupId = "consistencyGroupId"; + } + if (message.consistencyGroup != null && message.hasOwnProperty("consistencyGroup")) { + object.consistencyGroup = message.consistencyGroup; + if (options.oneofs) + object._consistencyGroup = "consistencyGroup"; + } + return object; + }; + + /** + * Converts this InstantSnapshotGroupSourceInfo to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InstantSnapshotGroupSourceInfo + * @instance + * @returns {Object.} JSON object + */ + InstantSnapshotGroupSourceInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstantSnapshotGroupSourceInfo + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InstantSnapshotGroupSourceInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstantSnapshotGroupSourceInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InstantSnapshotGroupSourceInfo"; + }; + + return InstantSnapshotGroupSourceInfo; + })(); + v1.InstantSnapshotList = (function() { /** @@ -319216,6 +332770,878 @@ return ListInstancesRequest; })(); + v1.ListInstantSnapshotGroups = (function() { + + /** + * Properties of a ListInstantSnapshotGroups. + * @memberof google.cloud.compute.v1 + * @interface IListInstantSnapshotGroups + * @property {string|null} [etag] ListInstantSnapshotGroups etag + * @property {string|null} [id] ListInstantSnapshotGroups id + * @property {Array.|null} [items] ListInstantSnapshotGroups items + * @property {string|null} [kind] ListInstantSnapshotGroups kind + * @property {string|null} [nextPageToken] ListInstantSnapshotGroups nextPageToken + * @property {string|null} [selfLink] ListInstantSnapshotGroups selfLink + * @property {Array.|null} [unreachables] ListInstantSnapshotGroups unreachables + * @property {google.cloud.compute.v1.IWarning|null} [warning] ListInstantSnapshotGroups warning + */ + + /** + * Constructs a new ListInstantSnapshotGroups. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ListInstantSnapshotGroups. + * @implements IListInstantSnapshotGroups + * @constructor + * @param {google.cloud.compute.v1.IListInstantSnapshotGroups=} [properties] Properties to set + */ + function ListInstantSnapshotGroups(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]]; + } + + /** + * ListInstantSnapshotGroups etag. + * @member {string|null|undefined} etag + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroups + * @instance + */ + ListInstantSnapshotGroups.prototype.etag = null; + + /** + * ListInstantSnapshotGroups id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroups + * @instance + */ + ListInstantSnapshotGroups.prototype.id = null; + + /** + * ListInstantSnapshotGroups items. + * @member {Array.} items + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroups + * @instance + */ + ListInstantSnapshotGroups.prototype.items = $util.emptyArray; + + /** + * ListInstantSnapshotGroups kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroups + * @instance + */ + ListInstantSnapshotGroups.prototype.kind = null; + + /** + * ListInstantSnapshotGroups nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroups + * @instance + */ + ListInstantSnapshotGroups.prototype.nextPageToken = null; + + /** + * ListInstantSnapshotGroups selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroups + * @instance + */ + ListInstantSnapshotGroups.prototype.selfLink = null; + + /** + * ListInstantSnapshotGroups unreachables. + * @member {Array.} unreachables + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroups + * @instance + */ + ListInstantSnapshotGroups.prototype.unreachables = $util.emptyArray; + + /** + * ListInstantSnapshotGroups warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroups + * @instance + */ + ListInstantSnapshotGroups.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListInstantSnapshotGroups.prototype, "_etag", { + get: $util.oneOfGetter($oneOfFields = ["etag"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListInstantSnapshotGroups.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListInstantSnapshotGroups.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListInstantSnapshotGroups.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListInstantSnapshotGroups.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListInstantSnapshotGroups.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ListInstantSnapshotGroups instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroups + * @static + * @param {google.cloud.compute.v1.IListInstantSnapshotGroups=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListInstantSnapshotGroups} ListInstantSnapshotGroups instance + */ + ListInstantSnapshotGroups.create = function create(properties) { + return new ListInstantSnapshotGroups(properties); + }; + + /** + * Encodes the specified ListInstantSnapshotGroups message. Does not implicitly {@link google.cloud.compute.v1.ListInstantSnapshotGroups.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroups + * @static + * @param {google.cloud.compute.v1.IListInstantSnapshotGroups} message ListInstantSnapshotGroups message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListInstantSnapshotGroups.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.v1.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.v1.InstantSnapshotGroup.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 ListInstantSnapshotGroups message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListInstantSnapshotGroups.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroups + * @static + * @param {google.cloud.compute.v1.IListInstantSnapshotGroups} message ListInstantSnapshotGroups message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListInstantSnapshotGroups.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListInstantSnapshotGroups message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroups + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.ListInstantSnapshotGroups} ListInstantSnapshotGroups + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListInstantSnapshotGroups.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.v1.ListInstantSnapshotGroups(); + 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.v1.InstantSnapshotGroup.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.v1.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListInstantSnapshotGroups message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroups + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ListInstantSnapshotGroups} ListInstantSnapshotGroups + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListInstantSnapshotGroups.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListInstantSnapshotGroups message. + * @function verify + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroups + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListInstantSnapshotGroups.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.v1.InstantSnapshotGroup.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.v1.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a ListInstantSnapshotGroups message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroups + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ListInstantSnapshotGroups} ListInstantSnapshotGroups + */ + ListInstantSnapshotGroups.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListInstantSnapshotGroups) + return object; + var message = new $root.google.cloud.compute.v1.ListInstantSnapshotGroups(); + 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.v1.ListInstantSnapshotGroups.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.v1.ListInstantSnapshotGroups.items: object expected"); + message.items[i] = $root.google.cloud.compute.v1.InstantSnapshotGroup.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.v1.ListInstantSnapshotGroups.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.v1.ListInstantSnapshotGroups.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a ListInstantSnapshotGroups message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroups + * @static + * @param {google.cloud.compute.v1.ListInstantSnapshotGroups} message ListInstantSnapshotGroups + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListInstantSnapshotGroups.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.v1.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.v1.InstantSnapshotGroup.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 ListInstantSnapshotGroups to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroups + * @instance + * @returns {Object.} JSON object + */ + ListInstantSnapshotGroups.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListInstantSnapshotGroups + * @function getTypeUrl + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroups + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListInstantSnapshotGroups.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.ListInstantSnapshotGroups"; + }; + + return ListInstantSnapshotGroups; + })(); + + v1.ListInstantSnapshotGroupsRequest = (function() { + + /** + * Properties of a ListInstantSnapshotGroupsRequest. + * @memberof google.cloud.compute.v1 + * @interface IListInstantSnapshotGroupsRequest + * @property {string|null} [filter] ListInstantSnapshotGroupsRequest filter + * @property {number|null} [maxResults] ListInstantSnapshotGroupsRequest maxResults + * @property {string|null} [orderBy] ListInstantSnapshotGroupsRequest orderBy + * @property {string|null} [pageToken] ListInstantSnapshotGroupsRequest pageToken + * @property {string|null} [project] ListInstantSnapshotGroupsRequest project + * @property {boolean|null} [returnPartialSuccess] ListInstantSnapshotGroupsRequest returnPartialSuccess + * @property {string|null} [zone] ListInstantSnapshotGroupsRequest zone + */ + + /** + * Constructs a new ListInstantSnapshotGroupsRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ListInstantSnapshotGroupsRequest. + * @implements IListInstantSnapshotGroupsRequest + * @constructor + * @param {google.cloud.compute.v1.IListInstantSnapshotGroupsRequest=} [properties] Properties to set + */ + function ListInstantSnapshotGroupsRequest(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]]; + } + + /** + * ListInstantSnapshotGroupsRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroupsRequest + * @instance + */ + ListInstantSnapshotGroupsRequest.prototype.filter = null; + + /** + * ListInstantSnapshotGroupsRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroupsRequest + * @instance + */ + ListInstantSnapshotGroupsRequest.prototype.maxResults = null; + + /** + * ListInstantSnapshotGroupsRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroupsRequest + * @instance + */ + ListInstantSnapshotGroupsRequest.prototype.orderBy = null; + + /** + * ListInstantSnapshotGroupsRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroupsRequest + * @instance + */ + ListInstantSnapshotGroupsRequest.prototype.pageToken = null; + + /** + * ListInstantSnapshotGroupsRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroupsRequest + * @instance + */ + ListInstantSnapshotGroupsRequest.prototype.project = ""; + + /** + * ListInstantSnapshotGroupsRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroupsRequest + * @instance + */ + ListInstantSnapshotGroupsRequest.prototype.returnPartialSuccess = null; + + /** + * ListInstantSnapshotGroupsRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroupsRequest + * @instance + */ + ListInstantSnapshotGroupsRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListInstantSnapshotGroupsRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListInstantSnapshotGroupsRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListInstantSnapshotGroupsRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListInstantSnapshotGroupsRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListInstantSnapshotGroupsRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ListInstantSnapshotGroupsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroupsRequest + * @static + * @param {google.cloud.compute.v1.IListInstantSnapshotGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListInstantSnapshotGroupsRequest} ListInstantSnapshotGroupsRequest instance + */ + ListInstantSnapshotGroupsRequest.create = function create(properties) { + return new ListInstantSnapshotGroupsRequest(properties); + }; + + /** + * Encodes the specified ListInstantSnapshotGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListInstantSnapshotGroupsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroupsRequest + * @static + * @param {google.cloud.compute.v1.IListInstantSnapshotGroupsRequest} message ListInstantSnapshotGroupsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListInstantSnapshotGroupsRequest.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 ListInstantSnapshotGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListInstantSnapshotGroupsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroupsRequest + * @static + * @param {google.cloud.compute.v1.IListInstantSnapshotGroupsRequest} message ListInstantSnapshotGroupsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListInstantSnapshotGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListInstantSnapshotGroupsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroupsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.ListInstantSnapshotGroupsRequest} ListInstantSnapshotGroupsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListInstantSnapshotGroupsRequest.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.v1.ListInstantSnapshotGroupsRequest(); + 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 ListInstantSnapshotGroupsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroupsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ListInstantSnapshotGroupsRequest} ListInstantSnapshotGroupsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListInstantSnapshotGroupsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListInstantSnapshotGroupsRequest message. + * @function verify + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroupsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListInstantSnapshotGroupsRequest.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 ListInstantSnapshotGroupsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroupsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ListInstantSnapshotGroupsRequest} ListInstantSnapshotGroupsRequest + */ + ListInstantSnapshotGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest) + return object; + var message = new $root.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest(); + 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 ListInstantSnapshotGroupsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroupsRequest + * @static + * @param {google.cloud.compute.v1.ListInstantSnapshotGroupsRequest} message ListInstantSnapshotGroupsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListInstantSnapshotGroupsRequest.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 ListInstantSnapshotGroupsRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroupsRequest + * @instance + * @returns {Object.} JSON object + */ + ListInstantSnapshotGroupsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListInstantSnapshotGroupsRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.ListInstantSnapshotGroupsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListInstantSnapshotGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.ListInstantSnapshotGroupsRequest"; + }; + + return ListInstantSnapshotGroupsRequest; + })(); + v1.ListInstantSnapshotsRequest = (function() { /** @@ -333529,30 +347955,30 @@ return ListRegionAutoscalersRequest; })(); - v1.ListRegionBackendServicesRequest = (function() { + v1.ListRegionBackendBucketsRequest = (function() { /** - * Properties of a ListRegionBackendServicesRequest. + * Properties of a ListRegionBackendBucketsRequest. * @memberof google.cloud.compute.v1 - * @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 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 ListRegionBackendServicesRequest. + * Constructs a new ListRegionBackendBucketsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionBackendServicesRequest. - * @implements IListRegionBackendServicesRequest + * @classdesc Represents a ListRegionBackendBucketsRequest. + * @implements IListRegionBackendBucketsRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionBackendServicesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionBackendBucketsRequest=} [properties] Properties to set */ - function ListRegionBackendServicesRequest(properties) { + function ListRegionBackendBucketsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -333560,116 +347986,116 @@ } /** - * ListRegionBackendServicesRequest filter. + * ListRegionBackendBucketsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionBackendBucketsRequest * @instance */ - ListRegionBackendServicesRequest.prototype.filter = null; + ListRegionBackendBucketsRequest.prototype.filter = null; /** - * ListRegionBackendServicesRequest maxResults. + * ListRegionBackendBucketsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionBackendBucketsRequest * @instance */ - ListRegionBackendServicesRequest.prototype.maxResults = null; + ListRegionBackendBucketsRequest.prototype.maxResults = null; /** - * ListRegionBackendServicesRequest orderBy. + * ListRegionBackendBucketsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionBackendBucketsRequest * @instance */ - ListRegionBackendServicesRequest.prototype.orderBy = null; + ListRegionBackendBucketsRequest.prototype.orderBy = null; /** - * ListRegionBackendServicesRequest pageToken. + * ListRegionBackendBucketsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionBackendBucketsRequest * @instance */ - ListRegionBackendServicesRequest.prototype.pageToken = null; + ListRegionBackendBucketsRequest.prototype.pageToken = null; /** - * ListRegionBackendServicesRequest project. + * ListRegionBackendBucketsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionBackendBucketsRequest * @instance */ - ListRegionBackendServicesRequest.prototype.project = ""; + ListRegionBackendBucketsRequest.prototype.project = ""; /** - * ListRegionBackendServicesRequest region. + * ListRegionBackendBucketsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionBackendBucketsRequest * @instance */ - ListRegionBackendServicesRequest.prototype.region = ""; + ListRegionBackendBucketsRequest.prototype.region = ""; /** - * ListRegionBackendServicesRequest returnPartialSuccess. + * ListRegionBackendBucketsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionBackendBucketsRequest * @instance */ - ListRegionBackendServicesRequest.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(ListRegionBackendServicesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionBackendBucketsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionBackendBucketsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionBackendBucketsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionBackendBucketsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionBackendBucketsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionBackendServicesRequest instance using the specified properties. + * Creates a new ListRegionBackendBucketsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionBackendBucketsRequest * @static - * @param {google.cloud.compute.v1.IListRegionBackendServicesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest instance + * @param {google.cloud.compute.v1.IListRegionBackendBucketsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionBackendBucketsRequest} ListRegionBackendBucketsRequest instance */ - ListRegionBackendServicesRequest.create = function create(properties) { - return new ListRegionBackendServicesRequest(properties); + ListRegionBackendBucketsRequest.create = function create(properties) { + return new ListRegionBackendBucketsRequest(properties); }; /** - * Encodes the specified ListRegionBackendServicesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionBackendServicesRequest.verify|verify} messages. + * Encodes the specified ListRegionBackendBucketsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionBackendBucketsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionBackendBucketsRequest * @static - * @param {google.cloud.compute.v1.IListRegionBackendServicesRequest} message ListRegionBackendServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionBackendBucketsRequest} message ListRegionBackendBucketsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionBackendServicesRequest.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")) @@ -333690,33 +348116,33 @@ }; /** - * Encodes the specified ListRegionBackendServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionBackendServicesRequest.verify|verify} messages. + * Encodes the specified ListRegionBackendBucketsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionBackendBucketsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionBackendBucketsRequest * @static - * @param {google.cloud.compute.v1.IListRegionBackendServicesRequest} message ListRegionBackendServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionBackendBucketsRequest} message ListRegionBackendBucketsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionBackendServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionBackendBucketsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionBackendServicesRequest message from the specified reader or buffer. + * Decodes a ListRegionBackendBucketsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.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.v1.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest + * @returns {google.cloud.compute.v1.ListRegionBackendBucketsRequest} ListRegionBackendBucketsRequest * @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) { + 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.v1.ListRegionBackendServicesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionBackendBucketsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -333759,30 +348185,30 @@ }; /** - * Decodes a ListRegionBackendServicesRequest 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.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionBackendBucketsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest + * @returns {google.cloud.compute.v1.ListRegionBackendBucketsRequest} ListRegionBackendBucketsRequest * @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) { + ListRegionBackendBucketsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionBackendServicesRequest message. + * Verifies a ListRegionBackendBucketsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionBackendBucketsRequest * @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) { + ListRegionBackendBucketsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -333821,17 +348247,17 @@ }; /** - * Creates a ListRegionBackendServicesRequest 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.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionBackendBucketsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest + * @returns {google.cloud.compute.v1.ListRegionBackendBucketsRequest} ListRegionBackendBucketsRequest */ - ListRegionBackendServicesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionBackendServicesRequest) + ListRegionBackendBucketsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionBackendBucketsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionBackendServicesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionBackendBucketsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -333850,15 +348276,15 @@ }; /** - * Creates a plain object from a ListRegionBackendServicesRequest 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.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionBackendBucketsRequest * @static - * @param {google.cloud.compute.v1.ListRegionBackendServicesRequest} message ListRegionBackendServicesRequest + * @param {google.cloud.compute.v1.ListRegionBackendBucketsRequest} message ListRegionBackendBucketsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionBackendServicesRequest.toObject = function toObject(message, options) { + ListRegionBackendBucketsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -333899,58 +348325,58 @@ }; /** - * Converts this ListRegionBackendServicesRequest to JSON. + * Converts this ListRegionBackendBucketsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionBackendBucketsRequest * @instance * @returns {Object.} JSON object */ - ListRegionBackendServicesRequest.prototype.toJSON = function toJSON() { + ListRegionBackendBucketsRequest.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 ListRegionBackendBucketsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionBackendBucketsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionBackendServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionBackendBucketsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionBackendServicesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionBackendBucketsRequest"; }; - return ListRegionBackendServicesRequest; + return ListRegionBackendBucketsRequest; })(); - v1.ListRegionCommitmentsRequest = (function() { + v1.ListRegionBackendServicesRequest = (function() { /** - * Properties of a ListRegionCommitmentsRequest. + * Properties of a ListRegionBackendServicesRequest. * @memberof google.cloud.compute.v1 - * @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 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 ListRegionCommitmentsRequest. + * Constructs a new ListRegionBackendServicesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionCommitmentsRequest. - * @implements IListRegionCommitmentsRequest + * @classdesc Represents a ListRegionBackendServicesRequest. + * @implements IListRegionBackendServicesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionCommitmentsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionBackendServicesRequest=} [properties] Properties to set */ - function ListRegionCommitmentsRequest(properties) { + function ListRegionBackendServicesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -333958,116 +348384,116 @@ } /** - * ListRegionCommitmentsRequest filter. + * ListRegionBackendServicesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.filter = null; + ListRegionBackendServicesRequest.prototype.filter = null; /** - * ListRegionCommitmentsRequest maxResults. + * ListRegionBackendServicesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.maxResults = null; + ListRegionBackendServicesRequest.prototype.maxResults = null; /** - * ListRegionCommitmentsRequest orderBy. + * ListRegionBackendServicesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.orderBy = null; + ListRegionBackendServicesRequest.prototype.orderBy = null; /** - * ListRegionCommitmentsRequest pageToken. + * ListRegionBackendServicesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.pageToken = null; + ListRegionBackendServicesRequest.prototype.pageToken = null; /** - * ListRegionCommitmentsRequest project. + * ListRegionBackendServicesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.project = ""; + ListRegionBackendServicesRequest.prototype.project = ""; /** - * ListRegionCommitmentsRequest region. + * ListRegionBackendServicesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.region = ""; + ListRegionBackendServicesRequest.prototype.region = ""; /** - * ListRegionCommitmentsRequest returnPartialSuccess. + * ListRegionBackendServicesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.returnPartialSuccess = null; + ListRegionBackendServicesRequest.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(ListRegionBackendServicesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionCommitmentsRequest instance using the specified properties. + * Creates a new ListRegionBackendServicesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @static - * @param {google.cloud.compute.v1.IListRegionCommitmentsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest instance + * @param {google.cloud.compute.v1.IListRegionBackendServicesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest instance */ - ListRegionCommitmentsRequest.create = function create(properties) { - return new ListRegionCommitmentsRequest(properties); + ListRegionBackendServicesRequest.create = function create(properties) { + return new ListRegionBackendServicesRequest(properties); }; /** - * Encodes the specified ListRegionCommitmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionCommitmentsRequest.verify|verify} messages. + * Encodes the specified ListRegionBackendServicesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionBackendServicesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @static - * @param {google.cloud.compute.v1.IListRegionCommitmentsRequest} message ListRegionCommitmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionBackendServicesRequest} message ListRegionBackendServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionCommitmentsRequest.encode = function encode(message, writer) { + ListRegionBackendServicesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -334088,33 +348514,33 @@ }; /** - * Encodes the specified ListRegionCommitmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionCommitmentsRequest.verify|verify} messages. + * Encodes the specified ListRegionBackendServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionBackendServicesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @static - * @param {google.cloud.compute.v1.IListRegionCommitmentsRequest} message ListRegionCommitmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionBackendServicesRequest} message ListRegionBackendServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionCommitmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionBackendServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionCommitmentsRequest message from the specified reader or buffer. + * Decodes a ListRegionBackendServicesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.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.v1.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest + * @returns {google.cloud.compute.v1.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest * @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) { + 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.v1.ListRegionCommitmentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionBackendServicesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -334157,30 +348583,30 @@ }; /** - * Decodes a ListRegionCommitmentsRequest 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.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest + * @returns {google.cloud.compute.v1.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest * @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) { + ListRegionBackendServicesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionCommitmentsRequest message. + * Verifies a ListRegionBackendServicesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @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) { + ListRegionBackendServicesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -334219,17 +348645,17 @@ }; /** - * Creates a ListRegionCommitmentsRequest 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.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest + * @returns {google.cloud.compute.v1.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest */ - ListRegionCommitmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionCommitmentsRequest) + ListRegionBackendServicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionBackendServicesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionCommitmentsRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionBackendServicesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -334248,15 +348674,15 @@ }; /** - * Creates a plain object from a ListRegionCommitmentsRequest 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.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @static - * @param {google.cloud.compute.v1.ListRegionCommitmentsRequest} message ListRegionCommitmentsRequest + * @param {google.cloud.compute.v1.ListRegionBackendServicesRequest} message ListRegionBackendServicesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionCommitmentsRequest.toObject = function toObject(message, options) { + ListRegionBackendServicesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -334297,58 +348723,58 @@ }; /** - * Converts this ListRegionCommitmentsRequest to JSON. + * Converts this ListRegionBackendServicesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @instance * @returns {Object.} JSON object */ - ListRegionCommitmentsRequest.prototype.toJSON = function toJSON() { + ListRegionBackendServicesRequest.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 ListRegionBackendServicesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionCommitmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionBackendServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionCommitmentsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionBackendServicesRequest"; }; - return ListRegionCommitmentsRequest; + return ListRegionBackendServicesRequest; })(); - v1.ListRegionCompositeHealthChecksRequest = (function() { + v1.ListRegionCommitmentsRequest = (function() { /** - * Properties of a ListRegionCompositeHealthChecksRequest. + * Properties of a ListRegionCommitmentsRequest. * @memberof google.cloud.compute.v1 - * @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 + * @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 ListRegionCompositeHealthChecksRequest. + * Constructs a new ListRegionCommitmentsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionCompositeHealthChecksRequest. - * @implements IListRegionCompositeHealthChecksRequest + * @classdesc Represents a ListRegionCommitmentsRequest. + * @implements IListRegionCommitmentsRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionCompositeHealthChecksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionCommitmentsRequest=} [properties] Properties to set */ - function ListRegionCompositeHealthChecksRequest(properties) { + function ListRegionCommitmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -334356,116 +348782,116 @@ } /** - * ListRegionCompositeHealthChecksRequest filter. + * ListRegionCommitmentsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - ListRegionCompositeHealthChecksRequest.prototype.filter = null; + ListRegionCommitmentsRequest.prototype.filter = null; /** - * ListRegionCompositeHealthChecksRequest maxResults. + * ListRegionCommitmentsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - ListRegionCompositeHealthChecksRequest.prototype.maxResults = null; + ListRegionCommitmentsRequest.prototype.maxResults = null; /** - * ListRegionCompositeHealthChecksRequest orderBy. + * ListRegionCommitmentsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - ListRegionCompositeHealthChecksRequest.prototype.orderBy = null; + ListRegionCommitmentsRequest.prototype.orderBy = null; /** - * ListRegionCompositeHealthChecksRequest pageToken. + * ListRegionCommitmentsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - ListRegionCompositeHealthChecksRequest.prototype.pageToken = null; + ListRegionCommitmentsRequest.prototype.pageToken = null; /** - * ListRegionCompositeHealthChecksRequest project. + * ListRegionCommitmentsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - ListRegionCompositeHealthChecksRequest.prototype.project = ""; + ListRegionCommitmentsRequest.prototype.project = ""; /** - * ListRegionCompositeHealthChecksRequest region. + * ListRegionCommitmentsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - ListRegionCompositeHealthChecksRequest.prototype.region = ""; + ListRegionCommitmentsRequest.prototype.region = ""; /** - * ListRegionCompositeHealthChecksRequest returnPartialSuccess. + * ListRegionCommitmentsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - ListRegionCompositeHealthChecksRequest.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(ListRegionCompositeHealthChecksRequest.prototype, "_filter", { + Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionCompositeHealthChecksRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionCompositeHealthChecksRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionCompositeHealthChecksRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionCompositeHealthChecksRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionCompositeHealthChecksRequest instance using the specified properties. + * Creates a new ListRegionCommitmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.IListRegionCompositeHealthChecksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest} ListRegionCompositeHealthChecksRequest instance + * @param {google.cloud.compute.v1.IListRegionCommitmentsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest instance */ - ListRegionCompositeHealthChecksRequest.create = function create(properties) { - return new ListRegionCompositeHealthChecksRequest(properties); + ListRegionCommitmentsRequest.create = function create(properties) { + return new ListRegionCommitmentsRequest(properties); }; /** - * Encodes the specified ListRegionCompositeHealthChecksRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest.verify|verify} messages. + * Encodes the specified ListRegionCommitmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionCommitmentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.IListRegionCompositeHealthChecksRequest} message ListRegionCompositeHealthChecksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionCommitmentsRequest} message ListRegionCommitmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionCompositeHealthChecksRequest.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")) @@ -334486,33 +348912,33 @@ }; /** - * Encodes the specified ListRegionCompositeHealthChecksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest.verify|verify} messages. + * Encodes the specified ListRegionCommitmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionCommitmentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.IListRegionCompositeHealthChecksRequest} message ListRegionCompositeHealthChecksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionCommitmentsRequest} message ListRegionCommitmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionCompositeHealthChecksRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionCommitmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionCompositeHealthChecksRequest message from the specified reader or buffer. + * Decodes a ListRegionCommitmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.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.v1.ListRegionCompositeHealthChecksRequest} ListRegionCompositeHealthChecksRequest + * @returns {google.cloud.compute.v1.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionCompositeHealthChecksRequest.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.v1.ListRegionCompositeHealthChecksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionCommitmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -334555,30 +348981,30 @@ }; /** - * Decodes a ListRegionCompositeHealthChecksRequest 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.v1.ListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest} ListRegionCompositeHealthChecksRequest + * @returns {google.cloud.compute.v1.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionCompositeHealthChecksRequest.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 ListRegionCompositeHealthChecksRequest message. + * Verifies a ListRegionCommitmentsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionCompositeHealthChecksRequest.verify = function verify(message) { + ListRegionCommitmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -334617,17 +349043,17 @@ }; /** - * Creates a ListRegionCompositeHealthChecksRequest 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.v1.ListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest} ListRegionCompositeHealthChecksRequest + * @returns {google.cloud.compute.v1.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest */ - ListRegionCompositeHealthChecksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest) + ListRegionCommitmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionCommitmentsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionCommitmentsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -334646,15 +349072,15 @@ }; /** - * Creates a plain object from a ListRegionCompositeHealthChecksRequest 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.v1.ListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest} message ListRegionCompositeHealthChecksRequest + * @param {google.cloud.compute.v1.ListRegionCommitmentsRequest} message ListRegionCommitmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionCompositeHealthChecksRequest.toObject = function toObject(message, options) { + ListRegionCommitmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -334695,58 +349121,58 @@ }; /** - * Converts this ListRegionCompositeHealthChecksRequest to JSON. + * Converts this ListRegionCommitmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance * @returns {Object.} JSON object */ - ListRegionCompositeHealthChecksRequest.prototype.toJSON = function toJSON() { + ListRegionCommitmentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionCompositeHealthChecksRequest + * Gets the default type url for ListRegionCommitmentsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionCompositeHealthChecksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionCommitmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionCommitmentsRequest"; }; - return ListRegionCompositeHealthChecksRequest; + return ListRegionCommitmentsRequest; })(); - v1.ListRegionDiskTypesRequest = (function() { + v1.ListRegionCompositeHealthChecksRequest = (function() { /** - * Properties of a ListRegionDiskTypesRequest. + * Properties of a ListRegionCompositeHealthChecksRequest. * @memberof google.cloud.compute.v1 - * @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 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 ListRegionDiskTypesRequest. + * Constructs a new ListRegionCompositeHealthChecksRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionDiskTypesRequest. - * @implements IListRegionDiskTypesRequest + * @classdesc Represents a ListRegionCompositeHealthChecksRequest. + * @implements IListRegionCompositeHealthChecksRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionDiskTypesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionCompositeHealthChecksRequest=} [properties] Properties to set */ - function ListRegionDiskTypesRequest(properties) { + function ListRegionCompositeHealthChecksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -334754,116 +349180,116 @@ } /** - * ListRegionDiskTypesRequest filter. + * ListRegionCompositeHealthChecksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.filter = null; + ListRegionCompositeHealthChecksRequest.prototype.filter = null; /** - * ListRegionDiskTypesRequest maxResults. + * ListRegionCompositeHealthChecksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.maxResults = null; + ListRegionCompositeHealthChecksRequest.prototype.maxResults = null; /** - * ListRegionDiskTypesRequest orderBy. + * ListRegionCompositeHealthChecksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.orderBy = null; + ListRegionCompositeHealthChecksRequest.prototype.orderBy = null; /** - * ListRegionDiskTypesRequest pageToken. + * ListRegionCompositeHealthChecksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.pageToken = null; + ListRegionCompositeHealthChecksRequest.prototype.pageToken = null; /** - * ListRegionDiskTypesRequest project. + * ListRegionCompositeHealthChecksRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.project = ""; + ListRegionCompositeHealthChecksRequest.prototype.project = ""; /** - * ListRegionDiskTypesRequest region. + * ListRegionCompositeHealthChecksRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.region = ""; + ListRegionCompositeHealthChecksRequest.prototype.region = ""; /** - * ListRegionDiskTypesRequest returnPartialSuccess. + * ListRegionCompositeHealthChecksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @instance */ - ListRegionDiskTypesRequest.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(ListRegionDiskTypesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionCompositeHealthChecksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionCompositeHealthChecksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionCompositeHealthChecksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionCompositeHealthChecksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionCompositeHealthChecksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionDiskTypesRequest instance using the specified properties. + * Creates a new ListRegionCompositeHealthChecksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @static - * @param {google.cloud.compute.v1.IListRegionDiskTypesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest instance + * @param {google.cloud.compute.v1.IListRegionCompositeHealthChecksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest} ListRegionCompositeHealthChecksRequest instance */ - ListRegionDiskTypesRequest.create = function create(properties) { - return new ListRegionDiskTypesRequest(properties); + ListRegionCompositeHealthChecksRequest.create = function create(properties) { + return new ListRegionCompositeHealthChecksRequest(properties); }; /** - * Encodes the specified ListRegionDiskTypesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionDiskTypesRequest.verify|verify} messages. + * Encodes the specified ListRegionCompositeHealthChecksRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @static - * @param {google.cloud.compute.v1.IListRegionDiskTypesRequest} message ListRegionDiskTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionCompositeHealthChecksRequest} message ListRegionCompositeHealthChecksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionDiskTypesRequest.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")) @@ -334884,33 +349310,33 @@ }; /** - * Encodes the specified ListRegionDiskTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionDiskTypesRequest.verify|verify} messages. + * Encodes the specified ListRegionCompositeHealthChecksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @static - * @param {google.cloud.compute.v1.IListRegionDiskTypesRequest} message ListRegionDiskTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionCompositeHealthChecksRequest} message ListRegionCompositeHealthChecksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionDiskTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionCompositeHealthChecksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionDiskTypesRequest message from the specified reader or buffer. + * Decodes a ListRegionCompositeHealthChecksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.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.v1.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest + * @returns {google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest} ListRegionCompositeHealthChecksRequest * @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) { + 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.v1.ListRegionDiskTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -334953,30 +349379,30 @@ }; /** - * Decodes a ListRegionDiskTypesRequest 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.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest + * @returns {google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest} ListRegionCompositeHealthChecksRequest * @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) { + ListRegionCompositeHealthChecksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionDiskTypesRequest message. + * Verifies a ListRegionCompositeHealthChecksRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @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) { + ListRegionCompositeHealthChecksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -335015,17 +349441,17 @@ }; /** - * Creates a ListRegionDiskTypesRequest 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.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest + * @returns {google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest} ListRegionCompositeHealthChecksRequest */ - ListRegionDiskTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionDiskTypesRequest) + ListRegionCompositeHealthChecksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionDiskTypesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -335044,15 +349470,15 @@ }; /** - * Creates a plain object from a ListRegionDiskTypesRequest 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.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @static - * @param {google.cloud.compute.v1.ListRegionDiskTypesRequest} message ListRegionDiskTypesRequest + * @param {google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest} message ListRegionCompositeHealthChecksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionDiskTypesRequest.toObject = function toObject(message, options) { + ListRegionCompositeHealthChecksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -335093,58 +349519,58 @@ }; /** - * Converts this ListRegionDiskTypesRequest to JSON. + * Converts this ListRegionCompositeHealthChecksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @instance * @returns {Object.} JSON object */ - ListRegionDiskTypesRequest.prototype.toJSON = function toJSON() { + ListRegionCompositeHealthChecksRequest.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 ListRegionCompositeHealthChecksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionDiskTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionCompositeHealthChecksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionDiskTypesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest"; }; - return ListRegionDiskTypesRequest; + return ListRegionCompositeHealthChecksRequest; })(); - v1.ListRegionDisksRequest = (function() { + v1.ListRegionDiskTypesRequest = (function() { /** - * Properties of a ListRegionDisksRequest. + * Properties of a ListRegionDiskTypesRequest. * @memberof google.cloud.compute.v1 - * @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 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 ListRegionDisksRequest. + * Constructs a new ListRegionDiskTypesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionDisksRequest. - * @implements IListRegionDisksRequest + * @classdesc Represents a ListRegionDiskTypesRequest. + * @implements IListRegionDiskTypesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionDisksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionDiskTypesRequest=} [properties] Properties to set */ - function ListRegionDisksRequest(properties) { + function ListRegionDiskTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -335152,116 +349578,116 @@ } /** - * ListRegionDisksRequest filter. + * ListRegionDiskTypesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - ListRegionDisksRequest.prototype.filter = null; + ListRegionDiskTypesRequest.prototype.filter = null; /** - * ListRegionDisksRequest maxResults. + * ListRegionDiskTypesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - ListRegionDisksRequest.prototype.maxResults = null; + ListRegionDiskTypesRequest.prototype.maxResults = null; /** - * ListRegionDisksRequest orderBy. + * ListRegionDiskTypesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - ListRegionDisksRequest.prototype.orderBy = null; + ListRegionDiskTypesRequest.prototype.orderBy = null; /** - * ListRegionDisksRequest pageToken. + * ListRegionDiskTypesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - ListRegionDisksRequest.prototype.pageToken = null; + ListRegionDiskTypesRequest.prototype.pageToken = null; /** - * ListRegionDisksRequest project. + * ListRegionDiskTypesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - ListRegionDisksRequest.prototype.project = ""; + ListRegionDiskTypesRequest.prototype.project = ""; /** - * ListRegionDisksRequest region. + * ListRegionDiskTypesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - ListRegionDisksRequest.prototype.region = ""; + ListRegionDiskTypesRequest.prototype.region = ""; /** - * ListRegionDisksRequest returnPartialSuccess. + * ListRegionDiskTypesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - ListRegionDisksRequest.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(ListRegionDisksRequest.prototype, "_filter", { + Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionDisksRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionDisksRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionDisksRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionDisksRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionDisksRequest instance using the specified properties. + * Creates a new ListRegionDiskTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @static - * @param {google.cloud.compute.v1.IListRegionDisksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionDisksRequest} ListRegionDisksRequest instance + * @param {google.cloud.compute.v1.IListRegionDiskTypesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest instance */ - ListRegionDisksRequest.create = function create(properties) { - return new ListRegionDisksRequest(properties); + ListRegionDiskTypesRequest.create = function create(properties) { + return new ListRegionDiskTypesRequest(properties); }; /** - * Encodes the specified ListRegionDisksRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionDisksRequest.verify|verify} messages. + * Encodes the specified ListRegionDiskTypesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionDiskTypesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @static - * @param {google.cloud.compute.v1.IListRegionDisksRequest} message ListRegionDisksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionDiskTypesRequest} message ListRegionDiskTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionDisksRequest.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")) @@ -335282,33 +349708,33 @@ }; /** - * Encodes the specified ListRegionDisksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionDisksRequest.verify|verify} messages. + * Encodes the specified ListRegionDiskTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionDiskTypesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @static - * @param {google.cloud.compute.v1.IListRegionDisksRequest} message ListRegionDisksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionDiskTypesRequest} message ListRegionDiskTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionDisksRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionDiskTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionDisksRequest message from the specified reader or buffer. + * Decodes a ListRegionDiskTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.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.v1.ListRegionDisksRequest} ListRegionDisksRequest + * @returns {google.cloud.compute.v1.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest * @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) { + 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.v1.ListRegionDisksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionDiskTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -335351,30 +349777,30 @@ }; /** - * Decodes a ListRegionDisksRequest 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.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionDisksRequest} ListRegionDisksRequest + * @returns {google.cloud.compute.v1.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest * @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) { + ListRegionDiskTypesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionDisksRequest message. + * Verifies a ListRegionDiskTypesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @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) { + ListRegionDiskTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -335413,17 +349839,17 @@ }; /** - * Creates a ListRegionDisksRequest 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.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionDisksRequest} ListRegionDisksRequest + * @returns {google.cloud.compute.v1.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest */ - ListRegionDisksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionDisksRequest) + ListRegionDiskTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionDiskTypesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionDisksRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionDiskTypesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -335442,15 +349868,15 @@ }; /** - * Creates a plain object from a ListRegionDisksRequest 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.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @static - * @param {google.cloud.compute.v1.ListRegionDisksRequest} message ListRegionDisksRequest + * @param {google.cloud.compute.v1.ListRegionDiskTypesRequest} message ListRegionDiskTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionDisksRequest.toObject = function toObject(message, options) { + ListRegionDiskTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -335491,58 +349917,58 @@ }; /** - * Converts this ListRegionDisksRequest to JSON. + * Converts this ListRegionDiskTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance * @returns {Object.} JSON object */ - ListRegionDisksRequest.prototype.toJSON = function toJSON() { + ListRegionDiskTypesRequest.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 ListRegionDiskTypesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionDisksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionDiskTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionDisksRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionDiskTypesRequest"; }; - return ListRegionDisksRequest; + return ListRegionDiskTypesRequest; })(); - v1.ListRegionHealthAggregationPoliciesRequest = (function() { + v1.ListRegionDisksRequest = (function() { /** - * Properties of a ListRegionHealthAggregationPoliciesRequest. + * Properties of a ListRegionDisksRequest. * @memberof google.cloud.compute.v1 - * @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 + * @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 ListRegionHealthAggregationPoliciesRequest. + * Constructs a new ListRegionDisksRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionHealthAggregationPoliciesRequest. - * @implements IListRegionHealthAggregationPoliciesRequest + * @classdesc Represents a ListRegionDisksRequest. + * @implements IListRegionDisksRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionDisksRequest=} [properties] Properties to set */ - function ListRegionHealthAggregationPoliciesRequest(properties) { + function ListRegionDisksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -335550,116 +349976,116 @@ } /** - * ListRegionHealthAggregationPoliciesRequest filter. + * ListRegionDisksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - ListRegionHealthAggregationPoliciesRequest.prototype.filter = null; + ListRegionDisksRequest.prototype.filter = null; /** - * ListRegionHealthAggregationPoliciesRequest maxResults. + * ListRegionDisksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - ListRegionHealthAggregationPoliciesRequest.prototype.maxResults = null; + ListRegionDisksRequest.prototype.maxResults = null; /** - * ListRegionHealthAggregationPoliciesRequest orderBy. + * ListRegionDisksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - ListRegionHealthAggregationPoliciesRequest.prototype.orderBy = null; + ListRegionDisksRequest.prototype.orderBy = null; /** - * ListRegionHealthAggregationPoliciesRequest pageToken. + * ListRegionDisksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - ListRegionHealthAggregationPoliciesRequest.prototype.pageToken = null; + ListRegionDisksRequest.prototype.pageToken = null; /** - * ListRegionHealthAggregationPoliciesRequest project. + * ListRegionDisksRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - ListRegionHealthAggregationPoliciesRequest.prototype.project = ""; + ListRegionDisksRequest.prototype.project = ""; /** - * ListRegionHealthAggregationPoliciesRequest region. + * ListRegionDisksRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - ListRegionHealthAggregationPoliciesRequest.prototype.region = ""; + ListRegionDisksRequest.prototype.region = ""; /** - * ListRegionHealthAggregationPoliciesRequest returnPartialSuccess. + * ListRegionDisksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - ListRegionHealthAggregationPoliciesRequest.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(ListRegionHealthAggregationPoliciesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionDisksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthAggregationPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionDisksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthAggregationPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionDisksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthAggregationPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionDisksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthAggregationPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionDisksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionHealthAggregationPoliciesRequest instance using the specified properties. + * Creates a new ListRegionDisksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest} ListRegionHealthAggregationPoliciesRequest instance + * @param {google.cloud.compute.v1.IListRegionDisksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionDisksRequest} ListRegionDisksRequest instance */ - ListRegionHealthAggregationPoliciesRequest.create = function create(properties) { - return new ListRegionHealthAggregationPoliciesRequest(properties); + ListRegionDisksRequest.create = function create(properties) { + return new ListRegionDisksRequest(properties); }; /** - * Encodes the specified ListRegionHealthAggregationPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionDisksRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionDisksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest} message ListRegionHealthAggregationPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionDisksRequest} message ListRegionDisksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionHealthAggregationPoliciesRequest.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")) @@ -335680,33 +350106,33 @@ }; /** - * Encodes the specified ListRegionHealthAggregationPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionDisksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionDisksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest} message ListRegionHealthAggregationPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionDisksRequest} message ListRegionDisksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionHealthAggregationPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionDisksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionHealthAggregationPoliciesRequest message from the specified reader or buffer. + * Decodes a ListRegionDisksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.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.v1.ListRegionHealthAggregationPoliciesRequest} ListRegionHealthAggregationPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionDisksRequest} ListRegionDisksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionHealthAggregationPoliciesRequest.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.v1.ListRegionHealthAggregationPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionDisksRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -335749,30 +350175,30 @@ }; /** - * Decodes a ListRegionHealthAggregationPoliciesRequest 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.v1.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest} ListRegionHealthAggregationPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionDisksRequest} ListRegionDisksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionHealthAggregationPoliciesRequest.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 ListRegionHealthAggregationPoliciesRequest message. + * Verifies a ListRegionDisksRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionHealthAggregationPoliciesRequest.verify = function verify(message) { + ListRegionDisksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -335811,17 +350237,17 @@ }; /** - * Creates a ListRegionHealthAggregationPoliciesRequest 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.v1.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest} ListRegionHealthAggregationPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionDisksRequest} ListRegionDisksRequest */ - ListRegionHealthAggregationPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest) + ListRegionDisksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionDisksRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionDisksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -335840,15 +350266,15 @@ }; /** - * Creates a plain object from a ListRegionHealthAggregationPoliciesRequest 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.v1.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static - * @param {google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest} message ListRegionHealthAggregationPoliciesRequest + * @param {google.cloud.compute.v1.ListRegionDisksRequest} message ListRegionDisksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionHealthAggregationPoliciesRequest.toObject = function toObject(message, options) { + ListRegionDisksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -335889,58 +350315,58 @@ }; /** - * Converts this ListRegionHealthAggregationPoliciesRequest to JSON. + * Converts this ListRegionDisksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance * @returns {Object.} JSON object */ - ListRegionHealthAggregationPoliciesRequest.prototype.toJSON = function toJSON() { + ListRegionDisksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionHealthAggregationPoliciesRequest + * Gets the default type url for ListRegionDisksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionHealthAggregationPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionDisksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionDisksRequest"; }; - return ListRegionHealthAggregationPoliciesRequest; + return ListRegionDisksRequest; })(); - v1.ListRegionHealthCheckServicesRequest = (function() { + v1.ListRegionHealthAggregationPoliciesRequest = (function() { /** - * Properties of a ListRegionHealthCheckServicesRequest. + * Properties of a ListRegionHealthAggregationPoliciesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionHealthCheckServicesRequest - * @property {string|null} [filter] ListRegionHealthCheckServicesRequest filter - * @property {number|null} [maxResults] ListRegionHealthCheckServicesRequest maxResults - * @property {string|null} [orderBy] ListRegionHealthCheckServicesRequest orderBy - * @property {string|null} [pageToken] ListRegionHealthCheckServicesRequest pageToken - * @property {string|null} [project] ListRegionHealthCheckServicesRequest project - * @property {string|null} [region] ListRegionHealthCheckServicesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionHealthCheckServicesRequest 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 ListRegionHealthCheckServicesRequest. + * Constructs a new ListRegionHealthAggregationPoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionHealthCheckServicesRequest. - * @implements IListRegionHealthCheckServicesRequest + * @classdesc Represents a ListRegionHealthAggregationPoliciesRequest. + * @implements IListRegionHealthAggregationPoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest=} [properties] Properties to set */ - function ListRegionHealthCheckServicesRequest(properties) { + function ListRegionHealthAggregationPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -335948,116 +350374,116 @@ } /** - * ListRegionHealthCheckServicesRequest filter. + * ListRegionHealthAggregationPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.filter = null; + ListRegionHealthAggregationPoliciesRequest.prototype.filter = null; /** - * ListRegionHealthCheckServicesRequest maxResults. + * ListRegionHealthAggregationPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.maxResults = null; + ListRegionHealthAggregationPoliciesRequest.prototype.maxResults = null; /** - * ListRegionHealthCheckServicesRequest orderBy. + * ListRegionHealthAggregationPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.orderBy = null; + ListRegionHealthAggregationPoliciesRequest.prototype.orderBy = null; /** - * ListRegionHealthCheckServicesRequest pageToken. + * ListRegionHealthAggregationPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.pageToken = null; + ListRegionHealthAggregationPoliciesRequest.prototype.pageToken = null; /** - * ListRegionHealthCheckServicesRequest project. + * ListRegionHealthAggregationPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.project = ""; + ListRegionHealthAggregationPoliciesRequest.prototype.project = ""; /** - * ListRegionHealthCheckServicesRequest region. + * ListRegionHealthAggregationPoliciesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.region = ""; + ListRegionHealthAggregationPoliciesRequest.prototype.region = ""; /** - * ListRegionHealthCheckServicesRequest returnPartialSuccess. + * ListRegionHealthAggregationPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @instance */ - ListRegionHealthCheckServicesRequest.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(ListRegionHealthCheckServicesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionHealthAggregationPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionHealthAggregationPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionHealthAggregationPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionHealthAggregationPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionHealthAggregationPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionHealthCheckServicesRequest instance using the specified properties. + * Creates a new ListRegionHealthAggregationPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest instance + * @param {google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest} ListRegionHealthAggregationPoliciesRequest instance */ - ListRegionHealthCheckServicesRequest.create = function create(properties) { - return new ListRegionHealthCheckServicesRequest(properties); + ListRegionHealthAggregationPoliciesRequest.create = function create(properties) { + return new ListRegionHealthAggregationPoliciesRequest(properties); }; /** - * Encodes the specified ListRegionHealthCheckServicesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthCheckServicesRequest.verify|verify} messages. + * Encodes the specified ListRegionHealthAggregationPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest} message ListRegionHealthCheckServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest} message ListRegionHealthAggregationPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionHealthCheckServicesRequest.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")) @@ -336078,33 +350504,33 @@ }; /** - * Encodes the specified ListRegionHealthCheckServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthCheckServicesRequest.verify|verify} messages. + * Encodes the specified ListRegionHealthAggregationPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest} message ListRegionHealthCheckServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest} message ListRegionHealthAggregationPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionHealthCheckServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionHealthAggregationPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionHealthCheckServicesRequest message from the specified reader or buffer. + * Decodes a ListRegionHealthAggregationPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.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.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest + * @returns {google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest} ListRegionHealthAggregationPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionHealthCheckServicesRequest.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.v1.ListRegionHealthCheckServicesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -336147,30 +350573,30 @@ }; /** - * Decodes a ListRegionHealthCheckServicesRequest 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.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest + * @returns {google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest} ListRegionHealthAggregationPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionHealthCheckServicesRequest.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 ListRegionHealthCheckServicesRequest message. + * Verifies a ListRegionHealthAggregationPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionHealthCheckServicesRequest.verify = function verify(message) { + ListRegionHealthAggregationPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -336209,17 +350635,17 @@ }; /** - * Creates a ListRegionHealthCheckServicesRequest 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.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest + * @returns {google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest} ListRegionHealthAggregationPoliciesRequest */ - ListRegionHealthCheckServicesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest) + ListRegionHealthAggregationPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -336238,15 +350664,15 @@ }; /** - * Creates a plain object from a ListRegionHealthCheckServicesRequest 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.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} message ListRegionHealthCheckServicesRequest + * @param {google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest} message ListRegionHealthAggregationPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionHealthCheckServicesRequest.toObject = function toObject(message, options) { + ListRegionHealthAggregationPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -336287,58 +350713,58 @@ }; /** - * Converts this ListRegionHealthCheckServicesRequest to JSON. + * Converts this ListRegionHealthAggregationPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @instance * @returns {Object.} JSON object */ - ListRegionHealthCheckServicesRequest.prototype.toJSON = function toJSON() { + ListRegionHealthAggregationPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionHealthCheckServicesRequest + * Gets the default type url for ListRegionHealthAggregationPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionHealthCheckServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionHealthAggregationPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionHealthCheckServicesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest"; }; - return ListRegionHealthCheckServicesRequest; + return ListRegionHealthAggregationPoliciesRequest; })(); - v1.ListRegionHealthChecksRequest = (function() { + v1.ListRegionHealthCheckServicesRequest = (function() { /** - * Properties of a ListRegionHealthChecksRequest. + * Properties of a ListRegionHealthCheckServicesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionHealthChecksRequest - * @property {string|null} [filter] ListRegionHealthChecksRequest filter - * @property {number|null} [maxResults] ListRegionHealthChecksRequest maxResults - * @property {string|null} [orderBy] ListRegionHealthChecksRequest orderBy - * @property {string|null} [pageToken] ListRegionHealthChecksRequest pageToken - * @property {string|null} [project] ListRegionHealthChecksRequest project - * @property {string|null} [region] ListRegionHealthChecksRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionHealthChecksRequest returnPartialSuccess + * @interface IListRegionHealthCheckServicesRequest + * @property {string|null} [filter] ListRegionHealthCheckServicesRequest filter + * @property {number|null} [maxResults] ListRegionHealthCheckServicesRequest maxResults + * @property {string|null} [orderBy] ListRegionHealthCheckServicesRequest orderBy + * @property {string|null} [pageToken] ListRegionHealthCheckServicesRequest pageToken + * @property {string|null} [project] ListRegionHealthCheckServicesRequest project + * @property {string|null} [region] ListRegionHealthCheckServicesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionHealthCheckServicesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionHealthChecksRequest. + * Constructs a new ListRegionHealthCheckServicesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionHealthChecksRequest. - * @implements IListRegionHealthChecksRequest + * @classdesc Represents a ListRegionHealthCheckServicesRequest. + * @implements IListRegionHealthCheckServicesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest=} [properties] Properties to set */ - function ListRegionHealthChecksRequest(properties) { + function ListRegionHealthCheckServicesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -336346,116 +350772,116 @@ } /** - * ListRegionHealthChecksRequest filter. + * ListRegionHealthCheckServicesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionHealthChecksRequest.prototype.filter = null; + ListRegionHealthCheckServicesRequest.prototype.filter = null; /** - * ListRegionHealthChecksRequest maxResults. + * ListRegionHealthCheckServicesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionHealthChecksRequest.prototype.maxResults = null; + ListRegionHealthCheckServicesRequest.prototype.maxResults = null; /** - * ListRegionHealthChecksRequest orderBy. + * ListRegionHealthCheckServicesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionHealthChecksRequest.prototype.orderBy = null; + ListRegionHealthCheckServicesRequest.prototype.orderBy = null; /** - * ListRegionHealthChecksRequest pageToken. + * ListRegionHealthCheckServicesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionHealthChecksRequest.prototype.pageToken = null; + ListRegionHealthCheckServicesRequest.prototype.pageToken = null; /** - * ListRegionHealthChecksRequest project. + * ListRegionHealthCheckServicesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionHealthChecksRequest.prototype.project = ""; + ListRegionHealthCheckServicesRequest.prototype.project = ""; /** - * ListRegionHealthChecksRequest region. + * ListRegionHealthCheckServicesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionHealthChecksRequest.prototype.region = ""; + ListRegionHealthCheckServicesRequest.prototype.region = ""; /** - * ListRegionHealthChecksRequest returnPartialSuccess. + * ListRegionHealthCheckServicesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionHealthChecksRequest.prototype.returnPartialSuccess = null; + ListRegionHealthCheckServicesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_filter", { + Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionHealthChecksRequest instance using the specified properties. + * Creates a new ListRegionHealthCheckServicesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest instance + * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest instance */ - ListRegionHealthChecksRequest.create = function create(properties) { - return new ListRegionHealthChecksRequest(properties); + ListRegionHealthCheckServicesRequest.create = function create(properties) { + return new ListRegionHealthCheckServicesRequest(properties); }; /** - * Encodes the specified ListRegionHealthChecksRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthChecksRequest.verify|verify} messages. + * Encodes the specified ListRegionHealthCheckServicesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthCheckServicesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest} message ListRegionHealthChecksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest} message ListRegionHealthCheckServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionHealthChecksRequest.encode = function encode(message, writer) { + ListRegionHealthCheckServicesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -336476,33 +350902,33 @@ }; /** - * Encodes the specified ListRegionHealthChecksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthChecksRequest.verify|verify} messages. + * Encodes the specified ListRegionHealthCheckServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthCheckServicesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest} message ListRegionHealthChecksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest} message ListRegionHealthCheckServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionHealthChecksRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionHealthCheckServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionHealthChecksRequest message from the specified reader or buffer. + * Decodes a ListRegionHealthCheckServicesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest + * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionHealthChecksRequest.decode = function decode(reader, length, error) { + ListRegionHealthCheckServicesRequest.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.v1.ListRegionHealthChecksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -336545,30 +350971,30 @@ }; /** - * Decodes a ListRegionHealthChecksRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionHealthCheckServicesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest + * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionHealthChecksRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionHealthCheckServicesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionHealthChecksRequest message. + * Verifies a ListRegionHealthCheckServicesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionHealthChecksRequest.verify = function verify(message) { + ListRegionHealthCheckServicesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -336607,17 +351033,17 @@ }; /** - * Creates a ListRegionHealthChecksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionHealthCheckServicesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest + * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest */ - ListRegionHealthChecksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionHealthChecksRequest) + ListRegionHealthCheckServicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionHealthChecksRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -336636,15 +351062,15 @@ }; /** - * Creates a plain object from a ListRegionHealthChecksRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionHealthCheckServicesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1.ListRegionHealthChecksRequest} message ListRegionHealthChecksRequest + * @param {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} message ListRegionHealthCheckServicesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionHealthChecksRequest.toObject = function toObject(message, options) { + ListRegionHealthCheckServicesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -336685,58 +351111,58 @@ }; /** - * Converts this ListRegionHealthChecksRequest to JSON. + * Converts this ListRegionHealthCheckServicesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance * @returns {Object.} JSON object */ - ListRegionHealthChecksRequest.prototype.toJSON = function toJSON() { + ListRegionHealthCheckServicesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionHealthChecksRequest + * Gets the default type url for ListRegionHealthCheckServicesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionHealthChecksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionHealthCheckServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionHealthChecksRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionHealthCheckServicesRequest"; }; - return ListRegionHealthChecksRequest; + return ListRegionHealthCheckServicesRequest; })(); - v1.ListRegionHealthSourcesRequest = (function() { + v1.ListRegionHealthChecksRequest = (function() { /** - * Properties of a ListRegionHealthSourcesRequest. + * Properties of a ListRegionHealthChecksRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionHealthSourcesRequest - * @property {string|null} [filter] ListRegionHealthSourcesRequest filter - * @property {number|null} [maxResults] ListRegionHealthSourcesRequest maxResults - * @property {string|null} [orderBy] ListRegionHealthSourcesRequest orderBy - * @property {string|null} [pageToken] ListRegionHealthSourcesRequest pageToken - * @property {string|null} [project] ListRegionHealthSourcesRequest project - * @property {string|null} [region] ListRegionHealthSourcesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionHealthSourcesRequest returnPartialSuccess + * @interface IListRegionHealthChecksRequest + * @property {string|null} [filter] ListRegionHealthChecksRequest filter + * @property {number|null} [maxResults] ListRegionHealthChecksRequest maxResults + * @property {string|null} [orderBy] ListRegionHealthChecksRequest orderBy + * @property {string|null} [pageToken] ListRegionHealthChecksRequest pageToken + * @property {string|null} [project] ListRegionHealthChecksRequest project + * @property {string|null} [region] ListRegionHealthChecksRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionHealthChecksRequest returnPartialSuccess */ /** - * Constructs a new ListRegionHealthSourcesRequest. + * Constructs a new ListRegionHealthChecksRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionHealthSourcesRequest. - * @implements IListRegionHealthSourcesRequest + * @classdesc Represents a ListRegionHealthChecksRequest. + * @implements IListRegionHealthChecksRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionHealthSourcesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest=} [properties] Properties to set */ - function ListRegionHealthSourcesRequest(properties) { + function ListRegionHealthChecksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -336744,116 +351170,116 @@ } /** - * ListRegionHealthSourcesRequest filter. + * ListRegionHealthChecksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionHealthSourcesRequest.prototype.filter = null; + ListRegionHealthChecksRequest.prototype.filter = null; /** - * ListRegionHealthSourcesRequest maxResults. + * ListRegionHealthChecksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionHealthSourcesRequest.prototype.maxResults = null; + ListRegionHealthChecksRequest.prototype.maxResults = null; /** - * ListRegionHealthSourcesRequest orderBy. + * ListRegionHealthChecksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionHealthSourcesRequest.prototype.orderBy = null; + ListRegionHealthChecksRequest.prototype.orderBy = null; /** - * ListRegionHealthSourcesRequest pageToken. + * ListRegionHealthChecksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionHealthSourcesRequest.prototype.pageToken = null; + ListRegionHealthChecksRequest.prototype.pageToken = null; /** - * ListRegionHealthSourcesRequest project. + * ListRegionHealthChecksRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionHealthSourcesRequest.prototype.project = ""; + ListRegionHealthChecksRequest.prototype.project = ""; /** - * ListRegionHealthSourcesRequest region. + * ListRegionHealthChecksRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionHealthSourcesRequest.prototype.region = ""; + ListRegionHealthChecksRequest.prototype.region = ""; /** - * ListRegionHealthSourcesRequest returnPartialSuccess. + * ListRegionHealthChecksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionHealthSourcesRequest.prototype.returnPartialSuccess = null; + ListRegionHealthChecksRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthSourcesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthSourcesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthSourcesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthSourcesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthSourcesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionHealthSourcesRequest instance using the specified properties. + * Creates a new ListRegionHealthChecksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthSourcesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionHealthSourcesRequest} ListRegionHealthSourcesRequest instance + * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest instance */ - ListRegionHealthSourcesRequest.create = function create(properties) { - return new ListRegionHealthSourcesRequest(properties); + ListRegionHealthChecksRequest.create = function create(properties) { + return new ListRegionHealthChecksRequest(properties); }; /** - * Encodes the specified ListRegionHealthSourcesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthSourcesRequest.verify|verify} messages. + * Encodes the specified ListRegionHealthChecksRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthChecksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthSourcesRequest} message ListRegionHealthSourcesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest} message ListRegionHealthChecksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionHealthSourcesRequest.encode = function encode(message, writer) { + ListRegionHealthChecksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -336874,33 +351300,33 @@ }; /** - * Encodes the specified ListRegionHealthSourcesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthSourcesRequest.verify|verify} messages. + * Encodes the specified ListRegionHealthChecksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthChecksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthSourcesRequest} message ListRegionHealthSourcesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest} message ListRegionHealthChecksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionHealthSourcesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionHealthChecksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionHealthSourcesRequest message from the specified reader or buffer. + * Decodes a ListRegionHealthChecksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionHealthSourcesRequest} ListRegionHealthSourcesRequest + * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionHealthSourcesRequest.decode = function decode(reader, length, error) { + ListRegionHealthChecksRequest.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.v1.ListRegionHealthSourcesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionHealthChecksRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -336943,30 +351369,30 @@ }; /** - * Decodes a ListRegionHealthSourcesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionHealthChecksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionHealthSourcesRequest} ListRegionHealthSourcesRequest + * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionHealthSourcesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionHealthChecksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionHealthSourcesRequest message. + * Verifies a ListRegionHealthChecksRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionHealthSourcesRequest.verify = function verify(message) { + ListRegionHealthChecksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -337005,17 +351431,17 @@ }; /** - * Creates a ListRegionHealthSourcesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionHealthChecksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionHealthSourcesRequest} ListRegionHealthSourcesRequest + * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest */ - ListRegionHealthSourcesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionHealthSourcesRequest) + ListRegionHealthChecksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionHealthChecksRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionHealthSourcesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionHealthChecksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -337034,15 +351460,15 @@ }; /** - * Creates a plain object from a ListRegionHealthSourcesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionHealthChecksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static - * @param {google.cloud.compute.v1.ListRegionHealthSourcesRequest} message ListRegionHealthSourcesRequest + * @param {google.cloud.compute.v1.ListRegionHealthChecksRequest} message ListRegionHealthChecksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionHealthSourcesRequest.toObject = function toObject(message, options) { + ListRegionHealthChecksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -337083,58 +351509,58 @@ }; /** - * Converts this ListRegionHealthSourcesRequest to JSON. + * Converts this ListRegionHealthChecksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance * @returns {Object.} JSON object */ - ListRegionHealthSourcesRequest.prototype.toJSON = function toJSON() { + ListRegionHealthChecksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionHealthSourcesRequest + * Gets the default type url for ListRegionHealthChecksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionHealthSourcesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionHealthChecksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionHealthSourcesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionHealthChecksRequest"; }; - return ListRegionHealthSourcesRequest; + return ListRegionHealthChecksRequest; })(); - v1.ListRegionInstanceGroupManagersRequest = (function() { + v1.ListRegionHealthSourcesRequest = (function() { /** - * Properties of a ListRegionInstanceGroupManagersRequest. + * Properties of a ListRegionHealthSourcesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionInstanceGroupManagersRequest - * @property {string|null} [filter] ListRegionInstanceGroupManagersRequest filter - * @property {number|null} [maxResults] ListRegionInstanceGroupManagersRequest maxResults - * @property {string|null} [orderBy] ListRegionInstanceGroupManagersRequest orderBy - * @property {string|null} [pageToken] ListRegionInstanceGroupManagersRequest pageToken - * @property {string|null} [project] ListRegionInstanceGroupManagersRequest project - * @property {string|null} [region] ListRegionInstanceGroupManagersRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionInstanceGroupManagersRequest returnPartialSuccess + * @interface IListRegionHealthSourcesRequest + * @property {string|null} [filter] ListRegionHealthSourcesRequest filter + * @property {number|null} [maxResults] ListRegionHealthSourcesRequest maxResults + * @property {string|null} [orderBy] ListRegionHealthSourcesRequest orderBy + * @property {string|null} [pageToken] ListRegionHealthSourcesRequest pageToken + * @property {string|null} [project] ListRegionHealthSourcesRequest project + * @property {string|null} [region] ListRegionHealthSourcesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionHealthSourcesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionInstanceGroupManagersRequest. + * Constructs a new ListRegionHealthSourcesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionInstanceGroupManagersRequest. - * @implements IListRegionInstanceGroupManagersRequest + * @classdesc Represents a ListRegionHealthSourcesRequest. + * @implements IListRegionHealthSourcesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagersRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionHealthSourcesRequest=} [properties] Properties to set */ - function ListRegionInstanceGroupManagersRequest(properties) { + function ListRegionHealthSourcesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -337142,116 +351568,116 @@ } /** - * ListRegionInstanceGroupManagersRequest filter. + * ListRegionHealthSourcesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @instance */ - ListRegionInstanceGroupManagersRequest.prototype.filter = null; + ListRegionHealthSourcesRequest.prototype.filter = null; /** - * ListRegionInstanceGroupManagersRequest maxResults. + * ListRegionHealthSourcesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @instance */ - ListRegionInstanceGroupManagersRequest.prototype.maxResults = null; + ListRegionHealthSourcesRequest.prototype.maxResults = null; /** - * ListRegionInstanceGroupManagersRequest orderBy. + * ListRegionHealthSourcesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @instance */ - ListRegionInstanceGroupManagersRequest.prototype.orderBy = null; + ListRegionHealthSourcesRequest.prototype.orderBy = null; /** - * ListRegionInstanceGroupManagersRequest pageToken. + * ListRegionHealthSourcesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @instance */ - ListRegionInstanceGroupManagersRequest.prototype.pageToken = null; + ListRegionHealthSourcesRequest.prototype.pageToken = null; /** - * ListRegionInstanceGroupManagersRequest project. + * ListRegionHealthSourcesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @instance */ - ListRegionInstanceGroupManagersRequest.prototype.project = ""; + ListRegionHealthSourcesRequest.prototype.project = ""; /** - * ListRegionInstanceGroupManagersRequest region. + * ListRegionHealthSourcesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @instance */ - ListRegionInstanceGroupManagersRequest.prototype.region = ""; + ListRegionHealthSourcesRequest.prototype.region = ""; /** - * ListRegionInstanceGroupManagersRequest returnPartialSuccess. + * ListRegionHealthSourcesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @instance */ - ListRegionInstanceGroupManagersRequest.prototype.returnPartialSuccess = null; + ListRegionHealthSourcesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_filter", { + Object.defineProperty(ListRegionHealthSourcesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionHealthSourcesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionHealthSourcesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionHealthSourcesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionHealthSourcesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionInstanceGroupManagersRequest instance using the specified properties. + * Creates a new ListRegionHealthSourcesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagersRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} ListRegionInstanceGroupManagersRequest instance + * @param {google.cloud.compute.v1.IListRegionHealthSourcesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionHealthSourcesRequest} ListRegionHealthSourcesRequest instance */ - ListRegionInstanceGroupManagersRequest.create = function create(properties) { - return new ListRegionInstanceGroupManagersRequest(properties); + ListRegionHealthSourcesRequest.create = function create(properties) { + return new ListRegionHealthSourcesRequest(properties); }; /** - * Encodes the specified ListRegionInstanceGroupManagersRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest.verify|verify} messages. + * Encodes the specified ListRegionHealthSourcesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthSourcesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagersRequest} message ListRegionInstanceGroupManagersRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionHealthSourcesRequest} message ListRegionHealthSourcesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionInstanceGroupManagersRequest.encode = function encode(message, writer) { + ListRegionHealthSourcesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -337272,33 +351698,33 @@ }; /** - * Encodes the specified ListRegionInstanceGroupManagersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest.verify|verify} messages. + * Encodes the specified ListRegionHealthSourcesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthSourcesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagersRequest} message ListRegionInstanceGroupManagersRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionHealthSourcesRequest} message ListRegionHealthSourcesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionInstanceGroupManagersRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionHealthSourcesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionInstanceGroupManagersRequest message from the specified reader or buffer. + * Decodes a ListRegionHealthSourcesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} ListRegionInstanceGroupManagersRequest + * @returns {google.cloud.compute.v1.ListRegionHealthSourcesRequest} ListRegionHealthSourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionInstanceGroupManagersRequest.decode = function decode(reader, length, error) { + ListRegionHealthSourcesRequest.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.v1.ListRegionInstanceGroupManagersRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionHealthSourcesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -337341,30 +351767,30 @@ }; /** - * Decodes a ListRegionInstanceGroupManagersRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionHealthSourcesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} ListRegionInstanceGroupManagersRequest + * @returns {google.cloud.compute.v1.ListRegionHealthSourcesRequest} ListRegionHealthSourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionInstanceGroupManagersRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionHealthSourcesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionInstanceGroupManagersRequest message. + * Verifies a ListRegionHealthSourcesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionInstanceGroupManagersRequest.verify = function verify(message) { + ListRegionHealthSourcesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -337403,17 +351829,17 @@ }; /** - * Creates a ListRegionInstanceGroupManagersRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionHealthSourcesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} ListRegionInstanceGroupManagersRequest + * @returns {google.cloud.compute.v1.ListRegionHealthSourcesRequest} ListRegionHealthSourcesRequest */ - ListRegionInstanceGroupManagersRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest) + ListRegionHealthSourcesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionHealthSourcesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionHealthSourcesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -337432,15 +351858,15 @@ }; /** - * Creates a plain object from a ListRegionInstanceGroupManagersRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionHealthSourcesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @static - * @param {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} message ListRegionInstanceGroupManagersRequest + * @param {google.cloud.compute.v1.ListRegionHealthSourcesRequest} message ListRegionHealthSourcesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionInstanceGroupManagersRequest.toObject = function toObject(message, options) { + ListRegionHealthSourcesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -337481,58 +351907,59 @@ }; /** - * Converts this ListRegionInstanceGroupManagersRequest to JSON. + * Converts this ListRegionHealthSourcesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @instance * @returns {Object.} JSON object */ - ListRegionInstanceGroupManagersRequest.prototype.toJSON = function toJSON() { + ListRegionHealthSourcesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionInstanceGroupManagersRequest + * Gets the default type url for ListRegionHealthSourcesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionInstanceGroupManagersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionHealthSourcesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionHealthSourcesRequest"; }; - return ListRegionInstanceGroupManagersRequest; + return ListRegionHealthSourcesRequest; })(); - v1.ListRegionInstanceGroupsRequest = (function() { + v1.ListRegionInstanceGroupManagerResizeRequestsRequest = (function() { /** - * Properties of a ListRegionInstanceGroupsRequest. + * Properties of a ListRegionInstanceGroupManagerResizeRequestsRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionInstanceGroupsRequest - * @property {string|null} [filter] ListRegionInstanceGroupsRequest filter - * @property {number|null} [maxResults] ListRegionInstanceGroupsRequest maxResults - * @property {string|null} [orderBy] ListRegionInstanceGroupsRequest orderBy - * @property {string|null} [pageToken] ListRegionInstanceGroupsRequest pageToken - * @property {string|null} [project] ListRegionInstanceGroupsRequest project - * @property {string|null} [region] ListRegionInstanceGroupsRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionInstanceGroupsRequest returnPartialSuccess + * @interface IListRegionInstanceGroupManagerResizeRequestsRequest + * @property {string|null} [filter] ListRegionInstanceGroupManagerResizeRequestsRequest filter + * @property {string|null} [instanceGroupManager] ListRegionInstanceGroupManagerResizeRequestsRequest instanceGroupManager + * @property {number|null} [maxResults] ListRegionInstanceGroupManagerResizeRequestsRequest maxResults + * @property {string|null} [orderBy] ListRegionInstanceGroupManagerResizeRequestsRequest orderBy + * @property {string|null} [pageToken] ListRegionInstanceGroupManagerResizeRequestsRequest pageToken + * @property {string|null} [project] ListRegionInstanceGroupManagerResizeRequestsRequest project + * @property {string|null} [region] ListRegionInstanceGroupManagerResizeRequestsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionInstanceGroupManagerResizeRequestsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionInstanceGroupsRequest. + * Constructs a new ListRegionInstanceGroupManagerResizeRequestsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionInstanceGroupsRequest. - * @implements IListRegionInstanceGroupsRequest + * @classdesc Represents a ListRegionInstanceGroupManagerResizeRequestsRequest. + * @implements IListRegionInstanceGroupManagerResizeRequestsRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionInstanceGroupsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagerResizeRequestsRequest=} [properties] Properties to set */ - function ListRegionInstanceGroupsRequest(properties) { + function ListRegionInstanceGroupManagerResizeRequestsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -337540,116 +351967,124 @@ } /** - * ListRegionInstanceGroupsRequest filter. + * ListRegionInstanceGroupManagerResizeRequestsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest * @instance */ - ListRegionInstanceGroupsRequest.prototype.filter = null; + ListRegionInstanceGroupManagerResizeRequestsRequest.prototype.filter = null; /** - * ListRegionInstanceGroupsRequest maxResults. + * ListRegionInstanceGroupManagerResizeRequestsRequest instanceGroupManager. + * @member {string} instanceGroupManager + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest + * @instance + */ + ListRegionInstanceGroupManagerResizeRequestsRequest.prototype.instanceGroupManager = ""; + + /** + * ListRegionInstanceGroupManagerResizeRequestsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest * @instance */ - ListRegionInstanceGroupsRequest.prototype.maxResults = null; + ListRegionInstanceGroupManagerResizeRequestsRequest.prototype.maxResults = null; /** - * ListRegionInstanceGroupsRequest orderBy. + * ListRegionInstanceGroupManagerResizeRequestsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest * @instance */ - ListRegionInstanceGroupsRequest.prototype.orderBy = null; + ListRegionInstanceGroupManagerResizeRequestsRequest.prototype.orderBy = null; /** - * ListRegionInstanceGroupsRequest pageToken. + * ListRegionInstanceGroupManagerResizeRequestsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest * @instance */ - ListRegionInstanceGroupsRequest.prototype.pageToken = null; + ListRegionInstanceGroupManagerResizeRequestsRequest.prototype.pageToken = null; /** - * ListRegionInstanceGroupsRequest project. + * ListRegionInstanceGroupManagerResizeRequestsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest * @instance */ - ListRegionInstanceGroupsRequest.prototype.project = ""; + ListRegionInstanceGroupManagerResizeRequestsRequest.prototype.project = ""; /** - * ListRegionInstanceGroupsRequest region. + * ListRegionInstanceGroupManagerResizeRequestsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest * @instance */ - ListRegionInstanceGroupsRequest.prototype.region = ""; + ListRegionInstanceGroupManagerResizeRequestsRequest.prototype.region = ""; /** - * ListRegionInstanceGroupsRequest returnPartialSuccess. + * ListRegionInstanceGroupManagerResizeRequestsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest * @instance */ - ListRegionInstanceGroupsRequest.prototype.returnPartialSuccess = null; + ListRegionInstanceGroupManagerResizeRequestsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionInstanceGroupManagerResizeRequestsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionInstanceGroupManagerResizeRequestsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionInstanceGroupManagerResizeRequestsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionInstanceGroupManagerResizeRequestsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionInstanceGroupManagerResizeRequestsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionInstanceGroupsRequest instance using the specified properties. + * Creates a new ListRegionInstanceGroupManagerResizeRequestsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceGroupsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} ListRegionInstanceGroupsRequest instance + * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagerResizeRequestsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest} ListRegionInstanceGroupManagerResizeRequestsRequest instance */ - ListRegionInstanceGroupsRequest.create = function create(properties) { - return new ListRegionInstanceGroupsRequest(properties); + ListRegionInstanceGroupManagerResizeRequestsRequest.create = function create(properties) { + return new ListRegionInstanceGroupManagerResizeRequestsRequest(properties); }; /** - * Encodes the specified ListRegionInstanceGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupsRequest.verify|verify} messages. + * Encodes the specified ListRegionInstanceGroupManagerResizeRequestsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceGroupsRequest} message ListRegionInstanceGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagerResizeRequestsRequest} message ListRegionInstanceGroupManagerResizeRequestsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionInstanceGroupsRequest.encode = function encode(message, writer) { + ListRegionInstanceGroupManagerResizeRequestsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -337662,6 +352097,8 @@ 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.instanceGroupManager != null && Object.hasOwnProperty.call(message, "instanceGroupManager")) + writer.uint32(/* id 249363395, wireType 2 =*/1994907162).string(message.instanceGroupManager); 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")) @@ -337670,33 +352107,33 @@ }; /** - * Encodes the specified ListRegionInstanceGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupsRequest.verify|verify} messages. + * Encodes the specified ListRegionInstanceGroupManagerResizeRequestsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceGroupsRequest} message ListRegionInstanceGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagerResizeRequestsRequest} message ListRegionInstanceGroupManagerResizeRequestsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionInstanceGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionInstanceGroupManagerResizeRequestsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionInstanceGroupsRequest message from the specified reader or buffer. + * Decodes a ListRegionInstanceGroupManagerResizeRequestsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} ListRegionInstanceGroupsRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest} ListRegionInstanceGroupManagerResizeRequestsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionInstanceGroupsRequest.decode = function decode(reader, length, error) { + ListRegionInstanceGroupManagerResizeRequestsRequest.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.v1.ListRegionInstanceGroupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -337706,6 +352143,10 @@ message.filter = reader.string(); break; } + case 249363395: { + message.instanceGroupManager = reader.string(); + break; + } case 54715419: { message.maxResults = reader.uint32(); break; @@ -337739,30 +352180,30 @@ }; /** - * Decodes a ListRegionInstanceGroupsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionInstanceGroupManagerResizeRequestsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} ListRegionInstanceGroupsRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest} ListRegionInstanceGroupManagerResizeRequestsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionInstanceGroupsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionInstanceGroupManagerResizeRequestsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionInstanceGroupsRequest message. + * Verifies a ListRegionInstanceGroupManagerResizeRequestsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionInstanceGroupsRequest.verify = function verify(message) { + ListRegionInstanceGroupManagerResizeRequestsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -337771,6 +352212,9 @@ if (!$util.isString(message.filter)) return "filter: string expected"; } + if (message.instanceGroupManager != null && message.hasOwnProperty("instanceGroupManager")) + if (!$util.isString(message.instanceGroupManager)) + return "instanceGroupManager: string expected"; if (message.maxResults != null && message.hasOwnProperty("maxResults")) { properties._maxResults = 1; if (!$util.isInteger(message.maxResults)) @@ -337801,19 +352245,21 @@ }; /** - * Creates a ListRegionInstanceGroupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionInstanceGroupManagerResizeRequestsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} ListRegionInstanceGroupsRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest} ListRegionInstanceGroupManagerResizeRequestsRequest */ - ListRegionInstanceGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionInstanceGroupsRequest) + ListRegionInstanceGroupManagerResizeRequestsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionInstanceGroupsRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest(); if (object.filter != null) message.filter = String(object.filter); + if (object.instanceGroupManager != null) + message.instanceGroupManager = String(object.instanceGroupManager); if (object.maxResults != null) message.maxResults = object.maxResults >>> 0; if (object.orderBy != null) @@ -337830,21 +352276,22 @@ }; /** - * Creates a plain object from a ListRegionInstanceGroupsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionInstanceGroupManagerResizeRequestsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest * @static - * @param {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} message ListRegionInstanceGroupsRequest + * @param {google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest} message ListRegionInstanceGroupManagerResizeRequestsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionInstanceGroupsRequest.toObject = function toObject(message, options) { + ListRegionInstanceGroupManagerResizeRequestsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.region = ""; object.project = ""; + object.instanceGroupManager = ""; } if (message.pageToken != null && message.hasOwnProperty("pageToken")) { object.pageToken = message.pageToken; @@ -337865,6 +352312,8 @@ } if (message.project != null && message.hasOwnProperty("project")) object.project = message.project; + if (message.instanceGroupManager != null && message.hasOwnProperty("instanceGroupManager")) + object.instanceGroupManager = message.instanceGroupManager; if (message.filter != null && message.hasOwnProperty("filter")) { object.filter = message.filter; if (options.oneofs) @@ -337879,58 +352328,58 @@ }; /** - * Converts this ListRegionInstanceGroupsRequest to JSON. + * Converts this ListRegionInstanceGroupManagerResizeRequestsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest * @instance * @returns {Object.} JSON object */ - ListRegionInstanceGroupsRequest.prototype.toJSON = function toJSON() { + ListRegionInstanceGroupManagerResizeRequestsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionInstanceGroupsRequest + * Gets the default type url for ListRegionInstanceGroupManagerResizeRequestsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionInstanceGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionInstanceGroupManagerResizeRequestsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstanceGroupsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest"; }; - return ListRegionInstanceGroupsRequest; + return ListRegionInstanceGroupManagerResizeRequestsRequest; })(); - v1.ListRegionInstanceTemplatesRequest = (function() { + v1.ListRegionInstanceGroupManagersRequest = (function() { /** - * Properties of a ListRegionInstanceTemplatesRequest. + * Properties of a ListRegionInstanceGroupManagersRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionInstanceTemplatesRequest - * @property {string|null} [filter] ListRegionInstanceTemplatesRequest filter - * @property {number|null} [maxResults] ListRegionInstanceTemplatesRequest maxResults - * @property {string|null} [orderBy] ListRegionInstanceTemplatesRequest orderBy - * @property {string|null} [pageToken] ListRegionInstanceTemplatesRequest pageToken - * @property {string|null} [project] ListRegionInstanceTemplatesRequest project - * @property {string|null} [region] ListRegionInstanceTemplatesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionInstanceTemplatesRequest returnPartialSuccess + * @interface IListRegionInstanceGroupManagersRequest + * @property {string|null} [filter] ListRegionInstanceGroupManagersRequest filter + * @property {number|null} [maxResults] ListRegionInstanceGroupManagersRequest maxResults + * @property {string|null} [orderBy] ListRegionInstanceGroupManagersRequest orderBy + * @property {string|null} [pageToken] ListRegionInstanceGroupManagersRequest pageToken + * @property {string|null} [project] ListRegionInstanceGroupManagersRequest project + * @property {string|null} [region] ListRegionInstanceGroupManagersRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionInstanceGroupManagersRequest returnPartialSuccess */ /** - * Constructs a new ListRegionInstanceTemplatesRequest. + * Constructs a new ListRegionInstanceGroupManagersRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionInstanceTemplatesRequest. - * @implements IListRegionInstanceTemplatesRequest + * @classdesc Represents a ListRegionInstanceGroupManagersRequest. + * @implements IListRegionInstanceGroupManagersRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagersRequest=} [properties] Properties to set */ - function ListRegionInstanceTemplatesRequest(properties) { + function ListRegionInstanceGroupManagersRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -337938,116 +352387,116 @@ } /** - * ListRegionInstanceTemplatesRequest filter. + * ListRegionInstanceGroupManagersRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - ListRegionInstanceTemplatesRequest.prototype.filter = null; + ListRegionInstanceGroupManagersRequest.prototype.filter = null; /** - * ListRegionInstanceTemplatesRequest maxResults. + * ListRegionInstanceGroupManagersRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - ListRegionInstanceTemplatesRequest.prototype.maxResults = null; + ListRegionInstanceGroupManagersRequest.prototype.maxResults = null; /** - * ListRegionInstanceTemplatesRequest orderBy. + * ListRegionInstanceGroupManagersRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - ListRegionInstanceTemplatesRequest.prototype.orderBy = null; + ListRegionInstanceGroupManagersRequest.prototype.orderBy = null; /** - * ListRegionInstanceTemplatesRequest pageToken. + * ListRegionInstanceGroupManagersRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - ListRegionInstanceTemplatesRequest.prototype.pageToken = null; + ListRegionInstanceGroupManagersRequest.prototype.pageToken = null; /** - * ListRegionInstanceTemplatesRequest project. + * ListRegionInstanceGroupManagersRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - ListRegionInstanceTemplatesRequest.prototype.project = ""; + ListRegionInstanceGroupManagersRequest.prototype.project = ""; /** - * ListRegionInstanceTemplatesRequest region. + * ListRegionInstanceGroupManagersRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - ListRegionInstanceTemplatesRequest.prototype.region = ""; + ListRegionInstanceGroupManagersRequest.prototype.region = ""; /** - * ListRegionInstanceTemplatesRequest returnPartialSuccess. + * ListRegionInstanceGroupManagersRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - ListRegionInstanceTemplatesRequest.prototype.returnPartialSuccess = null; + ListRegionInstanceGroupManagersRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionInstanceTemplatesRequest instance using the specified properties. + * Creates a new ListRegionInstanceGroupManagersRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest instance + * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagersRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} ListRegionInstanceGroupManagersRequest instance */ - ListRegionInstanceTemplatesRequest.create = function create(properties) { - return new ListRegionInstanceTemplatesRequest(properties); + ListRegionInstanceGroupManagersRequest.create = function create(properties) { + return new ListRegionInstanceGroupManagersRequest(properties); }; /** - * Encodes the specified ListRegionInstanceTemplatesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceTemplatesRequest.verify|verify} messages. + * Encodes the specified ListRegionInstanceGroupManagersRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest} message ListRegionInstanceTemplatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagersRequest} message ListRegionInstanceGroupManagersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionInstanceTemplatesRequest.encode = function encode(message, writer) { + ListRegionInstanceGroupManagersRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -338068,33 +352517,33 @@ }; /** - * Encodes the specified ListRegionInstanceTemplatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceTemplatesRequest.verify|verify} messages. + * Encodes the specified ListRegionInstanceGroupManagersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest} message ListRegionInstanceTemplatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagersRequest} message ListRegionInstanceGroupManagersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionInstanceTemplatesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionInstanceGroupManagersRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionInstanceTemplatesRequest message from the specified reader or buffer. + * Decodes a ListRegionInstanceGroupManagersRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} ListRegionInstanceGroupManagersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionInstanceTemplatesRequest.decode = function decode(reader, length, error) { + ListRegionInstanceGroupManagersRequest.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.v1.ListRegionInstanceTemplatesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -338137,30 +352586,30 @@ }; /** - * Decodes a ListRegionInstanceTemplatesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionInstanceGroupManagersRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} ListRegionInstanceGroupManagersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionInstanceTemplatesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionInstanceGroupManagersRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionInstanceTemplatesRequest message. + * Verifies a ListRegionInstanceGroupManagersRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionInstanceTemplatesRequest.verify = function verify(message) { + ListRegionInstanceGroupManagersRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -338199,17 +352648,17 @@ }; /** - * Creates a ListRegionInstanceTemplatesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionInstanceGroupManagersRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} ListRegionInstanceGroupManagersRequest */ - ListRegionInstanceTemplatesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest) + ListRegionInstanceGroupManagersRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -338228,15 +352677,15 @@ }; /** - * Creates a plain object from a ListRegionInstanceTemplatesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionInstanceGroupManagersRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static - * @param {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} message ListRegionInstanceTemplatesRequest + * @param {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} message ListRegionInstanceGroupManagersRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionInstanceTemplatesRequest.toObject = function toObject(message, options) { + ListRegionInstanceGroupManagersRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -338277,58 +352726,58 @@ }; /** - * Converts this ListRegionInstanceTemplatesRequest to JSON. + * Converts this ListRegionInstanceGroupManagersRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance * @returns {Object.} JSON object */ - ListRegionInstanceTemplatesRequest.prototype.toJSON = function toJSON() { + ListRegionInstanceGroupManagersRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionInstanceTemplatesRequest + * Gets the default type url for ListRegionInstanceGroupManagersRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionInstanceTemplatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionInstanceGroupManagersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstanceTemplatesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest"; }; - return ListRegionInstanceTemplatesRequest; + return ListRegionInstanceGroupManagersRequest; })(); - v1.ListRegionInstantSnapshotsRequest = (function() { + v1.ListRegionInstanceGroupsRequest = (function() { /** - * Properties of a ListRegionInstantSnapshotsRequest. + * Properties of a ListRegionInstanceGroupsRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionInstantSnapshotsRequest - * @property {string|null} [filter] ListRegionInstantSnapshotsRequest filter - * @property {number|null} [maxResults] ListRegionInstantSnapshotsRequest maxResults - * @property {string|null} [orderBy] ListRegionInstantSnapshotsRequest orderBy - * @property {string|null} [pageToken] ListRegionInstantSnapshotsRequest pageToken - * @property {string|null} [project] ListRegionInstantSnapshotsRequest project - * @property {string|null} [region] ListRegionInstantSnapshotsRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionInstantSnapshotsRequest returnPartialSuccess + * @interface IListRegionInstanceGroupsRequest + * @property {string|null} [filter] ListRegionInstanceGroupsRequest filter + * @property {number|null} [maxResults] ListRegionInstanceGroupsRequest maxResults + * @property {string|null} [orderBy] ListRegionInstanceGroupsRequest orderBy + * @property {string|null} [pageToken] ListRegionInstanceGroupsRequest pageToken + * @property {string|null} [project] ListRegionInstanceGroupsRequest project + * @property {string|null} [region] ListRegionInstanceGroupsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionInstanceGroupsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionInstantSnapshotsRequest. + * Constructs a new ListRegionInstanceGroupsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionInstantSnapshotsRequest. - * @implements IListRegionInstantSnapshotsRequest + * @classdesc Represents a ListRegionInstanceGroupsRequest. + * @implements IListRegionInstanceGroupsRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionInstantSnapshotsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionInstanceGroupsRequest=} [properties] Properties to set */ - function ListRegionInstantSnapshotsRequest(properties) { + function ListRegionInstanceGroupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -338336,116 +352785,116 @@ } /** - * ListRegionInstantSnapshotsRequest filter. + * ListRegionInstanceGroupsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - ListRegionInstantSnapshotsRequest.prototype.filter = null; + ListRegionInstanceGroupsRequest.prototype.filter = null; /** - * ListRegionInstantSnapshotsRequest maxResults. + * ListRegionInstanceGroupsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - ListRegionInstantSnapshotsRequest.prototype.maxResults = null; + ListRegionInstanceGroupsRequest.prototype.maxResults = null; /** - * ListRegionInstantSnapshotsRequest orderBy. + * ListRegionInstanceGroupsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - ListRegionInstantSnapshotsRequest.prototype.orderBy = null; + ListRegionInstanceGroupsRequest.prototype.orderBy = null; /** - * ListRegionInstantSnapshotsRequest pageToken. + * ListRegionInstanceGroupsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - ListRegionInstantSnapshotsRequest.prototype.pageToken = null; + ListRegionInstanceGroupsRequest.prototype.pageToken = null; /** - * ListRegionInstantSnapshotsRequest project. + * ListRegionInstanceGroupsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - ListRegionInstantSnapshotsRequest.prototype.project = ""; + ListRegionInstanceGroupsRequest.prototype.project = ""; /** - * ListRegionInstantSnapshotsRequest region. + * ListRegionInstanceGroupsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - ListRegionInstantSnapshotsRequest.prototype.region = ""; + ListRegionInstanceGroupsRequest.prototype.region = ""; /** - * ListRegionInstantSnapshotsRequest returnPartialSuccess. + * ListRegionInstanceGroupsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - ListRegionInstantSnapshotsRequest.prototype.returnPartialSuccess = null; + ListRegionInstanceGroupsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionInstantSnapshotsRequest instance using the specified properties. + * Creates a new ListRegionInstanceGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstantSnapshotsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionInstantSnapshotsRequest} ListRegionInstantSnapshotsRequest instance + * @param {google.cloud.compute.v1.IListRegionInstanceGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} ListRegionInstanceGroupsRequest instance */ - ListRegionInstantSnapshotsRequest.create = function create(properties) { - return new ListRegionInstantSnapshotsRequest(properties); + ListRegionInstanceGroupsRequest.create = function create(properties) { + return new ListRegionInstanceGroupsRequest(properties); }; /** - * Encodes the specified ListRegionInstantSnapshotsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstantSnapshotsRequest.verify|verify} messages. + * Encodes the specified ListRegionInstanceGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstantSnapshotsRequest} message ListRegionInstantSnapshotsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionInstanceGroupsRequest} message ListRegionInstanceGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionInstantSnapshotsRequest.encode = function encode(message, writer) { + ListRegionInstanceGroupsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -338466,33 +352915,33 @@ }; /** - * Encodes the specified ListRegionInstantSnapshotsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstantSnapshotsRequest.verify|verify} messages. + * Encodes the specified ListRegionInstanceGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstantSnapshotsRequest} message ListRegionInstantSnapshotsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionInstanceGroupsRequest} message ListRegionInstanceGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionInstantSnapshotsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionInstanceGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionInstantSnapshotsRequest message from the specified reader or buffer. + * Decodes a ListRegionInstanceGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionInstantSnapshotsRequest} ListRegionInstantSnapshotsRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} ListRegionInstanceGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionInstantSnapshotsRequest.decode = function decode(reader, length, error) { + ListRegionInstanceGroupsRequest.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.v1.ListRegionInstantSnapshotsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionInstanceGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -338535,30 +352984,30 @@ }; /** - * Decodes a ListRegionInstantSnapshotsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionInstanceGroupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionInstantSnapshotsRequest} ListRegionInstantSnapshotsRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} ListRegionInstanceGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionInstantSnapshotsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionInstanceGroupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionInstantSnapshotsRequest message. + * Verifies a ListRegionInstanceGroupsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionInstantSnapshotsRequest.verify = function verify(message) { + ListRegionInstanceGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -338597,17 +353046,17 @@ }; /** - * Creates a ListRegionInstantSnapshotsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionInstanceGroupsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionInstantSnapshotsRequest} ListRegionInstantSnapshotsRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} ListRegionInstanceGroupsRequest */ - ListRegionInstantSnapshotsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest) + ListRegionInstanceGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionInstanceGroupsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionInstanceGroupsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -338626,15 +353075,15 @@ }; /** - * Creates a plain object from a ListRegionInstantSnapshotsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionInstanceGroupsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static - * @param {google.cloud.compute.v1.ListRegionInstantSnapshotsRequest} message ListRegionInstantSnapshotsRequest + * @param {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} message ListRegionInstanceGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionInstantSnapshotsRequest.toObject = function toObject(message, options) { + ListRegionInstanceGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -338675,58 +353124,58 @@ }; /** - * Converts this ListRegionInstantSnapshotsRequest to JSON. + * Converts this ListRegionInstanceGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance * @returns {Object.} JSON object */ - ListRegionInstantSnapshotsRequest.prototype.toJSON = function toJSON() { + ListRegionInstanceGroupsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionInstantSnapshotsRequest + * Gets the default type url for ListRegionInstanceGroupsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionInstantSnapshotsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionInstanceGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstantSnapshotsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstanceGroupsRequest"; }; - return ListRegionInstantSnapshotsRequest; + return ListRegionInstanceGroupsRequest; })(); - v1.ListRegionNetworkEndpointGroupsRequest = (function() { + v1.ListRegionInstanceTemplatesRequest = (function() { /** - * Properties of a ListRegionNetworkEndpointGroupsRequest. + * Properties of a ListRegionInstanceTemplatesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionNetworkEndpointGroupsRequest - * @property {string|null} [filter] ListRegionNetworkEndpointGroupsRequest filter - * @property {number|null} [maxResults] ListRegionNetworkEndpointGroupsRequest maxResults - * @property {string|null} [orderBy] ListRegionNetworkEndpointGroupsRequest orderBy - * @property {string|null} [pageToken] ListRegionNetworkEndpointGroupsRequest pageToken - * @property {string|null} [project] ListRegionNetworkEndpointGroupsRequest project - * @property {string|null} [region] ListRegionNetworkEndpointGroupsRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionNetworkEndpointGroupsRequest returnPartialSuccess + * @interface IListRegionInstanceTemplatesRequest + * @property {string|null} [filter] ListRegionInstanceTemplatesRequest filter + * @property {number|null} [maxResults] ListRegionInstanceTemplatesRequest maxResults + * @property {string|null} [orderBy] ListRegionInstanceTemplatesRequest orderBy + * @property {string|null} [pageToken] ListRegionInstanceTemplatesRequest pageToken + * @property {string|null} [project] ListRegionInstanceTemplatesRequest project + * @property {string|null} [region] ListRegionInstanceTemplatesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionInstanceTemplatesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionNetworkEndpointGroupsRequest. + * Constructs a new ListRegionInstanceTemplatesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionNetworkEndpointGroupsRequest. - * @implements IListRegionNetworkEndpointGroupsRequest + * @classdesc Represents a ListRegionInstanceTemplatesRequest. + * @implements IListRegionInstanceTemplatesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest=} [properties] Properties to set */ - function ListRegionNetworkEndpointGroupsRequest(properties) { + function ListRegionInstanceTemplatesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -338734,116 +353183,116 @@ } /** - * ListRegionNetworkEndpointGroupsRequest filter. + * ListRegionInstanceTemplatesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.filter = null; + ListRegionInstanceTemplatesRequest.prototype.filter = null; /** - * ListRegionNetworkEndpointGroupsRequest maxResults. + * ListRegionInstanceTemplatesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.maxResults = null; + ListRegionInstanceTemplatesRequest.prototype.maxResults = null; /** - * ListRegionNetworkEndpointGroupsRequest orderBy. + * ListRegionInstanceTemplatesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.orderBy = null; + ListRegionInstanceTemplatesRequest.prototype.orderBy = null; /** - * ListRegionNetworkEndpointGroupsRequest pageToken. + * ListRegionInstanceTemplatesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.pageToken = null; + ListRegionInstanceTemplatesRequest.prototype.pageToken = null; /** - * ListRegionNetworkEndpointGroupsRequest project. + * ListRegionInstanceTemplatesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.project = ""; + ListRegionInstanceTemplatesRequest.prototype.project = ""; /** - * ListRegionNetworkEndpointGroupsRequest region. + * ListRegionInstanceTemplatesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.region = ""; + ListRegionInstanceTemplatesRequest.prototype.region = ""; /** - * ListRegionNetworkEndpointGroupsRequest returnPartialSuccess. + * ListRegionInstanceTemplatesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.returnPartialSuccess = null; + ListRegionInstanceTemplatesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionNetworkEndpointGroupsRequest instance using the specified properties. + * Creates a new ListRegionInstanceTemplatesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest instance + * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest instance */ - ListRegionNetworkEndpointGroupsRequest.create = function create(properties) { - return new ListRegionNetworkEndpointGroupsRequest(properties); + ListRegionInstanceTemplatesRequest.create = function create(properties) { + return new ListRegionInstanceTemplatesRequest(properties); }; /** - * Encodes the specified ListRegionNetworkEndpointGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest.verify|verify} messages. + * Encodes the specified ListRegionInstanceTemplatesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceTemplatesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest} message ListRegionNetworkEndpointGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest} message ListRegionInstanceTemplatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNetworkEndpointGroupsRequest.encode = function encode(message, writer) { + ListRegionInstanceTemplatesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -338864,33 +353313,33 @@ }; /** - * Encodes the specified ListRegionNetworkEndpointGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest.verify|verify} messages. + * Encodes the specified ListRegionInstanceTemplatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceTemplatesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest} message ListRegionNetworkEndpointGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest} message ListRegionInstanceTemplatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNetworkEndpointGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionInstanceTemplatesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionNetworkEndpointGroupsRequest message from the specified reader or buffer. + * Decodes a ListRegionInstanceTemplatesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNetworkEndpointGroupsRequest.decode = function decode(reader, length, error) { + ListRegionInstanceTemplatesRequest.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.v1.ListRegionNetworkEndpointGroupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -338933,30 +353382,30 @@ }; /** - * Decodes a ListRegionNetworkEndpointGroupsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionInstanceTemplatesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNetworkEndpointGroupsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionInstanceTemplatesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionNetworkEndpointGroupsRequest message. + * Verifies a ListRegionInstanceTemplatesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionNetworkEndpointGroupsRequest.verify = function verify(message) { + ListRegionInstanceTemplatesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -338995,17 +353444,17 @@ }; /** - * Creates a ListRegionNetworkEndpointGroupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionInstanceTemplatesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest */ - ListRegionNetworkEndpointGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest) + ListRegionInstanceTemplatesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -339024,15 +353473,15 @@ }; /** - * Creates a plain object from a ListRegionNetworkEndpointGroupsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionInstanceTemplatesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} message ListRegionNetworkEndpointGroupsRequest + * @param {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} message ListRegionInstanceTemplatesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionNetworkEndpointGroupsRequest.toObject = function toObject(message, options) { + ListRegionInstanceTemplatesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -339073,58 +353522,58 @@ }; /** - * Converts this ListRegionNetworkEndpointGroupsRequest to JSON. + * Converts this ListRegionInstanceTemplatesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance * @returns {Object.} JSON object */ - ListRegionNetworkEndpointGroupsRequest.prototype.toJSON = function toJSON() { + ListRegionInstanceTemplatesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionNetworkEndpointGroupsRequest + * Gets the default type url for ListRegionInstanceTemplatesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionNetworkEndpointGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionInstanceTemplatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstanceTemplatesRequest"; }; - return ListRegionNetworkEndpointGroupsRequest; + return ListRegionInstanceTemplatesRequest; })(); - v1.ListRegionNetworkFirewallPoliciesRequest = (function() { + v1.ListRegionInstantSnapshotGroupsRequest = (function() { /** - * Properties of a ListRegionNetworkFirewallPoliciesRequest. + * Properties of a ListRegionInstantSnapshotGroupsRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionNetworkFirewallPoliciesRequest - * @property {string|null} [filter] ListRegionNetworkFirewallPoliciesRequest filter - * @property {number|null} [maxResults] ListRegionNetworkFirewallPoliciesRequest maxResults - * @property {string|null} [orderBy] ListRegionNetworkFirewallPoliciesRequest orderBy - * @property {string|null} [pageToken] ListRegionNetworkFirewallPoliciesRequest pageToken - * @property {string|null} [project] ListRegionNetworkFirewallPoliciesRequest project - * @property {string|null} [region] ListRegionNetworkFirewallPoliciesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionNetworkFirewallPoliciesRequest returnPartialSuccess + * @interface IListRegionInstantSnapshotGroupsRequest + * @property {string|null} [filter] ListRegionInstantSnapshotGroupsRequest filter + * @property {number|null} [maxResults] ListRegionInstantSnapshotGroupsRequest maxResults + * @property {string|null} [orderBy] ListRegionInstantSnapshotGroupsRequest orderBy + * @property {string|null} [pageToken] ListRegionInstantSnapshotGroupsRequest pageToken + * @property {string|null} [project] ListRegionInstantSnapshotGroupsRequest project + * @property {string|null} [region] ListRegionInstantSnapshotGroupsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionInstantSnapshotGroupsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionNetworkFirewallPoliciesRequest. + * Constructs a new ListRegionInstantSnapshotGroupsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionNetworkFirewallPoliciesRequest. - * @implements IListRegionNetworkFirewallPoliciesRequest + * @classdesc Represents a ListRegionInstantSnapshotGroupsRequest. + * @implements IListRegionInstantSnapshotGroupsRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionInstantSnapshotGroupsRequest=} [properties] Properties to set */ - function ListRegionNetworkFirewallPoliciesRequest(properties) { + function ListRegionInstantSnapshotGroupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -339132,116 +353581,116 @@ } /** - * ListRegionNetworkFirewallPoliciesRequest filter. + * ListRegionInstantSnapshotGroupsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.filter = null; + ListRegionInstantSnapshotGroupsRequest.prototype.filter = null; /** - * ListRegionNetworkFirewallPoliciesRequest maxResults. + * ListRegionInstantSnapshotGroupsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.maxResults = null; + ListRegionInstantSnapshotGroupsRequest.prototype.maxResults = null; /** - * ListRegionNetworkFirewallPoliciesRequest orderBy. + * ListRegionInstantSnapshotGroupsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.orderBy = null; + ListRegionInstantSnapshotGroupsRequest.prototype.orderBy = null; /** - * ListRegionNetworkFirewallPoliciesRequest pageToken. + * ListRegionInstantSnapshotGroupsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.pageToken = null; + ListRegionInstantSnapshotGroupsRequest.prototype.pageToken = null; /** - * ListRegionNetworkFirewallPoliciesRequest project. + * ListRegionInstantSnapshotGroupsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.project = ""; + ListRegionInstantSnapshotGroupsRequest.prototype.project = ""; /** - * ListRegionNetworkFirewallPoliciesRequest region. + * ListRegionInstantSnapshotGroupsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.region = ""; + ListRegionInstantSnapshotGroupsRequest.prototype.region = ""; /** - * ListRegionNetworkFirewallPoliciesRequest returnPartialSuccess. + * ListRegionInstantSnapshotGroupsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.returnPartialSuccess = null; + ListRegionInstantSnapshotGroupsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionInstantSnapshotGroupsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionInstantSnapshotGroupsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionInstantSnapshotGroupsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionInstantSnapshotGroupsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionInstantSnapshotGroupsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionNetworkFirewallPoliciesRequest instance using the specified properties. + * Creates a new ListRegionInstantSnapshotGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest * @static - * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest instance + * @param {google.cloud.compute.v1.IListRegionInstantSnapshotGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest} ListRegionInstantSnapshotGroupsRequest instance */ - ListRegionNetworkFirewallPoliciesRequest.create = function create(properties) { - return new ListRegionNetworkFirewallPoliciesRequest(properties); + ListRegionInstantSnapshotGroupsRequest.create = function create(properties) { + return new ListRegionInstantSnapshotGroupsRequest(properties); }; /** - * Encodes the specified ListRegionNetworkFirewallPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionInstantSnapshotGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest * @static - * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest} message ListRegionNetworkFirewallPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionInstantSnapshotGroupsRequest} message ListRegionInstantSnapshotGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNetworkFirewallPoliciesRequest.encode = function encode(message, writer) { + ListRegionInstantSnapshotGroupsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -339262,33 +353711,33 @@ }; /** - * Encodes the specified ListRegionNetworkFirewallPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionInstantSnapshotGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest * @static - * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest} message ListRegionNetworkFirewallPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionInstantSnapshotGroupsRequest} message ListRegionInstantSnapshotGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNetworkFirewallPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionInstantSnapshotGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionNetworkFirewallPoliciesRequest message from the specified reader or buffer. + * Decodes a ListRegionInstantSnapshotGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest} ListRegionInstantSnapshotGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNetworkFirewallPoliciesRequest.decode = function decode(reader, length, error) { + ListRegionInstantSnapshotGroupsRequest.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.v1.ListRegionNetworkFirewallPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -339331,30 +353780,30 @@ }; /** - * Decodes a ListRegionNetworkFirewallPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionInstantSnapshotGroupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest} ListRegionInstantSnapshotGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNetworkFirewallPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionInstantSnapshotGroupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionNetworkFirewallPoliciesRequest message. + * Verifies a ListRegionInstantSnapshotGroupsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionNetworkFirewallPoliciesRequest.verify = function verify(message) { + ListRegionInstantSnapshotGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -339393,17 +353842,17 @@ }; /** - * Creates a ListRegionNetworkFirewallPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionInstantSnapshotGroupsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest} ListRegionInstantSnapshotGroupsRequest */ - ListRegionNetworkFirewallPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest) + ListRegionInstantSnapshotGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -339422,15 +353871,15 @@ }; /** - * Creates a plain object from a ListRegionNetworkFirewallPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionInstantSnapshotGroupsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest * @static - * @param {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} message ListRegionNetworkFirewallPoliciesRequest + * @param {google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest} message ListRegionInstantSnapshotGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionNetworkFirewallPoliciesRequest.toObject = function toObject(message, options) { + ListRegionInstantSnapshotGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -339471,58 +353920,58 @@ }; /** - * Converts this ListRegionNetworkFirewallPoliciesRequest to JSON. + * Converts this ListRegionInstantSnapshotGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest * @instance * @returns {Object.} JSON object */ - ListRegionNetworkFirewallPoliciesRequest.prototype.toJSON = function toJSON() { + ListRegionInstantSnapshotGroupsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionNetworkFirewallPoliciesRequest + * Gets the default type url for ListRegionInstantSnapshotGroupsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionNetworkFirewallPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionInstantSnapshotGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest"; }; - return ListRegionNetworkFirewallPoliciesRequest; + return ListRegionInstantSnapshotGroupsRequest; })(); - v1.ListRegionNotificationEndpointsRequest = (function() { + v1.ListRegionInstantSnapshotsRequest = (function() { /** - * Properties of a ListRegionNotificationEndpointsRequest. + * Properties of a ListRegionInstantSnapshotsRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionNotificationEndpointsRequest - * @property {string|null} [filter] ListRegionNotificationEndpointsRequest filter - * @property {number|null} [maxResults] ListRegionNotificationEndpointsRequest maxResults - * @property {string|null} [orderBy] ListRegionNotificationEndpointsRequest orderBy - * @property {string|null} [pageToken] ListRegionNotificationEndpointsRequest pageToken - * @property {string|null} [project] ListRegionNotificationEndpointsRequest project - * @property {string|null} [region] ListRegionNotificationEndpointsRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionNotificationEndpointsRequest returnPartialSuccess + * @interface IListRegionInstantSnapshotsRequest + * @property {string|null} [filter] ListRegionInstantSnapshotsRequest filter + * @property {number|null} [maxResults] ListRegionInstantSnapshotsRequest maxResults + * @property {string|null} [orderBy] ListRegionInstantSnapshotsRequest orderBy + * @property {string|null} [pageToken] ListRegionInstantSnapshotsRequest pageToken + * @property {string|null} [project] ListRegionInstantSnapshotsRequest project + * @property {string|null} [region] ListRegionInstantSnapshotsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionInstantSnapshotsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionNotificationEndpointsRequest. + * Constructs a new ListRegionInstantSnapshotsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionNotificationEndpointsRequest. - * @implements IListRegionNotificationEndpointsRequest + * @classdesc Represents a ListRegionInstantSnapshotsRequest. + * @implements IListRegionInstantSnapshotsRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionInstantSnapshotsRequest=} [properties] Properties to set */ - function ListRegionNotificationEndpointsRequest(properties) { + function ListRegionInstantSnapshotsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -339530,116 +353979,116 @@ } /** - * ListRegionNotificationEndpointsRequest filter. + * ListRegionInstantSnapshotsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.filter = null; + ListRegionInstantSnapshotsRequest.prototype.filter = null; /** - * ListRegionNotificationEndpointsRequest maxResults. + * ListRegionInstantSnapshotsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.maxResults = null; + ListRegionInstantSnapshotsRequest.prototype.maxResults = null; /** - * ListRegionNotificationEndpointsRequest orderBy. + * ListRegionInstantSnapshotsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.orderBy = null; + ListRegionInstantSnapshotsRequest.prototype.orderBy = null; /** - * ListRegionNotificationEndpointsRequest pageToken. + * ListRegionInstantSnapshotsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.pageToken = null; + ListRegionInstantSnapshotsRequest.prototype.pageToken = null; /** - * ListRegionNotificationEndpointsRequest project. + * ListRegionInstantSnapshotsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.project = ""; + ListRegionInstantSnapshotsRequest.prototype.project = ""; /** - * ListRegionNotificationEndpointsRequest region. + * ListRegionInstantSnapshotsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.region = ""; + ListRegionInstantSnapshotsRequest.prototype.region = ""; /** - * ListRegionNotificationEndpointsRequest returnPartialSuccess. + * ListRegionInstantSnapshotsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.returnPartialSuccess = null; + ListRegionInstantSnapshotsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionNotificationEndpointsRequest instance using the specified properties. + * Creates a new ListRegionInstantSnapshotsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @static - * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest instance + * @param {google.cloud.compute.v1.IListRegionInstantSnapshotsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionInstantSnapshotsRequest} ListRegionInstantSnapshotsRequest instance */ - ListRegionNotificationEndpointsRequest.create = function create(properties) { - return new ListRegionNotificationEndpointsRequest(properties); + ListRegionInstantSnapshotsRequest.create = function create(properties) { + return new ListRegionInstantSnapshotsRequest(properties); }; /** - * Encodes the specified ListRegionNotificationEndpointsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionNotificationEndpointsRequest.verify|verify} messages. + * Encodes the specified ListRegionInstantSnapshotsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstantSnapshotsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @static - * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest} message ListRegionNotificationEndpointsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionInstantSnapshotsRequest} message ListRegionInstantSnapshotsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNotificationEndpointsRequest.encode = function encode(message, writer) { + ListRegionInstantSnapshotsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -339660,33 +354109,33 @@ }; /** - * Encodes the specified ListRegionNotificationEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionNotificationEndpointsRequest.verify|verify} messages. + * Encodes the specified ListRegionInstantSnapshotsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstantSnapshotsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @static - * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest} message ListRegionNotificationEndpointsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionInstantSnapshotsRequest} message ListRegionInstantSnapshotsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNotificationEndpointsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionInstantSnapshotsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionNotificationEndpointsRequest message from the specified reader or buffer. + * Decodes a ListRegionInstantSnapshotsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest + * @returns {google.cloud.compute.v1.ListRegionInstantSnapshotsRequest} ListRegionInstantSnapshotsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNotificationEndpointsRequest.decode = function decode(reader, length, error) { + ListRegionInstantSnapshotsRequest.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.v1.ListRegionNotificationEndpointsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -339729,30 +354178,30 @@ }; /** - * Decodes a ListRegionNotificationEndpointsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionInstantSnapshotsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest + * @returns {google.cloud.compute.v1.ListRegionInstantSnapshotsRequest} ListRegionInstantSnapshotsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNotificationEndpointsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionInstantSnapshotsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionNotificationEndpointsRequest message. + * Verifies a ListRegionInstantSnapshotsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionNotificationEndpointsRequest.verify = function verify(message) { + ListRegionInstantSnapshotsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -339791,17 +354240,17 @@ }; /** - * Creates a ListRegionNotificationEndpointsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionInstantSnapshotsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest + * @returns {google.cloud.compute.v1.ListRegionInstantSnapshotsRequest} ListRegionInstantSnapshotsRequest */ - ListRegionNotificationEndpointsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionNotificationEndpointsRequest) + ListRegionInstantSnapshotsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionNotificationEndpointsRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -339820,15 +354269,15 @@ }; /** - * Creates a plain object from a ListRegionNotificationEndpointsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionInstantSnapshotsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @static - * @param {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} message ListRegionNotificationEndpointsRequest + * @param {google.cloud.compute.v1.ListRegionInstantSnapshotsRequest} message ListRegionInstantSnapshotsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionNotificationEndpointsRequest.toObject = function toObject(message, options) { + ListRegionInstantSnapshotsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -339869,58 +354318,58 @@ }; /** - * Converts this ListRegionNotificationEndpointsRequest to JSON. + * Converts this ListRegionInstantSnapshotsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @instance * @returns {Object.} JSON object */ - ListRegionNotificationEndpointsRequest.prototype.toJSON = function toJSON() { + ListRegionInstantSnapshotsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionNotificationEndpointsRequest + * Gets the default type url for ListRegionInstantSnapshotsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionNotificationEndpointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionInstantSnapshotsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionNotificationEndpointsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstantSnapshotsRequest"; }; - return ListRegionNotificationEndpointsRequest; + return ListRegionInstantSnapshotsRequest; })(); - v1.ListRegionOperationsRequest = (function() { + v1.ListRegionNetworkEndpointGroupsRequest = (function() { /** - * Properties of a ListRegionOperationsRequest. + * Properties of a ListRegionNetworkEndpointGroupsRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionOperationsRequest - * @property {string|null} [filter] ListRegionOperationsRequest filter - * @property {number|null} [maxResults] ListRegionOperationsRequest maxResults - * @property {string|null} [orderBy] ListRegionOperationsRequest orderBy - * @property {string|null} [pageToken] ListRegionOperationsRequest pageToken - * @property {string|null} [project] ListRegionOperationsRequest project - * @property {string|null} [region] ListRegionOperationsRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionOperationsRequest returnPartialSuccess + * @interface IListRegionNetworkEndpointGroupsRequest + * @property {string|null} [filter] ListRegionNetworkEndpointGroupsRequest filter + * @property {number|null} [maxResults] ListRegionNetworkEndpointGroupsRequest maxResults + * @property {string|null} [orderBy] ListRegionNetworkEndpointGroupsRequest orderBy + * @property {string|null} [pageToken] ListRegionNetworkEndpointGroupsRequest pageToken + * @property {string|null} [project] ListRegionNetworkEndpointGroupsRequest project + * @property {string|null} [region] ListRegionNetworkEndpointGroupsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionNetworkEndpointGroupsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionOperationsRequest. + * Constructs a new ListRegionNetworkEndpointGroupsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionOperationsRequest. - * @implements IListRegionOperationsRequest + * @classdesc Represents a ListRegionNetworkEndpointGroupsRequest. + * @implements IListRegionNetworkEndpointGroupsRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionOperationsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest=} [properties] Properties to set */ - function ListRegionOperationsRequest(properties) { + function ListRegionNetworkEndpointGroupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -339928,116 +354377,116 @@ } /** - * ListRegionOperationsRequest filter. + * ListRegionNetworkEndpointGroupsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionOperationsRequest.prototype.filter = null; + ListRegionNetworkEndpointGroupsRequest.prototype.filter = null; /** - * ListRegionOperationsRequest maxResults. + * ListRegionNetworkEndpointGroupsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionOperationsRequest.prototype.maxResults = null; + ListRegionNetworkEndpointGroupsRequest.prototype.maxResults = null; /** - * ListRegionOperationsRequest orderBy. + * ListRegionNetworkEndpointGroupsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionOperationsRequest.prototype.orderBy = null; + ListRegionNetworkEndpointGroupsRequest.prototype.orderBy = null; /** - * ListRegionOperationsRequest pageToken. + * ListRegionNetworkEndpointGroupsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionOperationsRequest.prototype.pageToken = null; + ListRegionNetworkEndpointGroupsRequest.prototype.pageToken = null; /** - * ListRegionOperationsRequest project. + * ListRegionNetworkEndpointGroupsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionOperationsRequest.prototype.project = ""; + ListRegionNetworkEndpointGroupsRequest.prototype.project = ""; /** - * ListRegionOperationsRequest region. + * ListRegionNetworkEndpointGroupsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionOperationsRequest.prototype.region = ""; + ListRegionNetworkEndpointGroupsRequest.prototype.region = ""; /** - * ListRegionOperationsRequest returnPartialSuccess. + * ListRegionNetworkEndpointGroupsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionOperationsRequest.prototype.returnPartialSuccess = null; + ListRegionNetworkEndpointGroupsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionOperationsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionOperationsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionOperationsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionOperationsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionOperationsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionOperationsRequest instance using the specified properties. + * Creates a new ListRegionNetworkEndpointGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.IListRegionOperationsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest instance + * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest instance */ - ListRegionOperationsRequest.create = function create(properties) { - return new ListRegionOperationsRequest(properties); + ListRegionNetworkEndpointGroupsRequest.create = function create(properties) { + return new ListRegionNetworkEndpointGroupsRequest(properties); }; /** - * Encodes the specified ListRegionOperationsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionOperationsRequest.verify|verify} messages. + * Encodes the specified ListRegionNetworkEndpointGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.IListRegionOperationsRequest} message ListRegionOperationsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest} message ListRegionNetworkEndpointGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionOperationsRequest.encode = function encode(message, writer) { + ListRegionNetworkEndpointGroupsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -340058,33 +354507,33 @@ }; /** - * Encodes the specified ListRegionOperationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionOperationsRequest.verify|verify} messages. + * Encodes the specified ListRegionNetworkEndpointGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.IListRegionOperationsRequest} message ListRegionOperationsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest} message ListRegionNetworkEndpointGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionOperationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionNetworkEndpointGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionOperationsRequest message from the specified reader or buffer. + * Decodes a ListRegionNetworkEndpointGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest + * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionOperationsRequest.decode = function decode(reader, length, error) { + ListRegionNetworkEndpointGroupsRequest.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.v1.ListRegionOperationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -340127,30 +354576,30 @@ }; /** - * Decodes a ListRegionOperationsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionNetworkEndpointGroupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest + * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionOperationsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionNetworkEndpointGroupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionOperationsRequest message. + * Verifies a ListRegionNetworkEndpointGroupsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionOperationsRequest.verify = function verify(message) { + ListRegionNetworkEndpointGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -340189,17 +354638,17 @@ }; /** - * Creates a ListRegionOperationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionNetworkEndpointGroupsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest + * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest */ - ListRegionOperationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionOperationsRequest) + ListRegionNetworkEndpointGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionOperationsRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -340218,15 +354667,15 @@ }; /** - * Creates a plain object from a ListRegionOperationsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionNetworkEndpointGroupsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.ListRegionOperationsRequest} message ListRegionOperationsRequest + * @param {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} message ListRegionNetworkEndpointGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionOperationsRequest.toObject = function toObject(message, options) { + ListRegionNetworkEndpointGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -340267,58 +354716,58 @@ }; /** - * Converts this ListRegionOperationsRequest to JSON. + * Converts this ListRegionNetworkEndpointGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance * @returns {Object.} JSON object */ - ListRegionOperationsRequest.prototype.toJSON = function toJSON() { + ListRegionNetworkEndpointGroupsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionOperationsRequest + * Gets the default type url for ListRegionNetworkEndpointGroupsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionOperationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionNetworkEndpointGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionOperationsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest"; }; - return ListRegionOperationsRequest; + return ListRegionNetworkEndpointGroupsRequest; })(); - v1.ListRegionSecurityPoliciesRequest = (function() { + v1.ListRegionNetworkFirewallPoliciesRequest = (function() { /** - * Properties of a ListRegionSecurityPoliciesRequest. + * Properties of a ListRegionNetworkFirewallPoliciesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionSecurityPoliciesRequest - * @property {string|null} [filter] ListRegionSecurityPoliciesRequest filter - * @property {number|null} [maxResults] ListRegionSecurityPoliciesRequest maxResults - * @property {string|null} [orderBy] ListRegionSecurityPoliciesRequest orderBy - * @property {string|null} [pageToken] ListRegionSecurityPoliciesRequest pageToken - * @property {string|null} [project] ListRegionSecurityPoliciesRequest project - * @property {string|null} [region] ListRegionSecurityPoliciesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionSecurityPoliciesRequest returnPartialSuccess + * @interface IListRegionNetworkFirewallPoliciesRequest + * @property {string|null} [filter] ListRegionNetworkFirewallPoliciesRequest filter + * @property {number|null} [maxResults] ListRegionNetworkFirewallPoliciesRequest maxResults + * @property {string|null} [orderBy] ListRegionNetworkFirewallPoliciesRequest orderBy + * @property {string|null} [pageToken] ListRegionNetworkFirewallPoliciesRequest pageToken + * @property {string|null} [project] ListRegionNetworkFirewallPoliciesRequest project + * @property {string|null} [region] ListRegionNetworkFirewallPoliciesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionNetworkFirewallPoliciesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionSecurityPoliciesRequest. + * Constructs a new ListRegionNetworkFirewallPoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionSecurityPoliciesRequest. - * @implements IListRegionSecurityPoliciesRequest + * @classdesc Represents a ListRegionNetworkFirewallPoliciesRequest. + * @implements IListRegionNetworkFirewallPoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest=} [properties] Properties to set */ - function ListRegionSecurityPoliciesRequest(properties) { + function ListRegionNetworkFirewallPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -340326,116 +354775,116 @@ } /** - * ListRegionSecurityPoliciesRequest filter. + * ListRegionNetworkFirewallPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.filter = null; + ListRegionNetworkFirewallPoliciesRequest.prototype.filter = null; /** - * ListRegionSecurityPoliciesRequest maxResults. + * ListRegionNetworkFirewallPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.maxResults = null; + ListRegionNetworkFirewallPoliciesRequest.prototype.maxResults = null; /** - * ListRegionSecurityPoliciesRequest orderBy. + * ListRegionNetworkFirewallPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.orderBy = null; + ListRegionNetworkFirewallPoliciesRequest.prototype.orderBy = null; /** - * ListRegionSecurityPoliciesRequest pageToken. + * ListRegionNetworkFirewallPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.pageToken = null; + ListRegionNetworkFirewallPoliciesRequest.prototype.pageToken = null; /** - * ListRegionSecurityPoliciesRequest project. + * ListRegionNetworkFirewallPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.project = ""; + ListRegionNetworkFirewallPoliciesRequest.prototype.project = ""; /** - * ListRegionSecurityPoliciesRequest region. + * ListRegionNetworkFirewallPoliciesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.region = ""; + ListRegionNetworkFirewallPoliciesRequest.prototype.region = ""; /** - * ListRegionSecurityPoliciesRequest returnPartialSuccess. + * ListRegionNetworkFirewallPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.returnPartialSuccess = null; + ListRegionNetworkFirewallPoliciesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionSecurityPoliciesRequest instance using the specified properties. + * Creates a new ListRegionNetworkFirewallPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest instance + * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest instance */ - ListRegionSecurityPoliciesRequest.create = function create(properties) { - return new ListRegionSecurityPoliciesRequest(properties); + ListRegionNetworkFirewallPoliciesRequest.create = function create(properties) { + return new ListRegionNetworkFirewallPoliciesRequest(properties); }; /** - * Encodes the specified ListRegionSecurityPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionSecurityPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionNetworkFirewallPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest} message ListRegionSecurityPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest} message ListRegionNetworkFirewallPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSecurityPoliciesRequest.encode = function encode(message, writer) { + ListRegionNetworkFirewallPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -340456,33 +354905,33 @@ }; /** - * Encodes the specified ListRegionSecurityPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionSecurityPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionNetworkFirewallPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest} message ListRegionSecurityPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest} message ListRegionNetworkFirewallPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSecurityPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionNetworkFirewallPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionSecurityPoliciesRequest message from the specified reader or buffer. + * Decodes a ListRegionNetworkFirewallPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSecurityPoliciesRequest.decode = function decode(reader, length, error) { + ListRegionNetworkFirewallPoliciesRequest.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.v1.ListRegionSecurityPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -340525,30 +354974,30 @@ }; /** - * Decodes a ListRegionSecurityPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionNetworkFirewallPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSecurityPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionNetworkFirewallPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionSecurityPoliciesRequest message. + * Verifies a ListRegionNetworkFirewallPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionSecurityPoliciesRequest.verify = function verify(message) { + ListRegionNetworkFirewallPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -340587,17 +355036,17 @@ }; /** - * Creates a ListRegionSecurityPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionNetworkFirewallPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest */ - ListRegionSecurityPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionSecurityPoliciesRequest) + ListRegionNetworkFirewallPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionSecurityPoliciesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -340616,15 +355065,15 @@ }; /** - * Creates a plain object from a ListRegionSecurityPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionNetworkFirewallPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} message ListRegionSecurityPoliciesRequest + * @param {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} message ListRegionNetworkFirewallPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionSecurityPoliciesRequest.toObject = function toObject(message, options) { + ListRegionNetworkFirewallPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -340665,58 +355114,58 @@ }; /** - * Converts this ListRegionSecurityPoliciesRequest to JSON. + * Converts this ListRegionNetworkFirewallPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance * @returns {Object.} JSON object */ - ListRegionSecurityPoliciesRequest.prototype.toJSON = function toJSON() { + ListRegionNetworkFirewallPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionSecurityPoliciesRequest + * Gets the default type url for ListRegionNetworkFirewallPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionSecurityPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionNetworkFirewallPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionSecurityPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest"; }; - return ListRegionSecurityPoliciesRequest; + return ListRegionNetworkFirewallPoliciesRequest; })(); - v1.ListRegionSslCertificatesRequest = (function() { + v1.ListRegionNotificationEndpointsRequest = (function() { /** - * Properties of a ListRegionSslCertificatesRequest. + * Properties of a ListRegionNotificationEndpointsRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionSslCertificatesRequest - * @property {string|null} [filter] ListRegionSslCertificatesRequest filter - * @property {number|null} [maxResults] ListRegionSslCertificatesRequest maxResults - * @property {string|null} [orderBy] ListRegionSslCertificatesRequest orderBy - * @property {string|null} [pageToken] ListRegionSslCertificatesRequest pageToken - * @property {string|null} [project] ListRegionSslCertificatesRequest project - * @property {string|null} [region] ListRegionSslCertificatesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionSslCertificatesRequest returnPartialSuccess + * @interface IListRegionNotificationEndpointsRequest + * @property {string|null} [filter] ListRegionNotificationEndpointsRequest filter + * @property {number|null} [maxResults] ListRegionNotificationEndpointsRequest maxResults + * @property {string|null} [orderBy] ListRegionNotificationEndpointsRequest orderBy + * @property {string|null} [pageToken] ListRegionNotificationEndpointsRequest pageToken + * @property {string|null} [project] ListRegionNotificationEndpointsRequest project + * @property {string|null} [region] ListRegionNotificationEndpointsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionNotificationEndpointsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionSslCertificatesRequest. + * Constructs a new ListRegionNotificationEndpointsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionSslCertificatesRequest. - * @implements IListRegionSslCertificatesRequest + * @classdesc Represents a ListRegionNotificationEndpointsRequest. + * @implements IListRegionNotificationEndpointsRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest=} [properties] Properties to set */ - function ListRegionSslCertificatesRequest(properties) { + function ListRegionNotificationEndpointsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -340724,116 +355173,116 @@ } /** - * ListRegionSslCertificatesRequest filter. + * ListRegionNotificationEndpointsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.filter = null; + ListRegionNotificationEndpointsRequest.prototype.filter = null; /** - * ListRegionSslCertificatesRequest maxResults. + * ListRegionNotificationEndpointsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.maxResults = null; + ListRegionNotificationEndpointsRequest.prototype.maxResults = null; /** - * ListRegionSslCertificatesRequest orderBy. + * ListRegionNotificationEndpointsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.orderBy = null; + ListRegionNotificationEndpointsRequest.prototype.orderBy = null; /** - * ListRegionSslCertificatesRequest pageToken. + * ListRegionNotificationEndpointsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.pageToken = null; + ListRegionNotificationEndpointsRequest.prototype.pageToken = null; /** - * ListRegionSslCertificatesRequest project. + * ListRegionNotificationEndpointsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.project = ""; + ListRegionNotificationEndpointsRequest.prototype.project = ""; /** - * ListRegionSslCertificatesRequest region. + * ListRegionNotificationEndpointsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.region = ""; + ListRegionNotificationEndpointsRequest.prototype.region = ""; /** - * ListRegionSslCertificatesRequest returnPartialSuccess. + * ListRegionNotificationEndpointsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.returnPartialSuccess = null; + ListRegionNotificationEndpointsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionSslCertificatesRequest instance using the specified properties. + * Creates a new ListRegionNotificationEndpointsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest instance + * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest instance */ - ListRegionSslCertificatesRequest.create = function create(properties) { - return new ListRegionSslCertificatesRequest(properties); + ListRegionNotificationEndpointsRequest.create = function create(properties) { + return new ListRegionNotificationEndpointsRequest(properties); }; /** - * Encodes the specified ListRegionSslCertificatesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslCertificatesRequest.verify|verify} messages. + * Encodes the specified ListRegionNotificationEndpointsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionNotificationEndpointsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest} message ListRegionSslCertificatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest} message ListRegionNotificationEndpointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSslCertificatesRequest.encode = function encode(message, writer) { + ListRegionNotificationEndpointsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -340854,33 +355303,33 @@ }; /** - * Encodes the specified ListRegionSslCertificatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslCertificatesRequest.verify|verify} messages. + * Encodes the specified ListRegionNotificationEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionNotificationEndpointsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest} message ListRegionSslCertificatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest} message ListRegionNotificationEndpointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSslCertificatesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionNotificationEndpointsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionSslCertificatesRequest message from the specified reader or buffer. + * Decodes a ListRegionNotificationEndpointsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest + * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSslCertificatesRequest.decode = function decode(reader, length, error) { + ListRegionNotificationEndpointsRequest.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.v1.ListRegionSslCertificatesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionNotificationEndpointsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -340923,30 +355372,30 @@ }; /** - * Decodes a ListRegionSslCertificatesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionNotificationEndpointsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest + * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSslCertificatesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionNotificationEndpointsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionSslCertificatesRequest message. + * Verifies a ListRegionNotificationEndpointsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionSslCertificatesRequest.verify = function verify(message) { + ListRegionNotificationEndpointsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -340985,17 +355434,17 @@ }; /** - * Creates a ListRegionSslCertificatesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionNotificationEndpointsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest + * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest */ - ListRegionSslCertificatesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionSslCertificatesRequest) + ListRegionNotificationEndpointsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionNotificationEndpointsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionSslCertificatesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionNotificationEndpointsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -341014,15 +355463,15 @@ }; /** - * Creates a plain object from a ListRegionSslCertificatesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionNotificationEndpointsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1.ListRegionSslCertificatesRequest} message ListRegionSslCertificatesRequest + * @param {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} message ListRegionNotificationEndpointsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionSslCertificatesRequest.toObject = function toObject(message, options) { + ListRegionNotificationEndpointsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -341063,58 +355512,58 @@ }; /** - * Converts this ListRegionSslCertificatesRequest to JSON. + * Converts this ListRegionNotificationEndpointsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance * @returns {Object.} JSON object */ - ListRegionSslCertificatesRequest.prototype.toJSON = function toJSON() { + ListRegionNotificationEndpointsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionSslCertificatesRequest + * Gets the default type url for ListRegionNotificationEndpointsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionSslCertificatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionNotificationEndpointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionSslCertificatesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionNotificationEndpointsRequest"; }; - return ListRegionSslCertificatesRequest; + return ListRegionNotificationEndpointsRequest; })(); - v1.ListRegionSslPoliciesRequest = (function() { + v1.ListRegionOperationsRequest = (function() { /** - * Properties of a ListRegionSslPoliciesRequest. + * Properties of a ListRegionOperationsRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionSslPoliciesRequest - * @property {string|null} [filter] ListRegionSslPoliciesRequest filter - * @property {number|null} [maxResults] ListRegionSslPoliciesRequest maxResults - * @property {string|null} [orderBy] ListRegionSslPoliciesRequest orderBy - * @property {string|null} [pageToken] ListRegionSslPoliciesRequest pageToken - * @property {string|null} [project] ListRegionSslPoliciesRequest project - * @property {string|null} [region] ListRegionSslPoliciesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionSslPoliciesRequest returnPartialSuccess + * @interface IListRegionOperationsRequest + * @property {string|null} [filter] ListRegionOperationsRequest filter + * @property {number|null} [maxResults] ListRegionOperationsRequest maxResults + * @property {string|null} [orderBy] ListRegionOperationsRequest orderBy + * @property {string|null} [pageToken] ListRegionOperationsRequest pageToken + * @property {string|null} [project] ListRegionOperationsRequest project + * @property {string|null} [region] ListRegionOperationsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionOperationsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionSslPoliciesRequest. + * Constructs a new ListRegionOperationsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionSslPoliciesRequest. - * @implements IListRegionSslPoliciesRequest + * @classdesc Represents a ListRegionOperationsRequest. + * @implements IListRegionOperationsRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionOperationsRequest=} [properties] Properties to set */ - function ListRegionSslPoliciesRequest(properties) { + function ListRegionOperationsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -341122,116 +355571,116 @@ } /** - * ListRegionSslPoliciesRequest filter. + * ListRegionOperationsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.filter = null; + ListRegionOperationsRequest.prototype.filter = null; /** - * ListRegionSslPoliciesRequest maxResults. + * ListRegionOperationsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.maxResults = null; + ListRegionOperationsRequest.prototype.maxResults = null; /** - * ListRegionSslPoliciesRequest orderBy. + * ListRegionOperationsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.orderBy = null; + ListRegionOperationsRequest.prototype.orderBy = null; /** - * ListRegionSslPoliciesRequest pageToken. + * ListRegionOperationsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.pageToken = null; + ListRegionOperationsRequest.prototype.pageToken = null; /** - * ListRegionSslPoliciesRequest project. + * ListRegionOperationsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.project = ""; + ListRegionOperationsRequest.prototype.project = ""; /** - * ListRegionSslPoliciesRequest region. + * ListRegionOperationsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.region = ""; + ListRegionOperationsRequest.prototype.region = ""; /** - * ListRegionSslPoliciesRequest returnPartialSuccess. + * ListRegionOperationsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.returnPartialSuccess = null; + ListRegionOperationsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionOperationsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionOperationsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionOperationsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionOperationsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionOperationsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionSslPoliciesRequest instance using the specified properties. + * Creates a new ListRegionOperationsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static - * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest instance + * @param {google.cloud.compute.v1.IListRegionOperationsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest instance */ - ListRegionSslPoliciesRequest.create = function create(properties) { - return new ListRegionSslPoliciesRequest(properties); + ListRegionOperationsRequest.create = function create(properties) { + return new ListRegionOperationsRequest(properties); }; /** - * Encodes the specified ListRegionSslPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionOperationsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionOperationsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static - * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest} message ListRegionSslPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionOperationsRequest} message ListRegionOperationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSslPoliciesRequest.encode = function encode(message, writer) { + ListRegionOperationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -341252,33 +355701,33 @@ }; /** - * Encodes the specified ListRegionSslPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionOperationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionOperationsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static - * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest} message ListRegionSslPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionOperationsRequest} message ListRegionOperationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSslPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionOperationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionSslPoliciesRequest message from the specified reader or buffer. + * Decodes a ListRegionOperationsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSslPoliciesRequest.decode = function decode(reader, length, error) { + ListRegionOperationsRequest.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.v1.ListRegionSslPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionOperationsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -341321,30 +355770,30 @@ }; /** - * Decodes a ListRegionSslPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionOperationsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSslPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionOperationsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionSslPoliciesRequest message. + * Verifies a ListRegionOperationsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionSslPoliciesRequest.verify = function verify(message) { + ListRegionOperationsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -341383,17 +355832,17 @@ }; /** - * Creates a ListRegionSslPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionOperationsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest */ - ListRegionSslPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionSslPoliciesRequest) + ListRegionOperationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionOperationsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionSslPoliciesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionOperationsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -341412,15 +355861,15 @@ }; /** - * Creates a plain object from a ListRegionSslPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionOperationsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static - * @param {google.cloud.compute.v1.ListRegionSslPoliciesRequest} message ListRegionSslPoliciesRequest + * @param {google.cloud.compute.v1.ListRegionOperationsRequest} message ListRegionOperationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionSslPoliciesRequest.toObject = function toObject(message, options) { + ListRegionOperationsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -341461,58 +355910,58 @@ }; /** - * Converts this ListRegionSslPoliciesRequest to JSON. + * Converts this ListRegionOperationsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance * @returns {Object.} JSON object */ - ListRegionSslPoliciesRequest.prototype.toJSON = function toJSON() { + ListRegionOperationsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionSslPoliciesRequest + * Gets the default type url for ListRegionOperationsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionSslPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionOperationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionSslPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionOperationsRequest"; }; - return ListRegionSslPoliciesRequest; + return ListRegionOperationsRequest; })(); - v1.ListRegionTargetHttpProxiesRequest = (function() { + v1.ListRegionSecurityPoliciesRequest = (function() { /** - * Properties of a ListRegionTargetHttpProxiesRequest. + * Properties of a ListRegionSecurityPoliciesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionTargetHttpProxiesRequest - * @property {string|null} [filter] ListRegionTargetHttpProxiesRequest filter - * @property {number|null} [maxResults] ListRegionTargetHttpProxiesRequest maxResults - * @property {string|null} [orderBy] ListRegionTargetHttpProxiesRequest orderBy - * @property {string|null} [pageToken] ListRegionTargetHttpProxiesRequest pageToken - * @property {string|null} [project] ListRegionTargetHttpProxiesRequest project - * @property {string|null} [region] ListRegionTargetHttpProxiesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionTargetHttpProxiesRequest returnPartialSuccess + * @interface IListRegionSecurityPoliciesRequest + * @property {string|null} [filter] ListRegionSecurityPoliciesRequest filter + * @property {number|null} [maxResults] ListRegionSecurityPoliciesRequest maxResults + * @property {string|null} [orderBy] ListRegionSecurityPoliciesRequest orderBy + * @property {string|null} [pageToken] ListRegionSecurityPoliciesRequest pageToken + * @property {string|null} [project] ListRegionSecurityPoliciesRequest project + * @property {string|null} [region] ListRegionSecurityPoliciesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionSecurityPoliciesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionTargetHttpProxiesRequest. + * Constructs a new ListRegionSecurityPoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionTargetHttpProxiesRequest. - * @implements IListRegionTargetHttpProxiesRequest + * @classdesc Represents a ListRegionSecurityPoliciesRequest. + * @implements IListRegionSecurityPoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest=} [properties] Properties to set */ - function ListRegionTargetHttpProxiesRequest(properties) { + function ListRegionSecurityPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -341520,116 +355969,116 @@ } /** - * ListRegionTargetHttpProxiesRequest filter. + * ListRegionSecurityPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.filter = null; + ListRegionSecurityPoliciesRequest.prototype.filter = null; /** - * ListRegionTargetHttpProxiesRequest maxResults. + * ListRegionSecurityPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.maxResults = null; + ListRegionSecurityPoliciesRequest.prototype.maxResults = null; /** - * ListRegionTargetHttpProxiesRequest orderBy. + * ListRegionSecurityPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.orderBy = null; + ListRegionSecurityPoliciesRequest.prototype.orderBy = null; /** - * ListRegionTargetHttpProxiesRequest pageToken. + * ListRegionSecurityPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.pageToken = null; + ListRegionSecurityPoliciesRequest.prototype.pageToken = null; /** - * ListRegionTargetHttpProxiesRequest project. + * ListRegionSecurityPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.project = ""; + ListRegionSecurityPoliciesRequest.prototype.project = ""; /** - * ListRegionTargetHttpProxiesRequest region. + * ListRegionSecurityPoliciesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.region = ""; + ListRegionSecurityPoliciesRequest.prototype.region = ""; /** - * ListRegionTargetHttpProxiesRequest returnPartialSuccess. + * ListRegionSecurityPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.returnPartialSuccess = null; + ListRegionSecurityPoliciesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionTargetHttpProxiesRequest instance using the specified properties. + * Creates a new ListRegionSecurityPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest instance + * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest instance */ - ListRegionTargetHttpProxiesRequest.create = function create(properties) { - return new ListRegionTargetHttpProxiesRequest(properties); + ListRegionSecurityPoliciesRequest.create = function create(properties) { + return new ListRegionSecurityPoliciesRequest(properties); }; /** - * Encodes the specified ListRegionTargetHttpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest.verify|verify} messages. + * Encodes the specified ListRegionSecurityPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionSecurityPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest} message ListRegionTargetHttpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest} message ListRegionSecurityPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionTargetHttpProxiesRequest.encode = function encode(message, writer) { + ListRegionSecurityPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -341650,33 +356099,33 @@ }; /** - * Encodes the specified ListRegionTargetHttpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest.verify|verify} messages. + * Encodes the specified ListRegionSecurityPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionSecurityPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest} message ListRegionTargetHttpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest} message ListRegionSecurityPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionTargetHttpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionSecurityPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionTargetHttpProxiesRequest message from the specified reader or buffer. + * Decodes a ListRegionSecurityPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionTargetHttpProxiesRequest.decode = function decode(reader, length, error) { + ListRegionSecurityPoliciesRequest.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.v1.ListRegionTargetHttpProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionSecurityPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -341719,30 +356168,30 @@ }; /** - * Decodes a ListRegionTargetHttpProxiesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionSecurityPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionTargetHttpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionSecurityPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionTargetHttpProxiesRequest message. + * Verifies a ListRegionSecurityPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionTargetHttpProxiesRequest.verify = function verify(message) { + ListRegionSecurityPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -341781,17 +356230,17 @@ }; /** - * Creates a ListRegionTargetHttpProxiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionSecurityPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest */ - ListRegionTargetHttpProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest) + ListRegionSecurityPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionSecurityPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionSecurityPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -341810,15 +356259,15 @@ }; /** - * Creates a plain object from a ListRegionTargetHttpProxiesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionSecurityPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} message ListRegionTargetHttpProxiesRequest + * @param {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} message ListRegionSecurityPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionTargetHttpProxiesRequest.toObject = function toObject(message, options) { + ListRegionSecurityPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -341859,58 +356308,58 @@ }; /** - * Converts this ListRegionTargetHttpProxiesRequest to JSON. + * Converts this ListRegionSecurityPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance * @returns {Object.} JSON object */ - ListRegionTargetHttpProxiesRequest.prototype.toJSON = function toJSON() { + ListRegionSecurityPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionTargetHttpProxiesRequest + * Gets the default type url for ListRegionSecurityPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionTargetHttpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionSecurityPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionSecurityPoliciesRequest"; }; - return ListRegionTargetHttpProxiesRequest; + return ListRegionSecurityPoliciesRequest; })(); - v1.ListRegionTargetHttpsProxiesRequest = (function() { + v1.ListRegionSnapshotsRequest = (function() { /** - * Properties of a ListRegionTargetHttpsProxiesRequest. + * Properties of a ListRegionSnapshotsRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionTargetHttpsProxiesRequest - * @property {string|null} [filter] ListRegionTargetHttpsProxiesRequest filter - * @property {number|null} [maxResults] ListRegionTargetHttpsProxiesRequest maxResults - * @property {string|null} [orderBy] ListRegionTargetHttpsProxiesRequest orderBy - * @property {string|null} [pageToken] ListRegionTargetHttpsProxiesRequest pageToken - * @property {string|null} [project] ListRegionTargetHttpsProxiesRequest project - * @property {string|null} [region] ListRegionTargetHttpsProxiesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionTargetHttpsProxiesRequest returnPartialSuccess + * @interface IListRegionSnapshotsRequest + * @property {string|null} [filter] ListRegionSnapshotsRequest filter + * @property {number|null} [maxResults] ListRegionSnapshotsRequest maxResults + * @property {string|null} [orderBy] ListRegionSnapshotsRequest orderBy + * @property {string|null} [pageToken] ListRegionSnapshotsRequest pageToken + * @property {string|null} [project] ListRegionSnapshotsRequest project + * @property {string|null} [region] ListRegionSnapshotsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionSnapshotsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionTargetHttpsProxiesRequest. + * Constructs a new ListRegionSnapshotsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionTargetHttpsProxiesRequest. - * @implements IListRegionTargetHttpsProxiesRequest + * @classdesc Represents a ListRegionSnapshotsRequest. + * @implements IListRegionSnapshotsRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionSnapshotsRequest=} [properties] Properties to set */ - function ListRegionTargetHttpsProxiesRequest(properties) { + function ListRegionSnapshotsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -341918,116 +356367,116 @@ } /** - * ListRegionTargetHttpsProxiesRequest filter. + * ListRegionSnapshotsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSnapshotsRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.filter = null; + ListRegionSnapshotsRequest.prototype.filter = null; /** - * ListRegionTargetHttpsProxiesRequest maxResults. + * ListRegionSnapshotsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSnapshotsRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.maxResults = null; + ListRegionSnapshotsRequest.prototype.maxResults = null; /** - * ListRegionTargetHttpsProxiesRequest orderBy. + * ListRegionSnapshotsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSnapshotsRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.orderBy = null; + ListRegionSnapshotsRequest.prototype.orderBy = null; /** - * ListRegionTargetHttpsProxiesRequest pageToken. + * ListRegionSnapshotsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSnapshotsRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.pageToken = null; + ListRegionSnapshotsRequest.prototype.pageToken = null; /** - * ListRegionTargetHttpsProxiesRequest project. + * ListRegionSnapshotsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSnapshotsRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.project = ""; + ListRegionSnapshotsRequest.prototype.project = ""; /** - * ListRegionTargetHttpsProxiesRequest region. + * ListRegionSnapshotsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSnapshotsRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.region = ""; + ListRegionSnapshotsRequest.prototype.region = ""; /** - * ListRegionTargetHttpsProxiesRequest returnPartialSuccess. + * ListRegionSnapshotsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSnapshotsRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.returnPartialSuccess = null; + ListRegionSnapshotsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionSnapshotsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionSnapshotsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionSnapshotsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionSnapshotsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionSnapshotsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionTargetHttpsProxiesRequest instance using the specified properties. + * Creates a new ListRegionSnapshotsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSnapshotsRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest instance + * @param {google.cloud.compute.v1.IListRegionSnapshotsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionSnapshotsRequest} ListRegionSnapshotsRequest instance */ - ListRegionTargetHttpsProxiesRequest.create = function create(properties) { - return new ListRegionTargetHttpsProxiesRequest(properties); + ListRegionSnapshotsRequest.create = function create(properties) { + return new ListRegionSnapshotsRequest(properties); }; /** - * Encodes the specified ListRegionTargetHttpsProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest.verify|verify} messages. + * Encodes the specified ListRegionSnapshotsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionSnapshotsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSnapshotsRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest} message ListRegionTargetHttpsProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionSnapshotsRequest} message ListRegionSnapshotsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionTargetHttpsProxiesRequest.encode = function encode(message, writer) { + ListRegionSnapshotsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -342048,33 +356497,33 @@ }; /** - * Encodes the specified ListRegionTargetHttpsProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest.verify|verify} messages. + * Encodes the specified ListRegionSnapshotsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionSnapshotsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSnapshotsRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest} message ListRegionTargetHttpsProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionSnapshotsRequest} message ListRegionSnapshotsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionTargetHttpsProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionSnapshotsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionTargetHttpsProxiesRequest message from the specified reader or buffer. + * Decodes a ListRegionSnapshotsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSnapshotsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionSnapshotsRequest} ListRegionSnapshotsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionTargetHttpsProxiesRequest.decode = function decode(reader, length, error) { + ListRegionSnapshotsRequest.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.v1.ListRegionTargetHttpsProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionSnapshotsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -342117,30 +356566,30 @@ }; /** - * Decodes a ListRegionTargetHttpsProxiesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionSnapshotsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSnapshotsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionSnapshotsRequest} ListRegionSnapshotsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionTargetHttpsProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionSnapshotsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionTargetHttpsProxiesRequest message. + * Verifies a ListRegionSnapshotsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSnapshotsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionTargetHttpsProxiesRequest.verify = function verify(message) { + ListRegionSnapshotsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -342179,17 +356628,17 @@ }; /** - * Creates a ListRegionTargetHttpsProxiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionSnapshotsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSnapshotsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionSnapshotsRequest} ListRegionSnapshotsRequest */ - ListRegionTargetHttpsProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest) + ListRegionSnapshotsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionSnapshotsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionSnapshotsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -342208,15 +356657,15 @@ }; /** - * Creates a plain object from a ListRegionTargetHttpsProxiesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionSnapshotsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSnapshotsRequest * @static - * @param {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} message ListRegionTargetHttpsProxiesRequest + * @param {google.cloud.compute.v1.ListRegionSnapshotsRequest} message ListRegionSnapshotsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionTargetHttpsProxiesRequest.toObject = function toObject(message, options) { + ListRegionSnapshotsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -342257,58 +356706,58 @@ }; /** - * Converts this ListRegionTargetHttpsProxiesRequest to JSON. + * Converts this ListRegionSnapshotsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSnapshotsRequest * @instance * @returns {Object.} JSON object */ - ListRegionTargetHttpsProxiesRequest.prototype.toJSON = function toJSON() { + ListRegionSnapshotsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionTargetHttpsProxiesRequest + * Gets the default type url for ListRegionSnapshotsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSnapshotsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionTargetHttpsProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionSnapshotsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionSnapshotsRequest"; }; - return ListRegionTargetHttpsProxiesRequest; + return ListRegionSnapshotsRequest; })(); - v1.ListRegionTargetTcpProxiesRequest = (function() { + v1.ListRegionSslCertificatesRequest = (function() { /** - * Properties of a ListRegionTargetTcpProxiesRequest. + * Properties of a ListRegionSslCertificatesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionTargetTcpProxiesRequest - * @property {string|null} [filter] ListRegionTargetTcpProxiesRequest filter - * @property {number|null} [maxResults] ListRegionTargetTcpProxiesRequest maxResults - * @property {string|null} [orderBy] ListRegionTargetTcpProxiesRequest orderBy - * @property {string|null} [pageToken] ListRegionTargetTcpProxiesRequest pageToken - * @property {string|null} [project] ListRegionTargetTcpProxiesRequest project - * @property {string|null} [region] ListRegionTargetTcpProxiesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionTargetTcpProxiesRequest returnPartialSuccess + * @interface IListRegionSslCertificatesRequest + * @property {string|null} [filter] ListRegionSslCertificatesRequest filter + * @property {number|null} [maxResults] ListRegionSslCertificatesRequest maxResults + * @property {string|null} [orderBy] ListRegionSslCertificatesRequest orderBy + * @property {string|null} [pageToken] ListRegionSslCertificatesRequest pageToken + * @property {string|null} [project] ListRegionSslCertificatesRequest project + * @property {string|null} [region] ListRegionSslCertificatesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionSslCertificatesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionTargetTcpProxiesRequest. + * Constructs a new ListRegionSslCertificatesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionTargetTcpProxiesRequest. - * @implements IListRegionTargetTcpProxiesRequest + * @classdesc Represents a ListRegionSslCertificatesRequest. + * @implements IListRegionSslCertificatesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest=} [properties] Properties to set */ - function ListRegionTargetTcpProxiesRequest(properties) { + function ListRegionSslCertificatesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -342316,116 +356765,116 @@ } /** - * ListRegionTargetTcpProxiesRequest filter. + * ListRegionSslCertificatesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.filter = null; + ListRegionSslCertificatesRequest.prototype.filter = null; /** - * ListRegionTargetTcpProxiesRequest maxResults. + * ListRegionSslCertificatesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.maxResults = null; + ListRegionSslCertificatesRequest.prototype.maxResults = null; /** - * ListRegionTargetTcpProxiesRequest orderBy. + * ListRegionSslCertificatesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.orderBy = null; + ListRegionSslCertificatesRequest.prototype.orderBy = null; /** - * ListRegionTargetTcpProxiesRequest pageToken. + * ListRegionSslCertificatesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.pageToken = null; + ListRegionSslCertificatesRequest.prototype.pageToken = null; /** - * ListRegionTargetTcpProxiesRequest project. + * ListRegionSslCertificatesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.project = ""; + ListRegionSslCertificatesRequest.prototype.project = ""; /** - * ListRegionTargetTcpProxiesRequest region. + * ListRegionSslCertificatesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.region = ""; + ListRegionSslCertificatesRequest.prototype.region = ""; /** - * ListRegionTargetTcpProxiesRequest returnPartialSuccess. + * ListRegionSslCertificatesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.returnPartialSuccess = null; + ListRegionSslCertificatesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionTargetTcpProxiesRequest instance using the specified properties. + * Creates a new ListRegionSslCertificatesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest instance + * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest instance */ - ListRegionTargetTcpProxiesRequest.create = function create(properties) { - return new ListRegionTargetTcpProxiesRequest(properties); + ListRegionSslCertificatesRequest.create = function create(properties) { + return new ListRegionSslCertificatesRequest(properties); }; /** - * Encodes the specified ListRegionTargetTcpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest.verify|verify} messages. + * Encodes the specified ListRegionSslCertificatesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslCertificatesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest} message ListRegionTargetTcpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest} message ListRegionSslCertificatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionTargetTcpProxiesRequest.encode = function encode(message, writer) { + ListRegionSslCertificatesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -342446,33 +356895,33 @@ }; /** - * Encodes the specified ListRegionTargetTcpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest.verify|verify} messages. + * Encodes the specified ListRegionSslCertificatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslCertificatesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest} message ListRegionTargetTcpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest} message ListRegionSslCertificatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionTargetTcpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionSslCertificatesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionTargetTcpProxiesRequest message from the specified reader or buffer. + * Decodes a ListRegionSslCertificatesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionTargetTcpProxiesRequest.decode = function decode(reader, length, error) { + ListRegionSslCertificatesRequest.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.v1.ListRegionTargetTcpProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionSslCertificatesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -342515,30 +356964,30 @@ }; /** - * Decodes a ListRegionTargetTcpProxiesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionSslCertificatesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionTargetTcpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionSslCertificatesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionTargetTcpProxiesRequest message. + * Verifies a ListRegionSslCertificatesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionTargetTcpProxiesRequest.verify = function verify(message) { + ListRegionSslCertificatesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -342577,17 +357026,17 @@ }; /** - * Creates a ListRegionTargetTcpProxiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionSslCertificatesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest */ - ListRegionTargetTcpProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest) + ListRegionSslCertificatesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionSslCertificatesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionSslCertificatesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -342606,15 +357055,15 @@ }; /** - * Creates a plain object from a ListRegionTargetTcpProxiesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionSslCertificatesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} message ListRegionTargetTcpProxiesRequest + * @param {google.cloud.compute.v1.ListRegionSslCertificatesRequest} message ListRegionSslCertificatesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionTargetTcpProxiesRequest.toObject = function toObject(message, options) { + ListRegionSslCertificatesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -342655,58 +357104,58 @@ }; /** - * Converts this ListRegionTargetTcpProxiesRequest to JSON. + * Converts this ListRegionSslCertificatesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance * @returns {Object.} JSON object */ - ListRegionTargetTcpProxiesRequest.prototype.toJSON = function toJSON() { + ListRegionSslCertificatesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionTargetTcpProxiesRequest + * Gets the default type url for ListRegionSslCertificatesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionTargetTcpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionSslCertificatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionSslCertificatesRequest"; }; - return ListRegionTargetTcpProxiesRequest; + return ListRegionSslCertificatesRequest; })(); - v1.ListRegionUrlMapsRequest = (function() { + v1.ListRegionSslPoliciesRequest = (function() { /** - * Properties of a ListRegionUrlMapsRequest. + * Properties of a ListRegionSslPoliciesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionUrlMapsRequest - * @property {string|null} [filter] ListRegionUrlMapsRequest filter - * @property {number|null} [maxResults] ListRegionUrlMapsRequest maxResults - * @property {string|null} [orderBy] ListRegionUrlMapsRequest orderBy - * @property {string|null} [pageToken] ListRegionUrlMapsRequest pageToken - * @property {string|null} [project] ListRegionUrlMapsRequest project - * @property {string|null} [region] ListRegionUrlMapsRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionUrlMapsRequest returnPartialSuccess + * @interface IListRegionSslPoliciesRequest + * @property {string|null} [filter] ListRegionSslPoliciesRequest filter + * @property {number|null} [maxResults] ListRegionSslPoliciesRequest maxResults + * @property {string|null} [orderBy] ListRegionSslPoliciesRequest orderBy + * @property {string|null} [pageToken] ListRegionSslPoliciesRequest pageToken + * @property {string|null} [project] ListRegionSslPoliciesRequest project + * @property {string|null} [region] ListRegionSslPoliciesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionSslPoliciesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionUrlMapsRequest. + * Constructs a new ListRegionSslPoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionUrlMapsRequest. - * @implements IListRegionUrlMapsRequest + * @classdesc Represents a ListRegionSslPoliciesRequest. + * @implements IListRegionSslPoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest=} [properties] Properties to set */ - function ListRegionUrlMapsRequest(properties) { + function ListRegionSslPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -342714,116 +357163,116 @@ } /** - * ListRegionUrlMapsRequest filter. + * ListRegionSslPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.filter = null; + ListRegionSslPoliciesRequest.prototype.filter = null; /** - * ListRegionUrlMapsRequest maxResults. + * ListRegionSslPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.maxResults = null; + ListRegionSslPoliciesRequest.prototype.maxResults = null; /** - * ListRegionUrlMapsRequest orderBy. + * ListRegionSslPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.orderBy = null; + ListRegionSslPoliciesRequest.prototype.orderBy = null; /** - * ListRegionUrlMapsRequest pageToken. + * ListRegionSslPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.pageToken = null; + ListRegionSslPoliciesRequest.prototype.pageToken = null; /** - * ListRegionUrlMapsRequest project. + * ListRegionSslPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.project = ""; + ListRegionSslPoliciesRequest.prototype.project = ""; /** - * ListRegionUrlMapsRequest region. + * ListRegionSslPoliciesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.region = ""; + ListRegionSslPoliciesRequest.prototype.region = ""; /** - * ListRegionUrlMapsRequest returnPartialSuccess. + * ListRegionSslPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.returnPartialSuccess = null; + ListRegionSslPoliciesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionUrlMapsRequest instance using the specified properties. + * Creates a new ListRegionSslPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest instance + * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest instance */ - ListRegionUrlMapsRequest.create = function create(properties) { - return new ListRegionUrlMapsRequest(properties); + ListRegionSslPoliciesRequest.create = function create(properties) { + return new ListRegionSslPoliciesRequest(properties); }; /** - * Encodes the specified ListRegionUrlMapsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionUrlMapsRequest.verify|verify} messages. + * Encodes the specified ListRegionSslPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest} message ListRegionUrlMapsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest} message ListRegionSslPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionUrlMapsRequest.encode = function encode(message, writer) { + ListRegionSslPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -342844,33 +357293,33 @@ }; /** - * Encodes the specified ListRegionUrlMapsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionUrlMapsRequest.verify|verify} messages. + * Encodes the specified ListRegionSslPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest} message ListRegionUrlMapsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest} message ListRegionSslPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionUrlMapsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionSslPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionUrlMapsRequest message from the specified reader or buffer. + * Decodes a ListRegionSslPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest + * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionUrlMapsRequest.decode = function decode(reader, length, error) { + ListRegionSslPoliciesRequest.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.v1.ListRegionUrlMapsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionSslPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -342913,30 +357362,30 @@ }; /** - * Decodes a ListRegionUrlMapsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionSslPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest + * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionUrlMapsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionSslPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionUrlMapsRequest message. + * Verifies a ListRegionSslPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionUrlMapsRequest.verify = function verify(message) { + ListRegionSslPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -342975,17 +357424,17 @@ }; /** - * Creates a ListRegionUrlMapsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionSslPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest + * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest */ - ListRegionUrlMapsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionUrlMapsRequest) + ListRegionSslPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionSslPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionUrlMapsRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionSslPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -343004,15 +357453,15 @@ }; /** - * Creates a plain object from a ListRegionUrlMapsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionSslPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.ListRegionUrlMapsRequest} message ListRegionUrlMapsRequest + * @param {google.cloud.compute.v1.ListRegionSslPoliciesRequest} message ListRegionSslPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionUrlMapsRequest.toObject = function toObject(message, options) { + ListRegionSslPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -343053,58 +357502,58 @@ }; /** - * Converts this ListRegionUrlMapsRequest to JSON. + * Converts this ListRegionSslPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance * @returns {Object.} JSON object */ - ListRegionUrlMapsRequest.prototype.toJSON = function toJSON() { + ListRegionSslPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionUrlMapsRequest + * Gets the default type url for ListRegionSslPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionUrlMapsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionSslPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionUrlMapsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionSslPoliciesRequest"; }; - return ListRegionUrlMapsRequest; + return ListRegionSslPoliciesRequest; })(); - v1.ListRegionZonesRequest = (function() { + v1.ListRegionTargetHttpProxiesRequest = (function() { /** - * Properties of a ListRegionZonesRequest. + * Properties of a ListRegionTargetHttpProxiesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionZonesRequest - * @property {string|null} [filter] ListRegionZonesRequest filter - * @property {number|null} [maxResults] ListRegionZonesRequest maxResults - * @property {string|null} [orderBy] ListRegionZonesRequest orderBy - * @property {string|null} [pageToken] ListRegionZonesRequest pageToken - * @property {string|null} [project] ListRegionZonesRequest project - * @property {string|null} [region] ListRegionZonesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionZonesRequest returnPartialSuccess + * @interface IListRegionTargetHttpProxiesRequest + * @property {string|null} [filter] ListRegionTargetHttpProxiesRequest filter + * @property {number|null} [maxResults] ListRegionTargetHttpProxiesRequest maxResults + * @property {string|null} [orderBy] ListRegionTargetHttpProxiesRequest orderBy + * @property {string|null} [pageToken] ListRegionTargetHttpProxiesRequest pageToken + * @property {string|null} [project] ListRegionTargetHttpProxiesRequest project + * @property {string|null} [region] ListRegionTargetHttpProxiesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionTargetHttpProxiesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionZonesRequest. + * Constructs a new ListRegionTargetHttpProxiesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionZonesRequest. - * @implements IListRegionZonesRequest + * @classdesc Represents a ListRegionTargetHttpProxiesRequest. + * @implements IListRegionTargetHttpProxiesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionZonesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest=} [properties] Properties to set */ - function ListRegionZonesRequest(properties) { + function ListRegionTargetHttpProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -343112,116 +357561,116 @@ } /** - * ListRegionZonesRequest filter. + * ListRegionTargetHttpProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionZonesRequest.prototype.filter = null; + ListRegionTargetHttpProxiesRequest.prototype.filter = null; /** - * ListRegionZonesRequest maxResults. + * ListRegionTargetHttpProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionZonesRequest.prototype.maxResults = null; + ListRegionTargetHttpProxiesRequest.prototype.maxResults = null; /** - * ListRegionZonesRequest orderBy. + * ListRegionTargetHttpProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionZonesRequest.prototype.orderBy = null; + ListRegionTargetHttpProxiesRequest.prototype.orderBy = null; /** - * ListRegionZonesRequest pageToken. + * ListRegionTargetHttpProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionZonesRequest.prototype.pageToken = null; + ListRegionTargetHttpProxiesRequest.prototype.pageToken = null; /** - * ListRegionZonesRequest project. + * ListRegionTargetHttpProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionZonesRequest.prototype.project = ""; + ListRegionTargetHttpProxiesRequest.prototype.project = ""; /** - * ListRegionZonesRequest region. + * ListRegionTargetHttpProxiesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionZonesRequest.prototype.region = ""; + ListRegionTargetHttpProxiesRequest.prototype.region = ""; /** - * ListRegionZonesRequest returnPartialSuccess. + * ListRegionTargetHttpProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionZonesRequest.prototype.returnPartialSuccess = null; + ListRegionTargetHttpProxiesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionZonesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionZonesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionZonesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionZonesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionZonesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionZonesRequest instance using the specified properties. + * Creates a new ListRegionTargetHttpProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionZonesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionZonesRequest} ListRegionZonesRequest instance + * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest instance */ - ListRegionZonesRequest.create = function create(properties) { - return new ListRegionZonesRequest(properties); + ListRegionTargetHttpProxiesRequest.create = function create(properties) { + return new ListRegionTargetHttpProxiesRequest(properties); }; /** - * Encodes the specified ListRegionZonesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionZonesRequest.verify|verify} messages. + * Encodes the specified ListRegionTargetHttpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionZonesRequest} message ListRegionZonesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest} message ListRegionTargetHttpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionZonesRequest.encode = function encode(message, writer) { + ListRegionTargetHttpProxiesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -343242,33 +357691,33 @@ }; /** - * Encodes the specified ListRegionZonesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionZonesRequest.verify|verify} messages. + * Encodes the specified ListRegionTargetHttpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionZonesRequest} message ListRegionZonesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest} message ListRegionTargetHttpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionZonesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionTargetHttpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionZonesRequest message from the specified reader or buffer. + * Decodes a ListRegionTargetHttpProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionZonesRequest} ListRegionZonesRequest + * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionZonesRequest.decode = function decode(reader, length, error) { + ListRegionTargetHttpProxiesRequest.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.v1.ListRegionZonesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -343311,30 +357760,30 @@ }; /** - * Decodes a ListRegionZonesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionTargetHttpProxiesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionZonesRequest} ListRegionZonesRequest + * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionZonesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionTargetHttpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionZonesRequest message. + * Verifies a ListRegionTargetHttpProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionZonesRequest.verify = function verify(message) { + ListRegionTargetHttpProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -343373,17 +357822,17 @@ }; /** - * Creates a ListRegionZonesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionTargetHttpProxiesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionZonesRequest} ListRegionZonesRequest + * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest */ - ListRegionZonesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionZonesRequest) + ListRegionTargetHttpProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionZonesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -343402,15 +357851,15 @@ }; /** - * Creates a plain object from a ListRegionZonesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionTargetHttpProxiesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.ListRegionZonesRequest} message ListRegionZonesRequest + * @param {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} message ListRegionTargetHttpProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionZonesRequest.toObject = function toObject(message, options) { + ListRegionTargetHttpProxiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -343451,57 +357900,58 @@ }; /** - * Converts this ListRegionZonesRequest to JSON. + * Converts this ListRegionTargetHttpProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance * @returns {Object.} JSON object */ - ListRegionZonesRequest.prototype.toJSON = function toJSON() { + ListRegionTargetHttpProxiesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionZonesRequest + * Gets the default type url for ListRegionTargetHttpProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionZonesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionTargetHttpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionZonesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest"; }; - return ListRegionZonesRequest; + return ListRegionTargetHttpProxiesRequest; })(); - v1.ListRegionsRequest = (function() { + v1.ListRegionTargetHttpsProxiesRequest = (function() { /** - * Properties of a ListRegionsRequest. + * Properties of a ListRegionTargetHttpsProxiesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionsRequest - * @property {string|null} [filter] ListRegionsRequest filter - * @property {number|null} [maxResults] ListRegionsRequest maxResults - * @property {string|null} [orderBy] ListRegionsRequest orderBy - * @property {string|null} [pageToken] ListRegionsRequest pageToken - * @property {string|null} [project] ListRegionsRequest project - * @property {boolean|null} [returnPartialSuccess] ListRegionsRequest returnPartialSuccess + * @interface IListRegionTargetHttpsProxiesRequest + * @property {string|null} [filter] ListRegionTargetHttpsProxiesRequest filter + * @property {number|null} [maxResults] ListRegionTargetHttpsProxiesRequest maxResults + * @property {string|null} [orderBy] ListRegionTargetHttpsProxiesRequest orderBy + * @property {string|null} [pageToken] ListRegionTargetHttpsProxiesRequest pageToken + * @property {string|null} [project] ListRegionTargetHttpsProxiesRequest project + * @property {string|null} [region] ListRegionTargetHttpsProxiesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionTargetHttpsProxiesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionsRequest. + * Constructs a new ListRegionTargetHttpsProxiesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionsRequest. - * @implements IListRegionsRequest + * @classdesc Represents a ListRegionTargetHttpsProxiesRequest. + * @implements IListRegionTargetHttpsProxiesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest=} [properties] Properties to set */ - function ListRegionsRequest(properties) { + function ListRegionTargetHttpsProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -343509,114 +357959,124 @@ } /** - * ListRegionsRequest filter. + * ListRegionTargetHttpsProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionsRequest.prototype.filter = null; + ListRegionTargetHttpsProxiesRequest.prototype.filter = null; /** - * ListRegionsRequest maxResults. + * ListRegionTargetHttpsProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionsRequest.prototype.maxResults = null; + ListRegionTargetHttpsProxiesRequest.prototype.maxResults = null; /** - * ListRegionsRequest orderBy. + * ListRegionTargetHttpsProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionsRequest.prototype.orderBy = null; + ListRegionTargetHttpsProxiesRequest.prototype.orderBy = null; /** - * ListRegionsRequest pageToken. + * ListRegionTargetHttpsProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionsRequest.prototype.pageToken = null; + ListRegionTargetHttpsProxiesRequest.prototype.pageToken = null; /** - * ListRegionsRequest project. + * ListRegionTargetHttpsProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionsRequest.prototype.project = ""; + ListRegionTargetHttpsProxiesRequest.prototype.project = ""; /** - * ListRegionsRequest returnPartialSuccess. + * ListRegionTargetHttpsProxiesRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @instance + */ + ListRegionTargetHttpsProxiesRequest.prototype.region = ""; + + /** + * ListRegionTargetHttpsProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionsRequest.prototype.returnPartialSuccess = null; + ListRegionTargetHttpsProxiesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionsRequest instance using the specified properties. + * Creates a new ListRegionTargetHttpsProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionsRequest} ListRegionsRequest instance + * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest instance */ - ListRegionsRequest.create = function create(properties) { - return new ListRegionsRequest(properties); + ListRegionTargetHttpsProxiesRequest.create = function create(properties) { + return new ListRegionTargetHttpsProxiesRequest(properties); }; /** - * Encodes the specified ListRegionsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionsRequest.verify|verify} messages. + * Encodes the specified ListRegionTargetHttpsProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionsRequest} message ListRegionsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest} message ListRegionTargetHttpsProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionsRequest.encode = function encode(message, writer) { + ListRegionTargetHttpsProxiesRequest.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")) @@ -343629,33 +358089,33 @@ }; /** - * Encodes the specified ListRegionsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionsRequest.verify|verify} messages. + * Encodes the specified ListRegionTargetHttpsProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionsRequest} message ListRegionsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest} message ListRegionTargetHttpsProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionTargetHttpsProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionsRequest message from the specified reader or buffer. + * Decodes a ListRegionTargetHttpsProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionsRequest} ListRegionsRequest + * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionsRequest.decode = function decode(reader, length, error) { + ListRegionTargetHttpsProxiesRequest.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.v1.ListRegionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -343681,6 +358141,10 @@ message.project = reader.string(); break; } + case 138946292: { + message.region = reader.string(); + break; + } case 517198390: { message.returnPartialSuccess = reader.bool(); break; @@ -343694,30 +358158,30 @@ }; /** - * Decodes a ListRegionsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionTargetHttpsProxiesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionsRequest} ListRegionsRequest + * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionTargetHttpsProxiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionsRequest message. + * Verifies a ListRegionTargetHttpsProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionsRequest.verify = function verify(message) { + ListRegionTargetHttpsProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -343744,6 +358208,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") @@ -343753,17 +358220,17 @@ }; /** - * Creates a ListRegionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionTargetHttpsProxiesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionsRequest} ListRegionsRequest + * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest */ - ListRegionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionsRequest) + ListRegionTargetHttpsProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionsRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -343774,26 +358241,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 ListRegionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionTargetHttpsProxiesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.ListRegionsRequest} message ListRegionsRequest + * @param {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} message ListRegionTargetHttpsProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionsRequest.toObject = function toObject(message, options) { + ListRegionTargetHttpsProxiesRequest.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) @@ -343804,6 +358275,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) @@ -343825,59 +358298,58 @@ }; /** - * Converts this ListRegionsRequest to JSON. + * Converts this ListRegionTargetHttpsProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance * @returns {Object.} JSON object */ - ListRegionsRequest.prototype.toJSON = function toJSON() { + ListRegionTargetHttpsProxiesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionsRequest + * Gets the default type url for ListRegionTargetHttpsProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionTargetHttpsProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest"; }; - return ListRegionsRequest; + return ListRegionTargetHttpsProxiesRequest; })(); - v1.ListReservationBlocksRequest = (function() { + v1.ListRegionTargetTcpProxiesRequest = (function() { /** - * Properties of a ListReservationBlocksRequest. + * Properties of a ListRegionTargetTcpProxiesRequest. * @memberof google.cloud.compute.v1 - * @interface IListReservationBlocksRequest - * @property {string|null} [filter] ListReservationBlocksRequest filter - * @property {number|null} [maxResults] ListReservationBlocksRequest maxResults - * @property {string|null} [orderBy] ListReservationBlocksRequest orderBy - * @property {string|null} [pageToken] ListReservationBlocksRequest pageToken - * @property {string|null} [project] ListReservationBlocksRequest project - * @property {string|null} [reservation] ListReservationBlocksRequest reservation - * @property {boolean|null} [returnPartialSuccess] ListReservationBlocksRequest returnPartialSuccess - * @property {string|null} [zone] ListReservationBlocksRequest zone + * @interface IListRegionTargetTcpProxiesRequest + * @property {string|null} [filter] ListRegionTargetTcpProxiesRequest filter + * @property {number|null} [maxResults] ListRegionTargetTcpProxiesRequest maxResults + * @property {string|null} [orderBy] ListRegionTargetTcpProxiesRequest orderBy + * @property {string|null} [pageToken] ListRegionTargetTcpProxiesRequest pageToken + * @property {string|null} [project] ListRegionTargetTcpProxiesRequest project + * @property {string|null} [region] ListRegionTargetTcpProxiesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionTargetTcpProxiesRequest returnPartialSuccess */ /** - * Constructs a new ListReservationBlocksRequest. + * Constructs a new ListRegionTargetTcpProxiesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListReservationBlocksRequest. - * @implements IListReservationBlocksRequest + * @classdesc Represents a ListRegionTargetTcpProxiesRequest. + * @implements IListRegionTargetTcpProxiesRequest * @constructor - * @param {google.cloud.compute.v1.IListReservationBlocksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest=} [properties] Properties to set */ - function ListReservationBlocksRequest(properties) { + function ListRegionTargetTcpProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -343885,134 +358357,124 @@ } /** - * ListReservationBlocksRequest filter. + * ListRegionTargetTcpProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - ListReservationBlocksRequest.prototype.filter = null; + ListRegionTargetTcpProxiesRequest.prototype.filter = null; /** - * ListReservationBlocksRequest maxResults. + * ListRegionTargetTcpProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - ListReservationBlocksRequest.prototype.maxResults = null; + ListRegionTargetTcpProxiesRequest.prototype.maxResults = null; /** - * ListReservationBlocksRequest orderBy. + * ListRegionTargetTcpProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - ListReservationBlocksRequest.prototype.orderBy = null; + ListRegionTargetTcpProxiesRequest.prototype.orderBy = null; /** - * ListReservationBlocksRequest pageToken. + * ListRegionTargetTcpProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - ListReservationBlocksRequest.prototype.pageToken = null; + ListRegionTargetTcpProxiesRequest.prototype.pageToken = null; /** - * ListReservationBlocksRequest project. + * ListRegionTargetTcpProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - ListReservationBlocksRequest.prototype.project = ""; + ListRegionTargetTcpProxiesRequest.prototype.project = ""; /** - * ListReservationBlocksRequest reservation. - * @member {string} reservation - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * ListRegionTargetTcpProxiesRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - ListReservationBlocksRequest.prototype.reservation = ""; + ListRegionTargetTcpProxiesRequest.prototype.region = ""; /** - * ListReservationBlocksRequest returnPartialSuccess. + * ListRegionTargetTcpProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest - * @instance - */ - ListReservationBlocksRequest.prototype.returnPartialSuccess = null; - - /** - * ListReservationBlocksRequest zone. - * @member {string} zone - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - ListReservationBlocksRequest.prototype.zone = ""; + ListRegionTargetTcpProxiesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationBlocksRequest.prototype, "_filter", { + Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationBlocksRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationBlocksRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationBlocksRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationBlocksRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListReservationBlocksRequest instance using the specified properties. + * Creates a new ListRegionTargetTcpProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.IListReservationBlocksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListReservationBlocksRequest} ListReservationBlocksRequest instance + * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest instance */ - ListReservationBlocksRequest.create = function create(properties) { - return new ListReservationBlocksRequest(properties); + ListRegionTargetTcpProxiesRequest.create = function create(properties) { + return new ListRegionTargetTcpProxiesRequest(properties); }; /** - * Encodes the specified ListReservationBlocksRequest message. Does not implicitly {@link google.cloud.compute.v1.ListReservationBlocksRequest.verify|verify} messages. + * Encodes the specified ListRegionTargetTcpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.IListReservationBlocksRequest} message ListReservationBlocksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest} message ListRegionTargetTcpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListReservationBlocksRequest.encode = function encode(message, writer) { + ListRegionTargetTcpProxiesRequest.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.reservation != null && Object.hasOwnProperty.call(message, "reservation")) - writer.uint32(/* id 47530956, wireType 2 =*/380247650).string(message.reservation); 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")) @@ -344025,33 +358487,33 @@ }; /** - * Encodes the specified ListReservationBlocksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListReservationBlocksRequest.verify|verify} messages. + * Encodes the specified ListRegionTargetTcpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.IListReservationBlocksRequest} message ListReservationBlocksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest} message ListRegionTargetTcpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListReservationBlocksRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionTargetTcpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListReservationBlocksRequest message from the specified reader or buffer. + * Decodes a ListRegionTargetTcpProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListReservationBlocksRequest} ListReservationBlocksRequest + * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListReservationBlocksRequest.decode = function decode(reader, length, error) { + ListRegionTargetTcpProxiesRequest.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.v1.ListReservationBlocksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -344077,18 +358539,14 @@ message.project = reader.string(); break; } - case 47530956: { - message.reservation = reader.string(); + case 138946292: { + message.region = reader.string(); break; } case 517198390: { message.returnPartialSuccess = reader.bool(); break; } - case 3744684: { - message.zone = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -344098,30 +358556,30 @@ }; /** - * Decodes a ListReservationBlocksRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionTargetTcpProxiesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListReservationBlocksRequest} ListReservationBlocksRequest + * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListReservationBlocksRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionTargetTcpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListReservationBlocksRequest message. + * Verifies a ListRegionTargetTcpProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListReservationBlocksRequest.verify = function verify(message) { + ListRegionTargetTcpProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -344148,32 +358606,29 @@ if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; - if (message.reservation != null && message.hasOwnProperty("reservation")) - if (!$util.isString(message.reservation)) - return "reservation: 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 ListReservationBlocksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionTargetTcpProxiesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListReservationBlocksRequest} ListReservationBlocksRequest + * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest */ - ListReservationBlocksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListReservationBlocksRequest) + ListRegionTargetTcpProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListReservationBlocksRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -344184,42 +358639,1628 @@ message.pageToken = String(object.pageToken); if (object.project != null) message.project = String(object.project); - if (object.reservation != null) - message.reservation = String(object.reservation); + 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 ListReservationBlocksRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionTargetTcpProxiesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.ListReservationBlocksRequest} message ListReservationBlocksRequest + * @param {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} message ListRegionTargetTcpProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListReservationBlocksRequest.toObject = function toObject(message, options) { + ListRegionTargetTcpProxiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.zone = ""; - object.reservation = ""; + object.region = ""; 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.reservation != null && message.hasOwnProperty("reservation")) - object.reservation = message.reservation; + 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 ListRegionTargetTcpProxiesRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @instance + * @returns {Object.} JSON object + */ + ListRegionTargetTcpProxiesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListRegionTargetTcpProxiesRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListRegionTargetTcpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest"; + }; + + return ListRegionTargetTcpProxiesRequest; + })(); + + v1.ListRegionUrlMapsRequest = (function() { + + /** + * Properties of a ListRegionUrlMapsRequest. + * @memberof google.cloud.compute.v1 + * @interface IListRegionUrlMapsRequest + * @property {string|null} [filter] ListRegionUrlMapsRequest filter + * @property {number|null} [maxResults] ListRegionUrlMapsRequest maxResults + * @property {string|null} [orderBy] ListRegionUrlMapsRequest orderBy + * @property {string|null} [pageToken] ListRegionUrlMapsRequest pageToken + * @property {string|null} [project] ListRegionUrlMapsRequest project + * @property {string|null} [region] ListRegionUrlMapsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionUrlMapsRequest returnPartialSuccess + */ + + /** + * Constructs a new ListRegionUrlMapsRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ListRegionUrlMapsRequest. + * @implements IListRegionUrlMapsRequest + * @constructor + * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest=} [properties] Properties to set + */ + function ListRegionUrlMapsRequest(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]]; + } + + /** + * ListRegionUrlMapsRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @instance + */ + ListRegionUrlMapsRequest.prototype.filter = null; + + /** + * ListRegionUrlMapsRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @instance + */ + ListRegionUrlMapsRequest.prototype.maxResults = null; + + /** + * ListRegionUrlMapsRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @instance + */ + ListRegionUrlMapsRequest.prototype.orderBy = null; + + /** + * ListRegionUrlMapsRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @instance + */ + ListRegionUrlMapsRequest.prototype.pageToken = null; + + /** + * ListRegionUrlMapsRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @instance + */ + ListRegionUrlMapsRequest.prototype.project = ""; + + /** + * ListRegionUrlMapsRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @instance + */ + ListRegionUrlMapsRequest.prototype.region = ""; + + /** + * ListRegionUrlMapsRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @instance + */ + ListRegionUrlMapsRequest.prototype.returnPartialSuccess = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ListRegionUrlMapsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @static + * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest instance + */ + ListRegionUrlMapsRequest.create = function create(properties) { + return new ListRegionUrlMapsRequest(properties); + }; + + /** + * Encodes the specified ListRegionUrlMapsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionUrlMapsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @static + * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest} message ListRegionUrlMapsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRegionUrlMapsRequest.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 ListRegionUrlMapsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionUrlMapsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @static + * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest} message ListRegionUrlMapsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRegionUrlMapsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListRegionUrlMapsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRegionUrlMapsRequest.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.v1.ListRegionUrlMapsRequest(); + 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 ListRegionUrlMapsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRegionUrlMapsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListRegionUrlMapsRequest message. + * @function verify + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListRegionUrlMapsRequest.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 ListRegionUrlMapsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest + */ + ListRegionUrlMapsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionUrlMapsRequest) + return object; + var message = new $root.google.cloud.compute.v1.ListRegionUrlMapsRequest(); + 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 ListRegionUrlMapsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @static + * @param {google.cloud.compute.v1.ListRegionUrlMapsRequest} message ListRegionUrlMapsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListRegionUrlMapsRequest.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 ListRegionUrlMapsRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @instance + * @returns {Object.} JSON object + */ + ListRegionUrlMapsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListRegionUrlMapsRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListRegionUrlMapsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionUrlMapsRequest"; + }; + + return ListRegionUrlMapsRequest; + })(); + + v1.ListRegionZonesRequest = (function() { + + /** + * Properties of a ListRegionZonesRequest. + * @memberof google.cloud.compute.v1 + * @interface IListRegionZonesRequest + * @property {string|null} [filter] ListRegionZonesRequest filter + * @property {number|null} [maxResults] ListRegionZonesRequest maxResults + * @property {string|null} [orderBy] ListRegionZonesRequest orderBy + * @property {string|null} [pageToken] ListRegionZonesRequest pageToken + * @property {string|null} [project] ListRegionZonesRequest project + * @property {string|null} [region] ListRegionZonesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionZonesRequest returnPartialSuccess + */ + + /** + * Constructs a new ListRegionZonesRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ListRegionZonesRequest. + * @implements IListRegionZonesRequest + * @constructor + * @param {google.cloud.compute.v1.IListRegionZonesRequest=} [properties] Properties to set + */ + function ListRegionZonesRequest(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]]; + } + + /** + * ListRegionZonesRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @instance + */ + ListRegionZonesRequest.prototype.filter = null; + + /** + * ListRegionZonesRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @instance + */ + ListRegionZonesRequest.prototype.maxResults = null; + + /** + * ListRegionZonesRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @instance + */ + ListRegionZonesRequest.prototype.orderBy = null; + + /** + * ListRegionZonesRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @instance + */ + ListRegionZonesRequest.prototype.pageToken = null; + + /** + * ListRegionZonesRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @instance + */ + ListRegionZonesRequest.prototype.project = ""; + + /** + * ListRegionZonesRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @instance + */ + ListRegionZonesRequest.prototype.region = ""; + + /** + * ListRegionZonesRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @instance + */ + ListRegionZonesRequest.prototype.returnPartialSuccess = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListRegionZonesRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListRegionZonesRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListRegionZonesRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListRegionZonesRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListRegionZonesRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ListRegionZonesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @static + * @param {google.cloud.compute.v1.IListRegionZonesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionZonesRequest} ListRegionZonesRequest instance + */ + ListRegionZonesRequest.create = function create(properties) { + return new ListRegionZonesRequest(properties); + }; + + /** + * Encodes the specified ListRegionZonesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionZonesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @static + * @param {google.cloud.compute.v1.IListRegionZonesRequest} message ListRegionZonesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRegionZonesRequest.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 ListRegionZonesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionZonesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @static + * @param {google.cloud.compute.v1.IListRegionZonesRequest} message ListRegionZonesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRegionZonesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListRegionZonesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.ListRegionZonesRequest} ListRegionZonesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRegionZonesRequest.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.v1.ListRegionZonesRequest(); + 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 ListRegionZonesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ListRegionZonesRequest} ListRegionZonesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRegionZonesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListRegionZonesRequest message. + * @function verify + * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListRegionZonesRequest.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 ListRegionZonesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ListRegionZonesRequest} ListRegionZonesRequest + */ + ListRegionZonesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionZonesRequest) + return object; + var message = new $root.google.cloud.compute.v1.ListRegionZonesRequest(); + 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 ListRegionZonesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @static + * @param {google.cloud.compute.v1.ListRegionZonesRequest} message ListRegionZonesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListRegionZonesRequest.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 ListRegionZonesRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @instance + * @returns {Object.} JSON object + */ + ListRegionZonesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListRegionZonesRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListRegionZonesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionZonesRequest"; + }; + + return ListRegionZonesRequest; + })(); + + v1.ListRegionsRequest = (function() { + + /** + * Properties of a ListRegionsRequest. + * @memberof google.cloud.compute.v1 + * @interface IListRegionsRequest + * @property {string|null} [filter] ListRegionsRequest filter + * @property {number|null} [maxResults] ListRegionsRequest maxResults + * @property {string|null} [orderBy] ListRegionsRequest orderBy + * @property {string|null} [pageToken] ListRegionsRequest pageToken + * @property {string|null} [project] ListRegionsRequest project + * @property {boolean|null} [returnPartialSuccess] ListRegionsRequest returnPartialSuccess + */ + + /** + * Constructs a new ListRegionsRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ListRegionsRequest. + * @implements IListRegionsRequest + * @constructor + * @param {google.cloud.compute.v1.IListRegionsRequest=} [properties] Properties to set + */ + function ListRegionsRequest(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]]; + } + + /** + * ListRegionsRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1.ListRegionsRequest + * @instance + */ + ListRegionsRequest.prototype.filter = null; + + /** + * ListRegionsRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1.ListRegionsRequest + * @instance + */ + ListRegionsRequest.prototype.maxResults = null; + + /** + * ListRegionsRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1.ListRegionsRequest + * @instance + */ + ListRegionsRequest.prototype.orderBy = null; + + /** + * ListRegionsRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1.ListRegionsRequest + * @instance + */ + ListRegionsRequest.prototype.pageToken = null; + + /** + * ListRegionsRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.ListRegionsRequest + * @instance + */ + ListRegionsRequest.prototype.project = ""; + + /** + * ListRegionsRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1.ListRegionsRequest + * @instance + */ + ListRegionsRequest.prototype.returnPartialSuccess = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListRegionsRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListRegionsRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListRegionsRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListRegionsRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListRegionsRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ListRegionsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ListRegionsRequest + * @static + * @param {google.cloud.compute.v1.IListRegionsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionsRequest} ListRegionsRequest instance + */ + ListRegionsRequest.create = function create(properties) { + return new ListRegionsRequest(properties); + }; + + /** + * Encodes the specified ListRegionsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ListRegionsRequest + * @static + * @param {google.cloud.compute.v1.IListRegionsRequest} message ListRegionsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRegionsRequest.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 ListRegionsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ListRegionsRequest + * @static + * @param {google.cloud.compute.v1.IListRegionsRequest} message ListRegionsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRegionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListRegionsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ListRegionsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.ListRegionsRequest} ListRegionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRegionsRequest.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.v1.ListRegionsRequest(); + 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 ListRegionsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ListRegionsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ListRegionsRequest} ListRegionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRegionsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListRegionsRequest message. + * @function verify + * @memberof google.cloud.compute.v1.ListRegionsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListRegionsRequest.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 ListRegionsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ListRegionsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ListRegionsRequest} ListRegionsRequest + */ + ListRegionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionsRequest) + return object; + var message = new $root.google.cloud.compute.v1.ListRegionsRequest(); + 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 ListRegionsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ListRegionsRequest + * @static + * @param {google.cloud.compute.v1.ListRegionsRequest} message ListRegionsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListRegionsRequest.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 ListRegionsRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ListRegionsRequest + * @instance + * @returns {Object.} JSON object + */ + ListRegionsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListRegionsRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.ListRegionsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListRegionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionsRequest"; + }; + + return ListRegionsRequest; + })(); + + v1.ListReservationBlocksRequest = (function() { + + /** + * Properties of a ListReservationBlocksRequest. + * @memberof google.cloud.compute.v1 + * @interface IListReservationBlocksRequest + * @property {string|null} [filter] ListReservationBlocksRequest filter + * @property {number|null} [maxResults] ListReservationBlocksRequest maxResults + * @property {string|null} [orderBy] ListReservationBlocksRequest orderBy + * @property {string|null} [pageToken] ListReservationBlocksRequest pageToken + * @property {string|null} [project] ListReservationBlocksRequest project + * @property {string|null} [reservation] ListReservationBlocksRequest reservation + * @property {boolean|null} [returnPartialSuccess] ListReservationBlocksRequest returnPartialSuccess + * @property {string|null} [zone] ListReservationBlocksRequest zone + */ + + /** + * Constructs a new ListReservationBlocksRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ListReservationBlocksRequest. + * @implements IListReservationBlocksRequest + * @constructor + * @param {google.cloud.compute.v1.IListReservationBlocksRequest=} [properties] Properties to set + */ + function ListReservationBlocksRequest(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]]; + } + + /** + * ListReservationBlocksRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @instance + */ + ListReservationBlocksRequest.prototype.filter = null; + + /** + * ListReservationBlocksRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @instance + */ + ListReservationBlocksRequest.prototype.maxResults = null; + + /** + * ListReservationBlocksRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @instance + */ + ListReservationBlocksRequest.prototype.orderBy = null; + + /** + * ListReservationBlocksRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @instance + */ + ListReservationBlocksRequest.prototype.pageToken = null; + + /** + * ListReservationBlocksRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @instance + */ + ListReservationBlocksRequest.prototype.project = ""; + + /** + * ListReservationBlocksRequest reservation. + * @member {string} reservation + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @instance + */ + ListReservationBlocksRequest.prototype.reservation = ""; + + /** + * ListReservationBlocksRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @instance + */ + ListReservationBlocksRequest.prototype.returnPartialSuccess = null; + + /** + * ListReservationBlocksRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @instance + */ + ListReservationBlocksRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListReservationBlocksRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListReservationBlocksRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListReservationBlocksRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListReservationBlocksRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListReservationBlocksRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ListReservationBlocksRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @static + * @param {google.cloud.compute.v1.IListReservationBlocksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListReservationBlocksRequest} ListReservationBlocksRequest instance + */ + ListReservationBlocksRequest.create = function create(properties) { + return new ListReservationBlocksRequest(properties); + }; + + /** + * Encodes the specified ListReservationBlocksRequest message. Does not implicitly {@link google.cloud.compute.v1.ListReservationBlocksRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @static + * @param {google.cloud.compute.v1.IListReservationBlocksRequest} message ListReservationBlocksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListReservationBlocksRequest.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.reservation != null && Object.hasOwnProperty.call(message, "reservation")) + writer.uint32(/* id 47530956, wireType 2 =*/380247650).string(message.reservation); + 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 ListReservationBlocksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListReservationBlocksRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @static + * @param {google.cloud.compute.v1.IListReservationBlocksRequest} message ListReservationBlocksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListReservationBlocksRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListReservationBlocksRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.ListReservationBlocksRequest} ListReservationBlocksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListReservationBlocksRequest.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.v1.ListReservationBlocksRequest(); + 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 47530956: { + message.reservation = 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 ListReservationBlocksRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ListReservationBlocksRequest} ListReservationBlocksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListReservationBlocksRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListReservationBlocksRequest message. + * @function verify + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListReservationBlocksRequest.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.reservation != null && message.hasOwnProperty("reservation")) + if (!$util.isString(message.reservation)) + return "reservation: 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 ListReservationBlocksRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ListReservationBlocksRequest} ListReservationBlocksRequest + */ + ListReservationBlocksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListReservationBlocksRequest) + return object; + var message = new $root.google.cloud.compute.v1.ListReservationBlocksRequest(); + 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.reservation != null) + message.reservation = String(object.reservation); + 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 ListReservationBlocksRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @static + * @param {google.cloud.compute.v1.ListReservationBlocksRequest} message ListReservationBlocksRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListReservationBlocksRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.reservation = ""; + 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.reservation != null && message.hasOwnProperty("reservation")) + object.reservation = message.reservation; if (message.maxResults != null && message.hasOwnProperty("maxResults")) { object.maxResults = message.maxResults; if (options.oneofs) @@ -353680,29 +369721,29 @@ return ListUrlMapsRequest; })(); - v1.ListUsableBackendServicesRequest = (function() { + v1.ListUsableBackendBucketsRequest = (function() { /** - * Properties of a ListUsableBackendServicesRequest. + * Properties of a ListUsableBackendBucketsRequest. * @memberof google.cloud.compute.v1 - * @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 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 ListUsableBackendServicesRequest. + * Constructs a new ListUsableBackendBucketsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListUsableBackendServicesRequest. - * @implements IListUsableBackendServicesRequest + * @classdesc Represents a ListUsableBackendBucketsRequest. + * @implements IListUsableBackendBucketsRequest * @constructor - * @param {google.cloud.compute.v1.IListUsableBackendServicesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListUsableBackendBucketsRequest=} [properties] Properties to set */ - function ListUsableBackendServicesRequest(properties) { + function ListUsableBackendBucketsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -353710,108 +369751,108 @@ } /** - * ListUsableBackendServicesRequest filter. + * ListUsableBackendBucketsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1.ListUsableBackendBucketsRequest * @instance */ - ListUsableBackendServicesRequest.prototype.filter = null; + ListUsableBackendBucketsRequest.prototype.filter = null; /** - * ListUsableBackendServicesRequest maxResults. + * ListUsableBackendBucketsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1.ListUsableBackendBucketsRequest * @instance */ - ListUsableBackendServicesRequest.prototype.maxResults = null; + ListUsableBackendBucketsRequest.prototype.maxResults = null; /** - * ListUsableBackendServicesRequest orderBy. + * ListUsableBackendBucketsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1.ListUsableBackendBucketsRequest * @instance */ - ListUsableBackendServicesRequest.prototype.orderBy = null; + ListUsableBackendBucketsRequest.prototype.orderBy = null; /** - * ListUsableBackendServicesRequest pageToken. + * ListUsableBackendBucketsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1.ListUsableBackendBucketsRequest * @instance */ - ListUsableBackendServicesRequest.prototype.pageToken = null; + ListUsableBackendBucketsRequest.prototype.pageToken = null; /** - * ListUsableBackendServicesRequest project. + * ListUsableBackendBucketsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1.ListUsableBackendBucketsRequest * @instance */ - ListUsableBackendServicesRequest.prototype.project = ""; + ListUsableBackendBucketsRequest.prototype.project = ""; /** - * ListUsableBackendServicesRequest returnPartialSuccess. + * ListUsableBackendBucketsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1.ListUsableBackendBucketsRequest * @instance */ - ListUsableBackendServicesRequest.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(ListUsableBackendServicesRequest.prototype, "_filter", { + Object.defineProperty(ListUsableBackendBucketsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListUsableBackendServicesRequest.prototype, "_maxResults", { + Object.defineProperty(ListUsableBackendBucketsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListUsableBackendServicesRequest.prototype, "_orderBy", { + Object.defineProperty(ListUsableBackendBucketsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListUsableBackendServicesRequest.prototype, "_pageToken", { + Object.defineProperty(ListUsableBackendBucketsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListUsableBackendServicesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListUsableBackendBucketsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListUsableBackendServicesRequest instance using the specified properties. + * Creates a new ListUsableBackendBucketsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1.ListUsableBackendBucketsRequest * @static - * @param {google.cloud.compute.v1.IListUsableBackendServicesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListUsableBackendServicesRequest} ListUsableBackendServicesRequest instance + * @param {google.cloud.compute.v1.IListUsableBackendBucketsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListUsableBackendBucketsRequest} ListUsableBackendBucketsRequest instance */ - ListUsableBackendServicesRequest.create = function create(properties) { - return new ListUsableBackendServicesRequest(properties); + ListUsableBackendBucketsRequest.create = function create(properties) { + return new ListUsableBackendBucketsRequest(properties); }; /** - * Encodes the specified ListUsableBackendServicesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListUsableBackendServicesRequest.verify|verify} messages. + * Encodes the specified ListUsableBackendBucketsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListUsableBackendBucketsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1.ListUsableBackendBucketsRequest * @static - * @param {google.cloud.compute.v1.IListUsableBackendServicesRequest} message ListUsableBackendServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListUsableBackendBucketsRequest} message ListUsableBackendBucketsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListUsableBackendServicesRequest.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")) @@ -353830,33 +369871,33 @@ }; /** - * Encodes the specified ListUsableBackendServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListUsableBackendServicesRequest.verify|verify} messages. + * Encodes the specified ListUsableBackendBucketsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListUsableBackendBucketsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1.ListUsableBackendBucketsRequest * @static - * @param {google.cloud.compute.v1.IListUsableBackendServicesRequest} message ListUsableBackendServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListUsableBackendBucketsRequest} message ListUsableBackendBucketsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListUsableBackendServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListUsableBackendBucketsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListUsableBackendServicesRequest message from the specified reader or buffer. + * Decodes a ListUsableBackendBucketsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1.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.v1.ListUsableBackendServicesRequest} ListUsableBackendServicesRequest + * @returns {google.cloud.compute.v1.ListUsableBackendBucketsRequest} ListUsableBackendBucketsRequest * @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) { + 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.v1.ListUsableBackendServicesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListUsableBackendBucketsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -353895,30 +369936,30 @@ }; /** - * Decodes a ListUsableBackendServicesRequest 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.v1.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1.ListUsableBackendBucketsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListUsableBackendServicesRequest} ListUsableBackendServicesRequest + * @returns {google.cloud.compute.v1.ListUsableBackendBucketsRequest} ListUsableBackendBucketsRequest * @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) { + ListUsableBackendBucketsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListUsableBackendServicesRequest message. + * Verifies a ListUsableBackendBucketsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1.ListUsableBackendBucketsRequest * @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) { + ListUsableBackendBucketsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -353954,17 +369995,17 @@ }; /** - * Creates a ListUsableBackendServicesRequest 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.v1.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1.ListUsableBackendBucketsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListUsableBackendServicesRequest} ListUsableBackendServicesRequest + * @returns {google.cloud.compute.v1.ListUsableBackendBucketsRequest} ListUsableBackendBucketsRequest */ - ListUsableBackendServicesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListUsableBackendServicesRequest) + ListUsableBackendBucketsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListUsableBackendBucketsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListUsableBackendServicesRequest(); + var message = new $root.google.cloud.compute.v1.ListUsableBackendBucketsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -353981,15 +370022,15 @@ }; /** - * Creates a plain object from a ListUsableBackendServicesRequest 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.v1.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1.ListUsableBackendBucketsRequest * @static - * @param {google.cloud.compute.v1.ListUsableBackendServicesRequest} message ListUsableBackendServicesRequest + * @param {google.cloud.compute.v1.ListUsableBackendBucketsRequest} message ListUsableBackendBucketsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListUsableBackendServicesRequest.toObject = function toObject(message, options) { + ListUsableBackendBucketsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -354026,58 +370067,57 @@ }; /** - * Converts this ListUsableBackendServicesRequest to JSON. + * Converts this ListUsableBackendBucketsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1.ListUsableBackendBucketsRequest * @instance * @returns {Object.} JSON object */ - ListUsableBackendServicesRequest.prototype.toJSON = function toJSON() { + ListUsableBackendBucketsRequest.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 ListUsableBackendBucketsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1.ListUsableBackendBucketsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListUsableBackendServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListUsableBackendBucketsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListUsableBackendServicesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListUsableBackendBucketsRequest"; }; - return ListUsableBackendServicesRequest; + return ListUsableBackendBucketsRequest; })(); - v1.ListUsableRegionBackendServicesRequest = (function() { + v1.ListUsableBackendServicesRequest = (function() { /** - * Properties of a ListUsableRegionBackendServicesRequest. + * Properties of a ListUsableBackendServicesRequest. * @memberof google.cloud.compute.v1 - * @interface IListUsableRegionBackendServicesRequest - * @property {string|null} [filter] ListUsableRegionBackendServicesRequest filter - * @property {number|null} [maxResults] ListUsableRegionBackendServicesRequest maxResults - * @property {string|null} [orderBy] ListUsableRegionBackendServicesRequest orderBy - * @property {string|null} [pageToken] ListUsableRegionBackendServicesRequest pageToken - * @property {string|null} [project] ListUsableRegionBackendServicesRequest project - * @property {string|null} [region] ListUsableRegionBackendServicesRequest region - * @property {boolean|null} [returnPartialSuccess] ListUsableRegionBackendServicesRequest 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 ListUsableRegionBackendServicesRequest. + * Constructs a new ListUsableBackendServicesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListUsableRegionBackendServicesRequest. - * @implements IListUsableRegionBackendServicesRequest + * @classdesc Represents a ListUsableBackendServicesRequest. + * @implements IListUsableBackendServicesRequest * @constructor - * @param {google.cloud.compute.v1.IListUsableRegionBackendServicesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListUsableBackendServicesRequest=} [properties] Properties to set */ - function ListUsableRegionBackendServicesRequest(properties) { + function ListUsableBackendServicesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -354085,124 +370125,114 @@ } /** - * ListUsableRegionBackendServicesRequest filter. + * ListUsableBackendServicesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListUsableRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListUsableBackendServicesRequest * @instance */ - ListUsableRegionBackendServicesRequest.prototype.filter = null; + ListUsableBackendServicesRequest.prototype.filter = null; /** - * ListUsableRegionBackendServicesRequest maxResults. + * ListUsableBackendServicesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListUsableRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListUsableBackendServicesRequest * @instance */ - ListUsableRegionBackendServicesRequest.prototype.maxResults = null; + ListUsableBackendServicesRequest.prototype.maxResults = null; /** - * ListUsableRegionBackendServicesRequest orderBy. + * ListUsableBackendServicesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListUsableRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListUsableBackendServicesRequest * @instance */ - ListUsableRegionBackendServicesRequest.prototype.orderBy = null; + ListUsableBackendServicesRequest.prototype.orderBy = null; /** - * ListUsableRegionBackendServicesRequest pageToken. + * ListUsableBackendServicesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListUsableRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListUsableBackendServicesRequest * @instance */ - ListUsableRegionBackendServicesRequest.prototype.pageToken = null; + ListUsableBackendServicesRequest.prototype.pageToken = null; /** - * ListUsableRegionBackendServicesRequest project. + * ListUsableBackendServicesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListUsableRegionBackendServicesRequest - * @instance - */ - ListUsableRegionBackendServicesRequest.prototype.project = ""; - - /** - * ListUsableRegionBackendServicesRequest region. - * @member {string} region - * @memberof google.cloud.compute.v1.ListUsableRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListUsableBackendServicesRequest * @instance */ - ListUsableRegionBackendServicesRequest.prototype.region = ""; + ListUsableBackendServicesRequest.prototype.project = ""; /** - * ListUsableRegionBackendServicesRequest returnPartialSuccess. + * ListUsableBackendServicesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListUsableRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListUsableBackendServicesRequest * @instance */ - ListUsableRegionBackendServicesRequest.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(ListUsableRegionBackendServicesRequest.prototype, "_filter", { + Object.defineProperty(ListUsableBackendServicesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListUsableRegionBackendServicesRequest.prototype, "_maxResults", { + Object.defineProperty(ListUsableBackendServicesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListUsableRegionBackendServicesRequest.prototype, "_orderBy", { + Object.defineProperty(ListUsableBackendServicesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListUsableRegionBackendServicesRequest.prototype, "_pageToken", { + Object.defineProperty(ListUsableBackendServicesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListUsableRegionBackendServicesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListUsableBackendServicesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListUsableRegionBackendServicesRequest instance using the specified properties. + * Creates a new ListUsableBackendServicesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListUsableRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListUsableBackendServicesRequest * @static - * @param {google.cloud.compute.v1.IListUsableRegionBackendServicesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListUsableRegionBackendServicesRequest} ListUsableRegionBackendServicesRequest instance + * @param {google.cloud.compute.v1.IListUsableBackendServicesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListUsableBackendServicesRequest} ListUsableBackendServicesRequest instance */ - ListUsableRegionBackendServicesRequest.create = function create(properties) { - return new ListUsableRegionBackendServicesRequest(properties); + ListUsableBackendServicesRequest.create = function create(properties) { + return new ListUsableBackendServicesRequest(properties); }; /** - * Encodes the specified ListUsableRegionBackendServicesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListUsableRegionBackendServicesRequest.verify|verify} messages. + * Encodes the specified ListUsableBackendServicesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListUsableBackendServicesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListUsableRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListUsableBackendServicesRequest * @static - * @param {google.cloud.compute.v1.IListUsableRegionBackendServicesRequest} message ListUsableRegionBackendServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListUsableBackendServicesRequest} message ListUsableBackendServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListUsableRegionBackendServicesRequest.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")) 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")) @@ -354215,33 +370245,33 @@ }; /** - * Encodes the specified ListUsableRegionBackendServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListUsableRegionBackendServicesRequest.verify|verify} messages. + * Encodes the specified ListUsableBackendServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListUsableBackendServicesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListUsableRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListUsableBackendServicesRequest * @static - * @param {google.cloud.compute.v1.IListUsableRegionBackendServicesRequest} message ListUsableRegionBackendServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListUsableBackendServicesRequest} message ListUsableBackendServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListUsableRegionBackendServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListUsableBackendServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListUsableRegionBackendServicesRequest message from the specified reader or buffer. + * Decodes a ListUsableBackendServicesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListUsableRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.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.v1.ListUsableRegionBackendServicesRequest} ListUsableRegionBackendServicesRequest + * @returns {google.cloud.compute.v1.ListUsableBackendServicesRequest} ListUsableBackendServicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListUsableRegionBackendServicesRequest.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.v1.ListUsableRegionBackendServicesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListUsableBackendServicesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -354267,10 +370297,6 @@ message.project = reader.string(); break; } - case 138946292: { - message.region = reader.string(); - break; - } case 517198390: { message.returnPartialSuccess = reader.bool(); break; @@ -354284,30 +370310,30 @@ }; /** - * Decodes a ListUsableRegionBackendServicesRequest 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.v1.ListUsableRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListUsableBackendServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListUsableRegionBackendServicesRequest} ListUsableRegionBackendServicesRequest + * @returns {google.cloud.compute.v1.ListUsableBackendServicesRequest} ListUsableBackendServicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListUsableRegionBackendServicesRequest.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 ListUsableRegionBackendServicesRequest message. + * Verifies a ListUsableBackendServicesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListUsableRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListUsableBackendServicesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListUsableRegionBackendServicesRequest.verify = function verify(message) { + ListUsableBackendServicesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -354334,9 +370360,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") @@ -354346,17 +370369,17 @@ }; /** - * Creates a ListUsableRegionBackendServicesRequest 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.v1.ListUsableRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListUsableBackendServicesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListUsableRegionBackendServicesRequest} ListUsableRegionBackendServicesRequest + * @returns {google.cloud.compute.v1.ListUsableBackendServicesRequest} ListUsableBackendServicesRequest */ - ListUsableRegionBackendServicesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListUsableRegionBackendServicesRequest) + ListUsableBackendServicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListUsableBackendServicesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListUsableRegionBackendServicesRequest(); + var message = new $root.google.cloud.compute.v1.ListUsableBackendServicesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -354367,30 +370390,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 ListUsableRegionBackendServicesRequest 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.v1.ListUsableRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListUsableBackendServicesRequest * @static - * @param {google.cloud.compute.v1.ListUsableRegionBackendServicesRequest} message ListUsableRegionBackendServicesRequest + * @param {google.cloud.compute.v1.ListUsableBackendServicesRequest} message ListUsableBackendServicesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListUsableRegionBackendServicesRequest.toObject = function toObject(message, options) { + ListUsableBackendServicesRequest.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) @@ -354401,8 +370420,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) @@ -354424,58 +370441,58 @@ }; /** - * Converts this ListUsableRegionBackendServicesRequest to JSON. + * Converts this ListUsableBackendServicesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListUsableRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListUsableBackendServicesRequest * @instance * @returns {Object.} JSON object */ - ListUsableRegionBackendServicesRequest.prototype.toJSON = function toJSON() { + ListUsableBackendServicesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListUsableRegionBackendServicesRequest + * Gets the default type url for ListUsableBackendServicesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListUsableRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListUsableBackendServicesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListUsableRegionBackendServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListUsableBackendServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListUsableRegionBackendServicesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListUsableBackendServicesRequest"; }; - return ListUsableRegionBackendServicesRequest; + return ListUsableBackendServicesRequest; })(); - v1.ListUsableSubnetworksRequest = (function() { + v1.ListUsableRegionBackendBucketsRequest = (function() { /** - * Properties of a ListUsableSubnetworksRequest. + * Properties of a ListUsableRegionBackendBucketsRequest. * @memberof google.cloud.compute.v1 - * @interface IListUsableSubnetworksRequest - * @property {string|null} [filter] ListUsableSubnetworksRequest filter - * @property {number|null} [maxResults] ListUsableSubnetworksRequest maxResults - * @property {string|null} [orderBy] ListUsableSubnetworksRequest orderBy - * @property {string|null} [pageToken] ListUsableSubnetworksRequest pageToken - * @property {string|null} [project] ListUsableSubnetworksRequest project - * @property {boolean|null} [returnPartialSuccess] ListUsableSubnetworksRequest returnPartialSuccess - * @property {string|null} [serviceProject] ListUsableSubnetworksRequest serviceProject + * @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 ListUsableSubnetworksRequest. + * Constructs a new ListUsableRegionBackendBucketsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListUsableSubnetworksRequest. - * @implements IListUsableSubnetworksRequest + * @classdesc Represents a ListUsableRegionBackendBucketsRequest. + * @implements IListUsableRegionBackendBucketsRequest * @constructor - * @param {google.cloud.compute.v1.IListUsableSubnetworksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListUsableRegionBackendBucketsRequest=} [properties] Properties to set */ - function ListUsableSubnetworksRequest(properties) { + function ListUsableRegionBackendBucketsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -354483,128 +370500,124 @@ } /** - * ListUsableSubnetworksRequest filter. + * ListUsableRegionBackendBucketsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListUsableSubnetworksRequest + * @memberof google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest * @instance */ - ListUsableSubnetworksRequest.prototype.filter = null; + ListUsableRegionBackendBucketsRequest.prototype.filter = null; /** - * ListUsableSubnetworksRequest maxResults. + * ListUsableRegionBackendBucketsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListUsableSubnetworksRequest + * @memberof google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest * @instance */ - ListUsableSubnetworksRequest.prototype.maxResults = null; + ListUsableRegionBackendBucketsRequest.prototype.maxResults = null; /** - * ListUsableSubnetworksRequest orderBy. + * ListUsableRegionBackendBucketsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListUsableSubnetworksRequest + * @memberof google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest * @instance */ - ListUsableSubnetworksRequest.prototype.orderBy = null; + ListUsableRegionBackendBucketsRequest.prototype.orderBy = null; /** - * ListUsableSubnetworksRequest pageToken. + * ListUsableRegionBackendBucketsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListUsableSubnetworksRequest + * @memberof google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest * @instance */ - ListUsableSubnetworksRequest.prototype.pageToken = null; + ListUsableRegionBackendBucketsRequest.prototype.pageToken = null; /** - * ListUsableSubnetworksRequest project. + * ListUsableRegionBackendBucketsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListUsableSubnetworksRequest + * @memberof google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest * @instance */ - ListUsableSubnetworksRequest.prototype.project = ""; + ListUsableRegionBackendBucketsRequest.prototype.project = ""; /** - * ListUsableSubnetworksRequest returnPartialSuccess. - * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListUsableSubnetworksRequest + * ListUsableRegionBackendBucketsRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest * @instance */ - ListUsableSubnetworksRequest.prototype.returnPartialSuccess = null; + ListUsableRegionBackendBucketsRequest.prototype.region = ""; /** - * ListUsableSubnetworksRequest serviceProject. - * @member {string|null|undefined} serviceProject - * @memberof google.cloud.compute.v1.ListUsableSubnetworksRequest + * ListUsableRegionBackendBucketsRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest * @instance */ - ListUsableSubnetworksRequest.prototype.serviceProject = null; + ListUsableRegionBackendBucketsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListUsableSubnetworksRequest.prototype, "_filter", { + Object.defineProperty(ListUsableRegionBackendBucketsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListUsableSubnetworksRequest.prototype, "_maxResults", { + Object.defineProperty(ListUsableRegionBackendBucketsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListUsableSubnetworksRequest.prototype, "_orderBy", { + Object.defineProperty(ListUsableRegionBackendBucketsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListUsableSubnetworksRequest.prototype, "_pageToken", { + Object.defineProperty(ListUsableRegionBackendBucketsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListUsableSubnetworksRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListUsableRegionBackendBucketsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field - Object.defineProperty(ListUsableSubnetworksRequest.prototype, "_serviceProject", { - get: $util.oneOfGetter($oneOfFields = ["serviceProject"]), - set: $util.oneOfSetter($oneOfFields) - }); - /** - * Creates a new ListUsableSubnetworksRequest instance using the specified properties. + * Creates a new ListUsableRegionBackendBucketsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListUsableSubnetworksRequest + * @memberof google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest * @static - * @param {google.cloud.compute.v1.IListUsableSubnetworksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListUsableSubnetworksRequest} ListUsableSubnetworksRequest instance + * @param {google.cloud.compute.v1.IListUsableRegionBackendBucketsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest} ListUsableRegionBackendBucketsRequest instance */ - ListUsableSubnetworksRequest.create = function create(properties) { - return new ListUsableSubnetworksRequest(properties); + ListUsableRegionBackendBucketsRequest.create = function create(properties) { + return new ListUsableRegionBackendBucketsRequest(properties); }; /** - * Encodes the specified ListUsableSubnetworksRequest message. Does not implicitly {@link google.cloud.compute.v1.ListUsableSubnetworksRequest.verify|verify} messages. + * Encodes the specified ListUsableRegionBackendBucketsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListUsableSubnetworksRequest + * @memberof google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest * @static - * @param {google.cloud.compute.v1.IListUsableSubnetworksRequest} message ListUsableSubnetworksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListUsableRegionBackendBucketsRequest} message ListUsableRegionBackendBucketsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListUsableSubnetworksRequest.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")) @@ -354613,39 +370626,37 @@ 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); - if (message.serviceProject != null && Object.hasOwnProperty.call(message, "serviceProject")) - writer.uint32(/* id 530592655, wireType 2 =*/4244741242).string(message.serviceProject); return writer; }; /** - * Encodes the specified ListUsableSubnetworksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListUsableSubnetworksRequest.verify|verify} messages. + * Encodes the specified ListUsableRegionBackendBucketsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListUsableSubnetworksRequest + * @memberof google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest * @static - * @param {google.cloud.compute.v1.IListUsableSubnetworksRequest} message ListUsableSubnetworksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListUsableRegionBackendBucketsRequest} message ListUsableRegionBackendBucketsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListUsableSubnetworksRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListUsableRegionBackendBucketsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListUsableSubnetworksRequest message from the specified reader or buffer. + * Decodes a ListUsableRegionBackendBucketsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListUsableSubnetworksRequest + * @memberof google.cloud.compute.v1.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.v1.ListUsableSubnetworksRequest} ListUsableSubnetworksRequest + * @returns {google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest} ListUsableRegionBackendBucketsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListUsableSubnetworksRequest.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.v1.ListUsableSubnetworksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -354671,12 +370682,12 @@ message.project = reader.string(); break; } - case 517198390: { - message.returnPartialSuccess = reader.bool(); + case 138946292: { + message.region = reader.string(); break; } - case 530592655: { - message.serviceProject = reader.string(); + case 517198390: { + message.returnPartialSuccess = reader.bool(); break; } default: @@ -354688,30 +370699,30 @@ }; /** - * Decodes a ListUsableSubnetworksRequest 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.v1.ListUsableSubnetworksRequest + * @memberof google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListUsableSubnetworksRequest} ListUsableSubnetworksRequest + * @returns {google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest} ListUsableRegionBackendBucketsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListUsableSubnetworksRequest.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 ListUsableSubnetworksRequest message. + * Verifies a ListUsableRegionBackendBucketsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListUsableSubnetworksRequest + * @memberof google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListUsableSubnetworksRequest.verify = function verify(message) { + ListUsableRegionBackendBucketsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -354738,31 +370749,29 @@ 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.serviceProject != null && message.hasOwnProperty("serviceProject")) { - properties._serviceProject = 1; - if (!$util.isString(message.serviceProject)) - return "serviceProject: string expected"; - } return null; }; /** - * Creates a ListUsableSubnetworksRequest 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.v1.ListUsableSubnetworksRequest + * @memberof google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListUsableSubnetworksRequest} ListUsableSubnetworksRequest + * @returns {google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest} ListUsableRegionBackendBucketsRequest */ - ListUsableSubnetworksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListUsableSubnetworksRequest) + ListUsableRegionBackendBucketsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListUsableSubnetworksRequest(); + var message = new $root.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -354773,28 +370782,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.serviceProject != null) - message.serviceProject = String(object.serviceProject); return message; }; /** - * Creates a plain object from a ListUsableSubnetworksRequest 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.v1.ListUsableSubnetworksRequest + * @memberof google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest * @static - * @param {google.cloud.compute.v1.ListUsableSubnetworksRequest} message ListUsableSubnetworksRequest + * @param {google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest} message ListUsableRegionBackendBucketsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListUsableSubnetworksRequest.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) @@ -354805,6 +370816,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) @@ -354822,67 +370835,62 @@ if (options.oneofs) object._returnPartialSuccess = "returnPartialSuccess"; } - if (message.serviceProject != null && message.hasOwnProperty("serviceProject")) { - object.serviceProject = message.serviceProject; - if (options.oneofs) - object._serviceProject = "serviceProject"; - } return object; }; /** - * Converts this ListUsableSubnetworksRequest to JSON. + * Converts this ListUsableRegionBackendBucketsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListUsableSubnetworksRequest + * @memberof google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest * @instance * @returns {Object.} JSON object */ - ListUsableSubnetworksRequest.prototype.toJSON = function toJSON() { + ListUsableRegionBackendBucketsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListUsableSubnetworksRequest + * Gets the default type url for ListUsableRegionBackendBucketsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListUsableSubnetworksRequest + * @memberof google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListUsableSubnetworksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListUsableRegionBackendBucketsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListUsableSubnetworksRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest"; }; - return ListUsableSubnetworksRequest; + return ListUsableRegionBackendBucketsRequest; })(); - v1.ListVpnGatewaysRequest = (function() { + v1.ListUsableRegionBackendServicesRequest = (function() { /** - * Properties of a ListVpnGatewaysRequest. + * Properties of a ListUsableRegionBackendServicesRequest. * @memberof google.cloud.compute.v1 - * @interface IListVpnGatewaysRequest - * @property {string|null} [filter] ListVpnGatewaysRequest filter - * @property {number|null} [maxResults] ListVpnGatewaysRequest maxResults - * @property {string|null} [orderBy] ListVpnGatewaysRequest orderBy - * @property {string|null} [pageToken] ListVpnGatewaysRequest pageToken - * @property {string|null} [project] ListVpnGatewaysRequest project - * @property {string|null} [region] ListVpnGatewaysRequest region - * @property {boolean|null} [returnPartialSuccess] ListVpnGatewaysRequest returnPartialSuccess + * @interface IListUsableRegionBackendServicesRequest + * @property {string|null} [filter] ListUsableRegionBackendServicesRequest filter + * @property {number|null} [maxResults] ListUsableRegionBackendServicesRequest maxResults + * @property {string|null} [orderBy] ListUsableRegionBackendServicesRequest orderBy + * @property {string|null} [pageToken] ListUsableRegionBackendServicesRequest pageToken + * @property {string|null} [project] ListUsableRegionBackendServicesRequest project + * @property {string|null} [region] ListUsableRegionBackendServicesRequest region + * @property {boolean|null} [returnPartialSuccess] ListUsableRegionBackendServicesRequest returnPartialSuccess */ /** - * Constructs a new ListVpnGatewaysRequest. + * Constructs a new ListUsableRegionBackendServicesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListVpnGatewaysRequest. - * @implements IListVpnGatewaysRequest + * @classdesc Represents a ListUsableRegionBackendServicesRequest. + * @implements IListUsableRegionBackendServicesRequest * @constructor - * @param {google.cloud.compute.v1.IListVpnGatewaysRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListUsableRegionBackendServicesRequest=} [properties] Properties to set */ - function ListVpnGatewaysRequest(properties) { + function ListUsableRegionBackendServicesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -354890,116 +370898,116 @@ } /** - * ListVpnGatewaysRequest filter. + * ListUsableRegionBackendServicesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.ListUsableRegionBackendServicesRequest * @instance */ - ListVpnGatewaysRequest.prototype.filter = null; + ListUsableRegionBackendServicesRequest.prototype.filter = null; /** - * ListVpnGatewaysRequest maxResults. + * ListUsableRegionBackendServicesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.ListUsableRegionBackendServicesRequest * @instance */ - ListVpnGatewaysRequest.prototype.maxResults = null; + ListUsableRegionBackendServicesRequest.prototype.maxResults = null; /** - * ListVpnGatewaysRequest orderBy. + * ListUsableRegionBackendServicesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.ListUsableRegionBackendServicesRequest * @instance */ - ListVpnGatewaysRequest.prototype.orderBy = null; + ListUsableRegionBackendServicesRequest.prototype.orderBy = null; /** - * ListVpnGatewaysRequest pageToken. + * ListUsableRegionBackendServicesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.ListUsableRegionBackendServicesRequest * @instance */ - ListVpnGatewaysRequest.prototype.pageToken = null; + ListUsableRegionBackendServicesRequest.prototype.pageToken = null; /** - * ListVpnGatewaysRequest project. + * ListUsableRegionBackendServicesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.ListUsableRegionBackendServicesRequest * @instance */ - ListVpnGatewaysRequest.prototype.project = ""; + ListUsableRegionBackendServicesRequest.prototype.project = ""; /** - * ListVpnGatewaysRequest region. + * ListUsableRegionBackendServicesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.ListUsableRegionBackendServicesRequest * @instance */ - ListVpnGatewaysRequest.prototype.region = ""; + ListUsableRegionBackendServicesRequest.prototype.region = ""; /** - * ListVpnGatewaysRequest returnPartialSuccess. + * ListUsableRegionBackendServicesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.ListUsableRegionBackendServicesRequest * @instance */ - ListVpnGatewaysRequest.prototype.returnPartialSuccess = null; + ListUsableRegionBackendServicesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListVpnGatewaysRequest.prototype, "_filter", { + Object.defineProperty(ListUsableRegionBackendServicesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListVpnGatewaysRequest.prototype, "_maxResults", { + Object.defineProperty(ListUsableRegionBackendServicesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListVpnGatewaysRequest.prototype, "_orderBy", { + Object.defineProperty(ListUsableRegionBackendServicesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListVpnGatewaysRequest.prototype, "_pageToken", { + Object.defineProperty(ListUsableRegionBackendServicesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListVpnGatewaysRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListUsableRegionBackendServicesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListVpnGatewaysRequest instance using the specified properties. + * Creates a new ListUsableRegionBackendServicesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.ListUsableRegionBackendServicesRequest * @static - * @param {google.cloud.compute.v1.IListVpnGatewaysRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListVpnGatewaysRequest} ListVpnGatewaysRequest instance + * @param {google.cloud.compute.v1.IListUsableRegionBackendServicesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListUsableRegionBackendServicesRequest} ListUsableRegionBackendServicesRequest instance */ - ListVpnGatewaysRequest.create = function create(properties) { - return new ListVpnGatewaysRequest(properties); + ListUsableRegionBackendServicesRequest.create = function create(properties) { + return new ListUsableRegionBackendServicesRequest(properties); }; /** - * Encodes the specified ListVpnGatewaysRequest message. Does not implicitly {@link google.cloud.compute.v1.ListVpnGatewaysRequest.verify|verify} messages. + * Encodes the specified ListUsableRegionBackendServicesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListUsableRegionBackendServicesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.ListUsableRegionBackendServicesRequest * @static - * @param {google.cloud.compute.v1.IListVpnGatewaysRequest} message ListVpnGatewaysRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListUsableRegionBackendServicesRequest} message ListUsableRegionBackendServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVpnGatewaysRequest.encode = function encode(message, writer) { + ListUsableRegionBackendServicesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -355020,33 +371028,33 @@ }; /** - * Encodes the specified ListVpnGatewaysRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListVpnGatewaysRequest.verify|verify} messages. + * Encodes the specified ListUsableRegionBackendServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListUsableRegionBackendServicesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.ListUsableRegionBackendServicesRequest * @static - * @param {google.cloud.compute.v1.IListVpnGatewaysRequest} message ListVpnGatewaysRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListUsableRegionBackendServicesRequest} message ListUsableRegionBackendServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVpnGatewaysRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListUsableRegionBackendServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListVpnGatewaysRequest message from the specified reader or buffer. + * Decodes a ListUsableRegionBackendServicesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.ListUsableRegionBackendServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListVpnGatewaysRequest} ListVpnGatewaysRequest + * @returns {google.cloud.compute.v1.ListUsableRegionBackendServicesRequest} ListUsableRegionBackendServicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVpnGatewaysRequest.decode = function decode(reader, length, error) { + ListUsableRegionBackendServicesRequest.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.v1.ListVpnGatewaysRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListUsableRegionBackendServicesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -355089,30 +371097,30 @@ }; /** - * Decodes a ListVpnGatewaysRequest message from the specified reader or buffer, length delimited. + * Decodes a ListUsableRegionBackendServicesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.ListUsableRegionBackendServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListVpnGatewaysRequest} ListVpnGatewaysRequest + * @returns {google.cloud.compute.v1.ListUsableRegionBackendServicesRequest} ListUsableRegionBackendServicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVpnGatewaysRequest.decodeDelimited = function decodeDelimited(reader) { + ListUsableRegionBackendServicesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListVpnGatewaysRequest message. + * Verifies a ListUsableRegionBackendServicesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.ListUsableRegionBackendServicesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListVpnGatewaysRequest.verify = function verify(message) { + ListUsableRegionBackendServicesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -355151,17 +371159,17 @@ }; /** - * Creates a ListVpnGatewaysRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListUsableRegionBackendServicesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.ListUsableRegionBackendServicesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListVpnGatewaysRequest} ListVpnGatewaysRequest + * @returns {google.cloud.compute.v1.ListUsableRegionBackendServicesRequest} ListUsableRegionBackendServicesRequest */ - ListVpnGatewaysRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListVpnGatewaysRequest) + ListUsableRegionBackendServicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListUsableRegionBackendServicesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListVpnGatewaysRequest(); + var message = new $root.google.cloud.compute.v1.ListUsableRegionBackendServicesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -355180,15 +371188,15 @@ }; /** - * Creates a plain object from a ListVpnGatewaysRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListUsableRegionBackendServicesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.ListUsableRegionBackendServicesRequest * @static - * @param {google.cloud.compute.v1.ListVpnGatewaysRequest} message ListVpnGatewaysRequest + * @param {google.cloud.compute.v1.ListUsableRegionBackendServicesRequest} message ListUsableRegionBackendServicesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListVpnGatewaysRequest.toObject = function toObject(message, options) { + ListUsableRegionBackendServicesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -355229,58 +371237,58 @@ }; /** - * Converts this ListVpnGatewaysRequest to JSON. + * Converts this ListUsableRegionBackendServicesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.ListUsableRegionBackendServicesRequest * @instance * @returns {Object.} JSON object */ - ListVpnGatewaysRequest.prototype.toJSON = function toJSON() { + ListUsableRegionBackendServicesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListVpnGatewaysRequest + * Gets the default type url for ListUsableRegionBackendServicesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.ListUsableRegionBackendServicesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListVpnGatewaysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListUsableRegionBackendServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListVpnGatewaysRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListUsableRegionBackendServicesRequest"; }; - return ListVpnGatewaysRequest; + return ListUsableRegionBackendServicesRequest; })(); - v1.ListVpnTunnelsRequest = (function() { + v1.ListUsableSubnetworksRequest = (function() { /** - * Properties of a ListVpnTunnelsRequest. + * Properties of a ListUsableSubnetworksRequest. * @memberof google.cloud.compute.v1 - * @interface IListVpnTunnelsRequest - * @property {string|null} [filter] ListVpnTunnelsRequest filter - * @property {number|null} [maxResults] ListVpnTunnelsRequest maxResults - * @property {string|null} [orderBy] ListVpnTunnelsRequest orderBy - * @property {string|null} [pageToken] ListVpnTunnelsRequest pageToken - * @property {string|null} [project] ListVpnTunnelsRequest project - * @property {string|null} [region] ListVpnTunnelsRequest region - * @property {boolean|null} [returnPartialSuccess] ListVpnTunnelsRequest returnPartialSuccess + * @interface IListUsableSubnetworksRequest + * @property {string|null} [filter] ListUsableSubnetworksRequest filter + * @property {number|null} [maxResults] ListUsableSubnetworksRequest maxResults + * @property {string|null} [orderBy] ListUsableSubnetworksRequest orderBy + * @property {string|null} [pageToken] ListUsableSubnetworksRequest pageToken + * @property {string|null} [project] ListUsableSubnetworksRequest project + * @property {boolean|null} [returnPartialSuccess] ListUsableSubnetworksRequest returnPartialSuccess + * @property {string|null} [serviceProject] ListUsableSubnetworksRequest serviceProject */ /** - * Constructs a new ListVpnTunnelsRequest. + * Constructs a new ListUsableSubnetworksRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListVpnTunnelsRequest. - * @implements IListVpnTunnelsRequest + * @classdesc Represents a ListUsableSubnetworksRequest. + * @implements IListUsableSubnetworksRequest * @constructor - * @param {google.cloud.compute.v1.IListVpnTunnelsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListUsableSubnetworksRequest=} [properties] Properties to set */ - function ListVpnTunnelsRequest(properties) { + function ListUsableSubnetworksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -355288,124 +371296,128 @@ } /** - * ListVpnTunnelsRequest filter. + * ListUsableSubnetworksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.ListUsableSubnetworksRequest * @instance */ - ListVpnTunnelsRequest.prototype.filter = null; + ListUsableSubnetworksRequest.prototype.filter = null; /** - * ListVpnTunnelsRequest maxResults. + * ListUsableSubnetworksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.ListUsableSubnetworksRequest * @instance */ - ListVpnTunnelsRequest.prototype.maxResults = null; + ListUsableSubnetworksRequest.prototype.maxResults = null; /** - * ListVpnTunnelsRequest orderBy. + * ListUsableSubnetworksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.ListUsableSubnetworksRequest * @instance */ - ListVpnTunnelsRequest.prototype.orderBy = null; + ListUsableSubnetworksRequest.prototype.orderBy = null; /** - * ListVpnTunnelsRequest pageToken. + * ListUsableSubnetworksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.ListUsableSubnetworksRequest * @instance */ - ListVpnTunnelsRequest.prototype.pageToken = null; + ListUsableSubnetworksRequest.prototype.pageToken = null; /** - * ListVpnTunnelsRequest project. + * ListUsableSubnetworksRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.ListUsableSubnetworksRequest * @instance */ - ListVpnTunnelsRequest.prototype.project = ""; + ListUsableSubnetworksRequest.prototype.project = ""; /** - * ListVpnTunnelsRequest region. - * @member {string} region - * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest + * ListUsableSubnetworksRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1.ListUsableSubnetworksRequest * @instance */ - ListVpnTunnelsRequest.prototype.region = ""; + ListUsableSubnetworksRequest.prototype.returnPartialSuccess = null; /** - * ListVpnTunnelsRequest returnPartialSuccess. - * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest + * ListUsableSubnetworksRequest serviceProject. + * @member {string|null|undefined} serviceProject + * @memberof google.cloud.compute.v1.ListUsableSubnetworksRequest * @instance */ - ListVpnTunnelsRequest.prototype.returnPartialSuccess = null; + ListUsableSubnetworksRequest.prototype.serviceProject = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListVpnTunnelsRequest.prototype, "_filter", { + Object.defineProperty(ListUsableSubnetworksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListVpnTunnelsRequest.prototype, "_maxResults", { + Object.defineProperty(ListUsableSubnetworksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListVpnTunnelsRequest.prototype, "_orderBy", { + Object.defineProperty(ListUsableSubnetworksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListVpnTunnelsRequest.prototype, "_pageToken", { + Object.defineProperty(ListUsableSubnetworksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListVpnTunnelsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListUsableSubnetworksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListUsableSubnetworksRequest.prototype, "_serviceProject", { + get: $util.oneOfGetter($oneOfFields = ["serviceProject"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** - * Creates a new ListVpnTunnelsRequest instance using the specified properties. + * Creates a new ListUsableSubnetworksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.ListUsableSubnetworksRequest * @static - * @param {google.cloud.compute.v1.IListVpnTunnelsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListVpnTunnelsRequest} ListVpnTunnelsRequest instance + * @param {google.cloud.compute.v1.IListUsableSubnetworksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListUsableSubnetworksRequest} ListUsableSubnetworksRequest instance */ - ListVpnTunnelsRequest.create = function create(properties) { - return new ListVpnTunnelsRequest(properties); + ListUsableSubnetworksRequest.create = function create(properties) { + return new ListUsableSubnetworksRequest(properties); }; /** - * Encodes the specified ListVpnTunnelsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListVpnTunnelsRequest.verify|verify} messages. + * Encodes the specified ListUsableSubnetworksRequest message. Does not implicitly {@link google.cloud.compute.v1.ListUsableSubnetworksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.ListUsableSubnetworksRequest * @static - * @param {google.cloud.compute.v1.IListVpnTunnelsRequest} message ListVpnTunnelsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListUsableSubnetworksRequest} message ListUsableSubnetworksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVpnTunnelsRequest.encode = function encode(message, writer) { + ListUsableSubnetworksRequest.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")) @@ -355414,37 +371426,39 @@ 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); + if (message.serviceProject != null && Object.hasOwnProperty.call(message, "serviceProject")) + writer.uint32(/* id 530592655, wireType 2 =*/4244741242).string(message.serviceProject); return writer; }; /** - * Encodes the specified ListVpnTunnelsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListVpnTunnelsRequest.verify|verify} messages. + * Encodes the specified ListUsableSubnetworksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListUsableSubnetworksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.ListUsableSubnetworksRequest * @static - * @param {google.cloud.compute.v1.IListVpnTunnelsRequest} message ListVpnTunnelsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListUsableSubnetworksRequest} message ListUsableSubnetworksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVpnTunnelsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListUsableSubnetworksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListVpnTunnelsRequest message from the specified reader or buffer. + * Decodes a ListUsableSubnetworksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.ListUsableSubnetworksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListVpnTunnelsRequest} ListVpnTunnelsRequest + * @returns {google.cloud.compute.v1.ListUsableSubnetworksRequest} ListUsableSubnetworksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVpnTunnelsRequest.decode = function decode(reader, length, error) { + ListUsableSubnetworksRequest.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.v1.ListVpnTunnelsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListUsableSubnetworksRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -355470,14 +371484,14 @@ message.project = reader.string(); break; } - case 138946292: { - message.region = reader.string(); - break; - } case 517198390: { message.returnPartialSuccess = reader.bool(); break; } + case 530592655: { + message.serviceProject = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -355487,30 +371501,30 @@ }; /** - * Decodes a ListVpnTunnelsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListUsableSubnetworksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.ListUsableSubnetworksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListVpnTunnelsRequest} ListVpnTunnelsRequest + * @returns {google.cloud.compute.v1.ListUsableSubnetworksRequest} ListUsableSubnetworksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVpnTunnelsRequest.decodeDelimited = function decodeDelimited(reader) { + ListUsableSubnetworksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListVpnTunnelsRequest message. + * Verifies a ListUsableSubnetworksRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.ListUsableSubnetworksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListVpnTunnelsRequest.verify = function verify(message) { + ListUsableSubnetworksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -355537,29 +371551,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.serviceProject != null && message.hasOwnProperty("serviceProject")) { + properties._serviceProject = 1; + if (!$util.isString(message.serviceProject)) + return "serviceProject: string expected"; + } return null; }; /** - * Creates a ListVpnTunnelsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListUsableSubnetworksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.ListUsableSubnetworksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListVpnTunnelsRequest} ListVpnTunnelsRequest + * @returns {google.cloud.compute.v1.ListUsableSubnetworksRequest} ListUsableSubnetworksRequest */ - ListVpnTunnelsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListVpnTunnelsRequest) + ListUsableSubnetworksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListUsableSubnetworksRequest) return object; - var message = new $root.google.cloud.compute.v1.ListVpnTunnelsRequest(); + var message = new $root.google.cloud.compute.v1.ListUsableSubnetworksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -355570,30 +371586,28 @@ 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.serviceProject != null) + message.serviceProject = String(object.serviceProject); return message; }; /** - * Creates a plain object from a ListVpnTunnelsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListUsableSubnetworksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.ListUsableSubnetworksRequest * @static - * @param {google.cloud.compute.v1.ListVpnTunnelsRequest} message ListVpnTunnelsRequest + * @param {google.cloud.compute.v1.ListUsableSubnetworksRequest} message ListUsableSubnetworksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListVpnTunnelsRequest.toObject = function toObject(message, options) { + ListUsableSubnetworksRequest.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) @@ -355604,8 +371618,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) @@ -355623,62 +371635,67 @@ if (options.oneofs) object._returnPartialSuccess = "returnPartialSuccess"; } + if (message.serviceProject != null && message.hasOwnProperty("serviceProject")) { + object.serviceProject = message.serviceProject; + if (options.oneofs) + object._serviceProject = "serviceProject"; + } return object; }; /** - * Converts this ListVpnTunnelsRequest to JSON. + * Converts this ListUsableSubnetworksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.ListUsableSubnetworksRequest * @instance * @returns {Object.} JSON object */ - ListVpnTunnelsRequest.prototype.toJSON = function toJSON() { + ListUsableSubnetworksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListVpnTunnelsRequest + * Gets the default type url for ListUsableSubnetworksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.ListUsableSubnetworksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListVpnTunnelsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListUsableSubnetworksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListVpnTunnelsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListUsableSubnetworksRequest"; }; - return ListVpnTunnelsRequest; + return ListUsableSubnetworksRequest; })(); - v1.ListWireGroupsRequest = (function() { + v1.ListVpnGatewaysRequest = (function() { /** - * Properties of a ListWireGroupsRequest. + * Properties of a ListVpnGatewaysRequest. * @memberof google.cloud.compute.v1 - * @interface IListWireGroupsRequest - * @property {string|null} [crossSiteNetwork] ListWireGroupsRequest crossSiteNetwork - * @property {string|null} [filter] ListWireGroupsRequest filter - * @property {number|null} [maxResults] ListWireGroupsRequest maxResults - * @property {string|null} [orderBy] ListWireGroupsRequest orderBy - * @property {string|null} [pageToken] ListWireGroupsRequest pageToken - * @property {string|null} [project] ListWireGroupsRequest project - * @property {boolean|null} [returnPartialSuccess] ListWireGroupsRequest returnPartialSuccess + * @interface IListVpnGatewaysRequest + * @property {string|null} [filter] ListVpnGatewaysRequest filter + * @property {number|null} [maxResults] ListVpnGatewaysRequest maxResults + * @property {string|null} [orderBy] ListVpnGatewaysRequest orderBy + * @property {string|null} [pageToken] ListVpnGatewaysRequest pageToken + * @property {string|null} [project] ListVpnGatewaysRequest project + * @property {string|null} [region] ListVpnGatewaysRequest region + * @property {boolean|null} [returnPartialSuccess] ListVpnGatewaysRequest returnPartialSuccess */ /** - * Constructs a new ListWireGroupsRequest. + * Constructs a new ListVpnGatewaysRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListWireGroupsRequest. - * @implements IListWireGroupsRequest + * @classdesc Represents a ListVpnGatewaysRequest. + * @implements IListVpnGatewaysRequest * @constructor - * @param {google.cloud.compute.v1.IListWireGroupsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListVpnGatewaysRequest=} [properties] Properties to set */ - function ListWireGroupsRequest(properties) { + function ListVpnGatewaysRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -355686,124 +371703,124 @@ } /** - * ListWireGroupsRequest crossSiteNetwork. - * @member {string} crossSiteNetwork - * @memberof google.cloud.compute.v1.ListWireGroupsRequest - * @instance - */ - ListWireGroupsRequest.prototype.crossSiteNetwork = ""; - - /** - * ListWireGroupsRequest filter. + * ListVpnGatewaysRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListWireGroupsRequest + * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest * @instance */ - ListWireGroupsRequest.prototype.filter = null; + ListVpnGatewaysRequest.prototype.filter = null; /** - * ListWireGroupsRequest maxResults. + * ListVpnGatewaysRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListWireGroupsRequest + * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest * @instance */ - ListWireGroupsRequest.prototype.maxResults = null; + ListVpnGatewaysRequest.prototype.maxResults = null; /** - * ListWireGroupsRequest orderBy. + * ListVpnGatewaysRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListWireGroupsRequest + * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest * @instance */ - ListWireGroupsRequest.prototype.orderBy = null; + ListVpnGatewaysRequest.prototype.orderBy = null; /** - * ListWireGroupsRequest pageToken. + * ListVpnGatewaysRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListWireGroupsRequest + * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest * @instance */ - ListWireGroupsRequest.prototype.pageToken = null; + ListVpnGatewaysRequest.prototype.pageToken = null; /** - * ListWireGroupsRequest project. + * ListVpnGatewaysRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListWireGroupsRequest + * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest * @instance */ - ListWireGroupsRequest.prototype.project = ""; + ListVpnGatewaysRequest.prototype.project = ""; /** - * ListWireGroupsRequest returnPartialSuccess. + * ListVpnGatewaysRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest + * @instance + */ + ListVpnGatewaysRequest.prototype.region = ""; + + /** + * ListVpnGatewaysRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListWireGroupsRequest + * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest * @instance */ - ListWireGroupsRequest.prototype.returnPartialSuccess = null; + ListVpnGatewaysRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListWireGroupsRequest.prototype, "_filter", { + Object.defineProperty(ListVpnGatewaysRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListWireGroupsRequest.prototype, "_maxResults", { + Object.defineProperty(ListVpnGatewaysRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListWireGroupsRequest.prototype, "_orderBy", { + Object.defineProperty(ListVpnGatewaysRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListWireGroupsRequest.prototype, "_pageToken", { + Object.defineProperty(ListVpnGatewaysRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListWireGroupsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListVpnGatewaysRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListWireGroupsRequest instance using the specified properties. + * Creates a new ListVpnGatewaysRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListWireGroupsRequest + * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest * @static - * @param {google.cloud.compute.v1.IListWireGroupsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListWireGroupsRequest} ListWireGroupsRequest instance + * @param {google.cloud.compute.v1.IListVpnGatewaysRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListVpnGatewaysRequest} ListVpnGatewaysRequest instance */ - ListWireGroupsRequest.create = function create(properties) { - return new ListWireGroupsRequest(properties); + ListVpnGatewaysRequest.create = function create(properties) { + return new ListVpnGatewaysRequest(properties); }; /** - * Encodes the specified ListWireGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListWireGroupsRequest.verify|verify} messages. + * Encodes the specified ListVpnGatewaysRequest message. Does not implicitly {@link google.cloud.compute.v1.ListVpnGatewaysRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListWireGroupsRequest + * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest * @static - * @param {google.cloud.compute.v1.IListWireGroupsRequest} message ListWireGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListVpnGatewaysRequest} message ListVpnGatewaysRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListWireGroupsRequest.encode = function encode(message, writer) { + ListVpnGatewaysRequest.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.crossSiteNetwork != null && Object.hasOwnProperty.call(message, "crossSiteNetwork")) - writer.uint32(/* id 108192469, wireType 2 =*/865539754).string(message.crossSiteNetwork); + 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")) @@ -355816,42 +371833,38 @@ }; /** - * Encodes the specified ListWireGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListWireGroupsRequest.verify|verify} messages. + * Encodes the specified ListVpnGatewaysRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListVpnGatewaysRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListWireGroupsRequest + * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest * @static - * @param {google.cloud.compute.v1.IListWireGroupsRequest} message ListWireGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListVpnGatewaysRequest} message ListVpnGatewaysRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListWireGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListVpnGatewaysRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListWireGroupsRequest message from the specified reader or buffer. + * Decodes a ListVpnGatewaysRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListWireGroupsRequest + * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListWireGroupsRequest} ListWireGroupsRequest + * @returns {google.cloud.compute.v1.ListVpnGatewaysRequest} ListVpnGatewaysRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListWireGroupsRequest.decode = function decode(reader, length, error) { + ListVpnGatewaysRequest.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.v1.ListWireGroupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListVpnGatewaysRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { - case 108192469: { - message.crossSiteNetwork = reader.string(); - break; - } case 336120696: { message.filter = reader.string(); break; @@ -355872,6 +371885,10 @@ message.project = reader.string(); break; } + case 138946292: { + message.region = reader.string(); + break; + } case 517198390: { message.returnPartialSuccess = reader.bool(); break; @@ -355885,36 +371902,33 @@ }; /** - * Decodes a ListWireGroupsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListVpnGatewaysRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListWireGroupsRequest + * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListWireGroupsRequest} ListWireGroupsRequest + * @returns {google.cloud.compute.v1.ListVpnGatewaysRequest} ListVpnGatewaysRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListWireGroupsRequest.decodeDelimited = function decodeDelimited(reader) { + ListVpnGatewaysRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListWireGroupsRequest message. + * Verifies a ListVpnGatewaysRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListWireGroupsRequest + * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListWireGroupsRequest.verify = function verify(message) { + ListVpnGatewaysRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.crossSiteNetwork != null && message.hasOwnProperty("crossSiteNetwork")) - if (!$util.isString(message.crossSiteNetwork)) - return "crossSiteNetwork: string expected"; if (message.filter != null && message.hasOwnProperty("filter")) { properties._filter = 1; if (!$util.isString(message.filter)) @@ -355938,6 +371952,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") @@ -355947,19 +371964,17 @@ }; /** - * Creates a ListWireGroupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListVpnGatewaysRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListWireGroupsRequest + * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListWireGroupsRequest} ListWireGroupsRequest + * @returns {google.cloud.compute.v1.ListVpnGatewaysRequest} ListVpnGatewaysRequest */ - ListWireGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListWireGroupsRequest) + ListVpnGatewaysRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListVpnGatewaysRequest) return object; - var message = new $root.google.cloud.compute.v1.ListWireGroupsRequest(); - if (object.crossSiteNetwork != null) - message.crossSiteNetwork = String(object.crossSiteNetwork); + var message = new $root.google.cloud.compute.v1.ListVpnGatewaysRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -355970,26 +371985,28 @@ 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 ListWireGroupsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListVpnGatewaysRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListWireGroupsRequest + * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest * @static - * @param {google.cloud.compute.v1.ListWireGroupsRequest} message ListWireGroupsRequest + * @param {google.cloud.compute.v1.ListVpnGatewaysRequest} message ListVpnGatewaysRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListWireGroupsRequest.toObject = function toObject(message, options) { + ListVpnGatewaysRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.crossSiteNetwork = ""; + object.region = ""; object.project = ""; } if (message.pageToken != null && message.hasOwnProperty("pageToken")) { @@ -356002,8 +372019,8 @@ if (options.oneofs) object._maxResults = "maxResults"; } - if (message.crossSiteNetwork != null && message.hasOwnProperty("crossSiteNetwork")) - object.crossSiteNetwork = message.crossSiteNetwork; + 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) @@ -356025,58 +372042,58 @@ }; /** - * Converts this ListWireGroupsRequest to JSON. + * Converts this ListVpnGatewaysRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListWireGroupsRequest + * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest * @instance * @returns {Object.} JSON object */ - ListWireGroupsRequest.prototype.toJSON = function toJSON() { + ListVpnGatewaysRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListWireGroupsRequest + * Gets the default type url for ListVpnGatewaysRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListWireGroupsRequest + * @memberof google.cloud.compute.v1.ListVpnGatewaysRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListWireGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListVpnGatewaysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListWireGroupsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListVpnGatewaysRequest"; }; - return ListWireGroupsRequest; + return ListVpnGatewaysRequest; })(); - v1.ListXpnHostsProjectsRequest = (function() { + v1.ListVpnTunnelsRequest = (function() { /** - * Properties of a ListXpnHostsProjectsRequest. + * Properties of a ListVpnTunnelsRequest. * @memberof google.cloud.compute.v1 - * @interface IListXpnHostsProjectsRequest - * @property {string|null} [filter] ListXpnHostsProjectsRequest filter - * @property {number|null} [maxResults] ListXpnHostsProjectsRequest maxResults - * @property {string|null} [orderBy] ListXpnHostsProjectsRequest orderBy - * @property {string|null} [pageToken] ListXpnHostsProjectsRequest pageToken - * @property {string|null} [project] ListXpnHostsProjectsRequest project - * @property {google.cloud.compute.v1.IProjectsListXpnHostsRequest|null} [projectsListXpnHostsRequestResource] ListXpnHostsProjectsRequest projectsListXpnHostsRequestResource - * @property {boolean|null} [returnPartialSuccess] ListXpnHostsProjectsRequest returnPartialSuccess + * @interface IListVpnTunnelsRequest + * @property {string|null} [filter] ListVpnTunnelsRequest filter + * @property {number|null} [maxResults] ListVpnTunnelsRequest maxResults + * @property {string|null} [orderBy] ListVpnTunnelsRequest orderBy + * @property {string|null} [pageToken] ListVpnTunnelsRequest pageToken + * @property {string|null} [project] ListVpnTunnelsRequest project + * @property {string|null} [region] ListVpnTunnelsRequest region + * @property {boolean|null} [returnPartialSuccess] ListVpnTunnelsRequest returnPartialSuccess */ /** - * Constructs a new ListXpnHostsProjectsRequest. + * Constructs a new ListVpnTunnelsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListXpnHostsProjectsRequest. - * @implements IListXpnHostsProjectsRequest + * @classdesc Represents a ListVpnTunnelsRequest. + * @implements IListVpnTunnelsRequest * @constructor - * @param {google.cloud.compute.v1.IListXpnHostsProjectsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListVpnTunnelsRequest=} [properties] Properties to set */ - function ListXpnHostsProjectsRequest(properties) { + function ListVpnTunnelsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -356084,128 +372101,128 @@ } /** - * ListXpnHostsProjectsRequest filter. + * ListVpnTunnelsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest * @instance */ - ListXpnHostsProjectsRequest.prototype.filter = null; + ListVpnTunnelsRequest.prototype.filter = null; /** - * ListXpnHostsProjectsRequest maxResults. + * ListVpnTunnelsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest * @instance */ - ListXpnHostsProjectsRequest.prototype.maxResults = null; + ListVpnTunnelsRequest.prototype.maxResults = null; /** - * ListXpnHostsProjectsRequest orderBy. + * ListVpnTunnelsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest * @instance */ - ListXpnHostsProjectsRequest.prototype.orderBy = null; + ListVpnTunnelsRequest.prototype.orderBy = null; /** - * ListXpnHostsProjectsRequest pageToken. + * ListVpnTunnelsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest * @instance */ - ListXpnHostsProjectsRequest.prototype.pageToken = null; + ListVpnTunnelsRequest.prototype.pageToken = null; /** - * ListXpnHostsProjectsRequest project. + * ListVpnTunnelsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest * @instance */ - ListXpnHostsProjectsRequest.prototype.project = ""; + ListVpnTunnelsRequest.prototype.project = ""; /** - * ListXpnHostsProjectsRequest projectsListXpnHostsRequestResource. - * @member {google.cloud.compute.v1.IProjectsListXpnHostsRequest|null|undefined} projectsListXpnHostsRequestResource - * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * ListVpnTunnelsRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest * @instance */ - ListXpnHostsProjectsRequest.prototype.projectsListXpnHostsRequestResource = null; + ListVpnTunnelsRequest.prototype.region = ""; /** - * ListXpnHostsProjectsRequest returnPartialSuccess. + * ListVpnTunnelsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest * @instance */ - ListXpnHostsProjectsRequest.prototype.returnPartialSuccess = null; + ListVpnTunnelsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListXpnHostsProjectsRequest.prototype, "_filter", { + Object.defineProperty(ListVpnTunnelsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListXpnHostsProjectsRequest.prototype, "_maxResults", { + Object.defineProperty(ListVpnTunnelsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListXpnHostsProjectsRequest.prototype, "_orderBy", { + Object.defineProperty(ListVpnTunnelsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListXpnHostsProjectsRequest.prototype, "_pageToken", { + Object.defineProperty(ListVpnTunnelsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListXpnHostsProjectsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListVpnTunnelsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListXpnHostsProjectsRequest instance using the specified properties. + * Creates a new ListVpnTunnelsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest * @static - * @param {google.cloud.compute.v1.IListXpnHostsProjectsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListXpnHostsProjectsRequest} ListXpnHostsProjectsRequest instance + * @param {google.cloud.compute.v1.IListVpnTunnelsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListVpnTunnelsRequest} ListVpnTunnelsRequest instance */ - ListXpnHostsProjectsRequest.create = function create(properties) { - return new ListXpnHostsProjectsRequest(properties); + ListVpnTunnelsRequest.create = function create(properties) { + return new ListVpnTunnelsRequest(properties); }; /** - * Encodes the specified ListXpnHostsProjectsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListXpnHostsProjectsRequest.verify|verify} messages. + * Encodes the specified ListVpnTunnelsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListVpnTunnelsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest * @static - * @param {google.cloud.compute.v1.IListXpnHostsProjectsRequest} message ListXpnHostsProjectsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListVpnTunnelsRequest} message ListVpnTunnelsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListXpnHostsProjectsRequest.encode = function encode(message, writer) { + ListVpnTunnelsRequest.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.projectsListXpnHostsRequestResource != null && Object.hasOwnProperty.call(message, "projectsListXpnHostsRequestResource")) - $root.google.cloud.compute.v1.ProjectsListXpnHostsRequest.encode(message.projectsListXpnHostsRequestResource, writer.uint32(/* id 238266391, wireType 2 =*/1906131130).fork()).ldelim(); 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")) @@ -356214,33 +372231,33 @@ }; /** - * Encodes the specified ListXpnHostsProjectsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListXpnHostsProjectsRequest.verify|verify} messages. + * Encodes the specified ListVpnTunnelsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListVpnTunnelsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest * @static - * @param {google.cloud.compute.v1.IListXpnHostsProjectsRequest} message ListXpnHostsProjectsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListVpnTunnelsRequest} message ListVpnTunnelsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListXpnHostsProjectsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListVpnTunnelsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListXpnHostsProjectsRequest message from the specified reader or buffer. + * Decodes a ListVpnTunnelsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListXpnHostsProjectsRequest} ListXpnHostsProjectsRequest + * @returns {google.cloud.compute.v1.ListVpnTunnelsRequest} ListVpnTunnelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListXpnHostsProjectsRequest.decode = function decode(reader, length, error) { + ListVpnTunnelsRequest.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.v1.ListXpnHostsProjectsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListVpnTunnelsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -356266,8 +372283,8 @@ message.project = reader.string(); break; } - case 238266391: { - message.projectsListXpnHostsRequestResource = $root.google.cloud.compute.v1.ProjectsListXpnHostsRequest.decode(reader, reader.uint32()); + case 138946292: { + message.region = reader.string(); break; } case 517198390: { @@ -356283,30 +372300,30 @@ }; /** - * Decodes a ListXpnHostsProjectsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListVpnTunnelsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListXpnHostsProjectsRequest} ListXpnHostsProjectsRequest + * @returns {google.cloud.compute.v1.ListVpnTunnelsRequest} ListVpnTunnelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListXpnHostsProjectsRequest.decodeDelimited = function decodeDelimited(reader) { + ListVpnTunnelsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListXpnHostsProjectsRequest message. + * Verifies a ListVpnTunnelsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListXpnHostsProjectsRequest.verify = function verify(message) { + ListVpnTunnelsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -356333,11 +372350,9 @@ if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; - if (message.projectsListXpnHostsRequestResource != null && message.hasOwnProperty("projectsListXpnHostsRequestResource")) { - var error = $root.google.cloud.compute.v1.ProjectsListXpnHostsRequest.verify(message.projectsListXpnHostsRequestResource); - if (error) - return "projectsListXpnHostsRequestResource." + error; - } + 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") @@ -356347,17 +372362,17 @@ }; /** - * Creates a ListXpnHostsProjectsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListVpnTunnelsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListXpnHostsProjectsRequest} ListXpnHostsProjectsRequest + * @returns {google.cloud.compute.v1.ListVpnTunnelsRequest} ListVpnTunnelsRequest */ - ListXpnHostsProjectsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListXpnHostsProjectsRequest) + ListVpnTunnelsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListVpnTunnelsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListXpnHostsProjectsRequest(); + var message = new $root.google.cloud.compute.v1.ListVpnTunnelsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -356368,32 +372383,29 @@ message.pageToken = String(object.pageToken); if (object.project != null) message.project = String(object.project); - if (object.projectsListXpnHostsRequestResource != null) { - if (typeof object.projectsListXpnHostsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1.ListXpnHostsProjectsRequest.projectsListXpnHostsRequestResource: object expected"); - message.projectsListXpnHostsRequestResource = $root.google.cloud.compute.v1.ProjectsListXpnHostsRequest.fromObject(object.projectsListXpnHostsRequestResource); - } + 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 ListXpnHostsProjectsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListVpnTunnelsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest * @static - * @param {google.cloud.compute.v1.ListXpnHostsProjectsRequest} message ListXpnHostsProjectsRequest + * @param {google.cloud.compute.v1.ListVpnTunnelsRequest} message ListVpnTunnelsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListXpnHostsProjectsRequest.toObject = function toObject(message, options) { + ListVpnTunnelsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { + object.region = ""; object.project = ""; - object.projectsListXpnHostsRequestResource = null; } if (message.pageToken != null && message.hasOwnProperty("pageToken")) { object.pageToken = message.pageToken; @@ -356405,6 +372417,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) @@ -356412,8 +372426,6 @@ } if (message.project != null && message.hasOwnProperty("project")) object.project = message.project; - if (message.projectsListXpnHostsRequestResource != null && message.hasOwnProperty("projectsListXpnHostsRequestResource")) - object.projectsListXpnHostsRequestResource = $root.google.cloud.compute.v1.ProjectsListXpnHostsRequest.toObject(message.projectsListXpnHostsRequestResource, options); if (message.filter != null && message.hasOwnProperty("filter")) { object.filter = message.filter; if (options.oneofs) @@ -356428,58 +372440,58 @@ }; /** - * Converts this ListXpnHostsProjectsRequest to JSON. + * Converts this ListVpnTunnelsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest * @instance * @returns {Object.} JSON object */ - ListXpnHostsProjectsRequest.prototype.toJSON = function toJSON() { + ListVpnTunnelsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListXpnHostsProjectsRequest + * Gets the default type url for ListVpnTunnelsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @memberof google.cloud.compute.v1.ListVpnTunnelsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListXpnHostsProjectsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListVpnTunnelsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListXpnHostsProjectsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListVpnTunnelsRequest"; }; - return ListXpnHostsProjectsRequest; + return ListVpnTunnelsRequest; })(); - v1.ListZoneOperationsRequest = (function() { + v1.ListWireGroupsRequest = (function() { /** - * Properties of a ListZoneOperationsRequest. + * Properties of a ListWireGroupsRequest. * @memberof google.cloud.compute.v1 - * @interface IListZoneOperationsRequest - * @property {string|null} [filter] ListZoneOperationsRequest filter - * @property {number|null} [maxResults] ListZoneOperationsRequest maxResults - * @property {string|null} [orderBy] ListZoneOperationsRequest orderBy - * @property {string|null} [pageToken] ListZoneOperationsRequest pageToken - * @property {string|null} [project] ListZoneOperationsRequest project - * @property {boolean|null} [returnPartialSuccess] ListZoneOperationsRequest returnPartialSuccess - * @property {string|null} [zone] ListZoneOperationsRequest zone + * @interface IListWireGroupsRequest + * @property {string|null} [crossSiteNetwork] ListWireGroupsRequest crossSiteNetwork + * @property {string|null} [filter] ListWireGroupsRequest filter + * @property {number|null} [maxResults] ListWireGroupsRequest maxResults + * @property {string|null} [orderBy] ListWireGroupsRequest orderBy + * @property {string|null} [pageToken] ListWireGroupsRequest pageToken + * @property {string|null} [project] ListWireGroupsRequest project + * @property {boolean|null} [returnPartialSuccess] ListWireGroupsRequest returnPartialSuccess */ /** - * Constructs a new ListZoneOperationsRequest. + * Constructs a new ListWireGroupsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListZoneOperationsRequest. - * @implements IListZoneOperationsRequest + * @classdesc Represents a ListWireGroupsRequest. + * @implements IListWireGroupsRequest * @constructor - * @param {google.cloud.compute.v1.IListZoneOperationsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListWireGroupsRequest=} [properties] Properties to set */ - function ListZoneOperationsRequest(properties) { + function ListWireGroupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -356487,124 +372499,124 @@ } /** - * ListZoneOperationsRequest filter. + * ListWireGroupsRequest crossSiteNetwork. + * @member {string} crossSiteNetwork + * @memberof google.cloud.compute.v1.ListWireGroupsRequest + * @instance + */ + ListWireGroupsRequest.prototype.crossSiteNetwork = ""; + + /** + * ListWireGroupsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListZoneOperationsRequest + * @memberof google.cloud.compute.v1.ListWireGroupsRequest * @instance */ - ListZoneOperationsRequest.prototype.filter = null; + ListWireGroupsRequest.prototype.filter = null; /** - * ListZoneOperationsRequest maxResults. + * ListWireGroupsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListZoneOperationsRequest + * @memberof google.cloud.compute.v1.ListWireGroupsRequest * @instance */ - ListZoneOperationsRequest.prototype.maxResults = null; + ListWireGroupsRequest.prototype.maxResults = null; /** - * ListZoneOperationsRequest orderBy. + * ListWireGroupsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListZoneOperationsRequest + * @memberof google.cloud.compute.v1.ListWireGroupsRequest * @instance */ - ListZoneOperationsRequest.prototype.orderBy = null; + ListWireGroupsRequest.prototype.orderBy = null; /** - * ListZoneOperationsRequest pageToken. + * ListWireGroupsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListZoneOperationsRequest + * @memberof google.cloud.compute.v1.ListWireGroupsRequest * @instance */ - ListZoneOperationsRequest.prototype.pageToken = null; + ListWireGroupsRequest.prototype.pageToken = null; /** - * ListZoneOperationsRequest project. + * ListWireGroupsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListZoneOperationsRequest + * @memberof google.cloud.compute.v1.ListWireGroupsRequest * @instance */ - ListZoneOperationsRequest.prototype.project = ""; + ListWireGroupsRequest.prototype.project = ""; /** - * ListZoneOperationsRequest returnPartialSuccess. + * ListWireGroupsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListZoneOperationsRequest - * @instance - */ - ListZoneOperationsRequest.prototype.returnPartialSuccess = null; - - /** - * ListZoneOperationsRequest zone. - * @member {string} zone - * @memberof google.cloud.compute.v1.ListZoneOperationsRequest + * @memberof google.cloud.compute.v1.ListWireGroupsRequest * @instance */ - ListZoneOperationsRequest.prototype.zone = ""; + ListWireGroupsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListZoneOperationsRequest.prototype, "_filter", { + Object.defineProperty(ListWireGroupsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListZoneOperationsRequest.prototype, "_maxResults", { + Object.defineProperty(ListWireGroupsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListZoneOperationsRequest.prototype, "_orderBy", { + Object.defineProperty(ListWireGroupsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListZoneOperationsRequest.prototype, "_pageToken", { + Object.defineProperty(ListWireGroupsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListZoneOperationsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListWireGroupsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListZoneOperationsRequest instance using the specified properties. + * Creates a new ListWireGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListZoneOperationsRequest + * @memberof google.cloud.compute.v1.ListWireGroupsRequest * @static - * @param {google.cloud.compute.v1.IListZoneOperationsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListZoneOperationsRequest} ListZoneOperationsRequest instance + * @param {google.cloud.compute.v1.IListWireGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListWireGroupsRequest} ListWireGroupsRequest instance */ - ListZoneOperationsRequest.create = function create(properties) { - return new ListZoneOperationsRequest(properties); + ListWireGroupsRequest.create = function create(properties) { + return new ListWireGroupsRequest(properties); }; /** - * Encodes the specified ListZoneOperationsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListZoneOperationsRequest.verify|verify} messages. + * Encodes the specified ListWireGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListWireGroupsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListZoneOperationsRequest + * @memberof google.cloud.compute.v1.ListWireGroupsRequest * @static - * @param {google.cloud.compute.v1.IListZoneOperationsRequest} message ListZoneOperationsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListWireGroupsRequest} message ListWireGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListZoneOperationsRequest.encode = function encode(message, writer) { + ListWireGroupsRequest.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.crossSiteNetwork != null && Object.hasOwnProperty.call(message, "crossSiteNetwork")) + writer.uint32(/* id 108192469, wireType 2 =*/865539754).string(message.crossSiteNetwork); 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")) @@ -356617,38 +372629,42 @@ }; /** - * Encodes the specified ListZoneOperationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListZoneOperationsRequest.verify|verify} messages. + * Encodes the specified ListWireGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListWireGroupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListZoneOperationsRequest + * @memberof google.cloud.compute.v1.ListWireGroupsRequest * @static - * @param {google.cloud.compute.v1.IListZoneOperationsRequest} message ListZoneOperationsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListWireGroupsRequest} message ListWireGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListZoneOperationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListWireGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListZoneOperationsRequest message from the specified reader or buffer. + * Decodes a ListWireGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListZoneOperationsRequest + * @memberof google.cloud.compute.v1.ListWireGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListZoneOperationsRequest} ListZoneOperationsRequest + * @returns {google.cloud.compute.v1.ListWireGroupsRequest} ListWireGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListZoneOperationsRequest.decode = function decode(reader, length, error) { + ListWireGroupsRequest.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.v1.ListZoneOperationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListWireGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { + case 108192469: { + message.crossSiteNetwork = reader.string(); + break; + } case 336120696: { message.filter = reader.string(); break; @@ -356673,10 +372689,6 @@ message.returnPartialSuccess = reader.bool(); break; } - case 3744684: { - message.zone = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -356686,33 +372698,36 @@ }; /** - * Decodes a ListZoneOperationsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListWireGroupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListZoneOperationsRequest + * @memberof google.cloud.compute.v1.ListWireGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListZoneOperationsRequest} ListZoneOperationsRequest + * @returns {google.cloud.compute.v1.ListWireGroupsRequest} ListWireGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListZoneOperationsRequest.decodeDelimited = function decodeDelimited(reader) { + ListWireGroupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListZoneOperationsRequest message. + * Verifies a ListWireGroupsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListZoneOperationsRequest + * @memberof google.cloud.compute.v1.ListWireGroupsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListZoneOperationsRequest.verify = function verify(message) { + ListWireGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.crossSiteNetwork != null && message.hasOwnProperty("crossSiteNetwork")) + if (!$util.isString(message.crossSiteNetwork)) + return "crossSiteNetwork: string expected"; if (message.filter != null && message.hasOwnProperty("filter")) { properties._filter = 1; if (!$util.isString(message.filter)) @@ -356741,24 +372756,23 @@ 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 ListZoneOperationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListWireGroupsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListZoneOperationsRequest + * @memberof google.cloud.compute.v1.ListWireGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListZoneOperationsRequest} ListZoneOperationsRequest + * @returns {google.cloud.compute.v1.ListWireGroupsRequest} ListWireGroupsRequest */ - ListZoneOperationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListZoneOperationsRequest) + ListWireGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListWireGroupsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListZoneOperationsRequest(); + var message = new $root.google.cloud.compute.v1.ListWireGroupsRequest(); + if (object.crossSiteNetwork != null) + message.crossSiteNetwork = String(object.crossSiteNetwork); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -356771,30 +372785,829 @@ 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 ListZoneOperationsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListWireGroupsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListZoneOperationsRequest + * @memberof google.cloud.compute.v1.ListWireGroupsRequest * @static - * @param {google.cloud.compute.v1.ListZoneOperationsRequest} message ListZoneOperationsRequest + * @param {google.cloud.compute.v1.ListWireGroupsRequest} message ListWireGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListZoneOperationsRequest.toObject = function toObject(message, options) { + ListWireGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.zone = ""; + object.crossSiteNetwork = ""; 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.crossSiteNetwork != null && message.hasOwnProperty("crossSiteNetwork")) + object.crossSiteNetwork = message.crossSiteNetwork; + 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 ListWireGroupsRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ListWireGroupsRequest + * @instance + * @returns {Object.} JSON object + */ + ListWireGroupsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListWireGroupsRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.ListWireGroupsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListWireGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.ListWireGroupsRequest"; + }; + + return ListWireGroupsRequest; + })(); + + v1.ListXpnHostsProjectsRequest = (function() { + + /** + * Properties of a ListXpnHostsProjectsRequest. + * @memberof google.cloud.compute.v1 + * @interface IListXpnHostsProjectsRequest + * @property {string|null} [filter] ListXpnHostsProjectsRequest filter + * @property {number|null} [maxResults] ListXpnHostsProjectsRequest maxResults + * @property {string|null} [orderBy] ListXpnHostsProjectsRequest orderBy + * @property {string|null} [pageToken] ListXpnHostsProjectsRequest pageToken + * @property {string|null} [project] ListXpnHostsProjectsRequest project + * @property {google.cloud.compute.v1.IProjectsListXpnHostsRequest|null} [projectsListXpnHostsRequestResource] ListXpnHostsProjectsRequest projectsListXpnHostsRequestResource + * @property {boolean|null} [returnPartialSuccess] ListXpnHostsProjectsRequest returnPartialSuccess + */ + + /** + * Constructs a new ListXpnHostsProjectsRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ListXpnHostsProjectsRequest. + * @implements IListXpnHostsProjectsRequest + * @constructor + * @param {google.cloud.compute.v1.IListXpnHostsProjectsRequest=} [properties] Properties to set + */ + function ListXpnHostsProjectsRequest(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]]; + } + + /** + * ListXpnHostsProjectsRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @instance + */ + ListXpnHostsProjectsRequest.prototype.filter = null; + + /** + * ListXpnHostsProjectsRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @instance + */ + ListXpnHostsProjectsRequest.prototype.maxResults = null; + + /** + * ListXpnHostsProjectsRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @instance + */ + ListXpnHostsProjectsRequest.prototype.orderBy = null; + + /** + * ListXpnHostsProjectsRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @instance + */ + ListXpnHostsProjectsRequest.prototype.pageToken = null; + + /** + * ListXpnHostsProjectsRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @instance + */ + ListXpnHostsProjectsRequest.prototype.project = ""; + + /** + * ListXpnHostsProjectsRequest projectsListXpnHostsRequestResource. + * @member {google.cloud.compute.v1.IProjectsListXpnHostsRequest|null|undefined} projectsListXpnHostsRequestResource + * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @instance + */ + ListXpnHostsProjectsRequest.prototype.projectsListXpnHostsRequestResource = null; + + /** + * ListXpnHostsProjectsRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @instance + */ + ListXpnHostsProjectsRequest.prototype.returnPartialSuccess = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListXpnHostsProjectsRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListXpnHostsProjectsRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListXpnHostsProjectsRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListXpnHostsProjectsRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListXpnHostsProjectsRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ListXpnHostsProjectsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @static + * @param {google.cloud.compute.v1.IListXpnHostsProjectsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListXpnHostsProjectsRequest} ListXpnHostsProjectsRequest instance + */ + ListXpnHostsProjectsRequest.create = function create(properties) { + return new ListXpnHostsProjectsRequest(properties); + }; + + /** + * Encodes the specified ListXpnHostsProjectsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListXpnHostsProjectsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @static + * @param {google.cloud.compute.v1.IListXpnHostsProjectsRequest} message ListXpnHostsProjectsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListXpnHostsProjectsRequest.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.projectsListXpnHostsRequestResource != null && Object.hasOwnProperty.call(message, "projectsListXpnHostsRequestResource")) + $root.google.cloud.compute.v1.ProjectsListXpnHostsRequest.encode(message.projectsListXpnHostsRequestResource, writer.uint32(/* id 238266391, wireType 2 =*/1906131130).fork()).ldelim(); + 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 ListXpnHostsProjectsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListXpnHostsProjectsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @static + * @param {google.cloud.compute.v1.IListXpnHostsProjectsRequest} message ListXpnHostsProjectsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListXpnHostsProjectsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListXpnHostsProjectsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.ListXpnHostsProjectsRequest} ListXpnHostsProjectsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListXpnHostsProjectsRequest.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.v1.ListXpnHostsProjectsRequest(); + 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 238266391: { + message.projectsListXpnHostsRequestResource = $root.google.cloud.compute.v1.ProjectsListXpnHostsRequest.decode(reader, reader.uint32()); + break; + } + case 517198390: { + message.returnPartialSuccess = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListXpnHostsProjectsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ListXpnHostsProjectsRequest} ListXpnHostsProjectsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListXpnHostsProjectsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListXpnHostsProjectsRequest message. + * @function verify + * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListXpnHostsProjectsRequest.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.projectsListXpnHostsRequestResource != null && message.hasOwnProperty("projectsListXpnHostsRequestResource")) { + var error = $root.google.cloud.compute.v1.ProjectsListXpnHostsRequest.verify(message.projectsListXpnHostsRequestResource); + if (error) + return "projectsListXpnHostsRequestResource." + error; + } + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + properties._returnPartialSuccess = 1; + if (typeof message.returnPartialSuccess !== "boolean") + return "returnPartialSuccess: boolean expected"; + } + return null; + }; + + /** + * Creates a ListXpnHostsProjectsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ListXpnHostsProjectsRequest} ListXpnHostsProjectsRequest + */ + ListXpnHostsProjectsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListXpnHostsProjectsRequest) + return object; + var message = new $root.google.cloud.compute.v1.ListXpnHostsProjectsRequest(); + 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.projectsListXpnHostsRequestResource != null) { + if (typeof object.projectsListXpnHostsRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1.ListXpnHostsProjectsRequest.projectsListXpnHostsRequestResource: object expected"); + message.projectsListXpnHostsRequestResource = $root.google.cloud.compute.v1.ProjectsListXpnHostsRequest.fromObject(object.projectsListXpnHostsRequestResource); + } + if (object.returnPartialSuccess != null) + message.returnPartialSuccess = Boolean(object.returnPartialSuccess); + return message; + }; + + /** + * Creates a plain object from a ListXpnHostsProjectsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @static + * @param {google.cloud.compute.v1.ListXpnHostsProjectsRequest} message ListXpnHostsProjectsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListXpnHostsProjectsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.project = ""; + object.projectsListXpnHostsRequestResource = null; + } + 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.projectsListXpnHostsRequestResource != null && message.hasOwnProperty("projectsListXpnHostsRequestResource")) + object.projectsListXpnHostsRequestResource = $root.google.cloud.compute.v1.ProjectsListXpnHostsRequest.toObject(message.projectsListXpnHostsRequestResource, options); + 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 ListXpnHostsProjectsRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @instance + * @returns {Object.} JSON object + */ + ListXpnHostsProjectsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListXpnHostsProjectsRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.ListXpnHostsProjectsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListXpnHostsProjectsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.ListXpnHostsProjectsRequest"; + }; + + return ListXpnHostsProjectsRequest; + })(); + + v1.ListZoneOperationsRequest = (function() { + + /** + * Properties of a ListZoneOperationsRequest. + * @memberof google.cloud.compute.v1 + * @interface IListZoneOperationsRequest + * @property {string|null} [filter] ListZoneOperationsRequest filter + * @property {number|null} [maxResults] ListZoneOperationsRequest maxResults + * @property {string|null} [orderBy] ListZoneOperationsRequest orderBy + * @property {string|null} [pageToken] ListZoneOperationsRequest pageToken + * @property {string|null} [project] ListZoneOperationsRequest project + * @property {boolean|null} [returnPartialSuccess] ListZoneOperationsRequest returnPartialSuccess + * @property {string|null} [zone] ListZoneOperationsRequest zone + */ + + /** + * Constructs a new ListZoneOperationsRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ListZoneOperationsRequest. + * @implements IListZoneOperationsRequest + * @constructor + * @param {google.cloud.compute.v1.IListZoneOperationsRequest=} [properties] Properties to set + */ + function ListZoneOperationsRequest(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]]; + } + + /** + * ListZoneOperationsRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1.ListZoneOperationsRequest + * @instance + */ + ListZoneOperationsRequest.prototype.filter = null; + + /** + * ListZoneOperationsRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1.ListZoneOperationsRequest + * @instance + */ + ListZoneOperationsRequest.prototype.maxResults = null; + + /** + * ListZoneOperationsRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1.ListZoneOperationsRequest + * @instance + */ + ListZoneOperationsRequest.prototype.orderBy = null; + + /** + * ListZoneOperationsRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1.ListZoneOperationsRequest + * @instance + */ + ListZoneOperationsRequest.prototype.pageToken = null; + + /** + * ListZoneOperationsRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.ListZoneOperationsRequest + * @instance + */ + ListZoneOperationsRequest.prototype.project = ""; + + /** + * ListZoneOperationsRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1.ListZoneOperationsRequest + * @instance + */ + ListZoneOperationsRequest.prototype.returnPartialSuccess = null; + + /** + * ListZoneOperationsRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.ListZoneOperationsRequest + * @instance + */ + ListZoneOperationsRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListZoneOperationsRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListZoneOperationsRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListZoneOperationsRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListZoneOperationsRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListZoneOperationsRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ListZoneOperationsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ListZoneOperationsRequest + * @static + * @param {google.cloud.compute.v1.IListZoneOperationsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListZoneOperationsRequest} ListZoneOperationsRequest instance + */ + ListZoneOperationsRequest.create = function create(properties) { + return new ListZoneOperationsRequest(properties); + }; + + /** + * Encodes the specified ListZoneOperationsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListZoneOperationsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ListZoneOperationsRequest + * @static + * @param {google.cloud.compute.v1.IListZoneOperationsRequest} message ListZoneOperationsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListZoneOperationsRequest.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 ListZoneOperationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListZoneOperationsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ListZoneOperationsRequest + * @static + * @param {google.cloud.compute.v1.IListZoneOperationsRequest} message ListZoneOperationsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListZoneOperationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListZoneOperationsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ListZoneOperationsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.ListZoneOperationsRequest} ListZoneOperationsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListZoneOperationsRequest.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.v1.ListZoneOperationsRequest(); + 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 ListZoneOperationsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ListZoneOperationsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ListZoneOperationsRequest} ListZoneOperationsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListZoneOperationsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListZoneOperationsRequest message. + * @function verify + * @memberof google.cloud.compute.v1.ListZoneOperationsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListZoneOperationsRequest.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 ListZoneOperationsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ListZoneOperationsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ListZoneOperationsRequest} ListZoneOperationsRequest + */ + ListZoneOperationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListZoneOperationsRequest) + return object; + var message = new $root.google.cloud.compute.v1.ListZoneOperationsRequest(); + 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 ListZoneOperationsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ListZoneOperationsRequest + * @static + * @param {google.cloud.compute.v1.ListZoneOperationsRequest} message ListZoneOperationsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListZoneOperationsRequest.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) @@ -356854,6 +373667,404 @@ return ListZoneOperationsRequest; })(); + v1.ListZoneVmExtensionPoliciesRequest = (function() { + + /** + * Properties of a ListZoneVmExtensionPoliciesRequest. + * @memberof google.cloud.compute.v1 + * @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.v1 + * @classdesc Represents a ListZoneVmExtensionPoliciesRequest. + * @implements IListZoneVmExtensionPoliciesRequest + * @constructor + * @param {google.cloud.compute.v1.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.v1.ListZoneVmExtensionPoliciesRequest + * @instance + */ + ListZoneVmExtensionPoliciesRequest.prototype.filter = null; + + /** + * ListZoneVmExtensionPoliciesRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest + * @instance + */ + ListZoneVmExtensionPoliciesRequest.prototype.maxResults = null; + + /** + * ListZoneVmExtensionPoliciesRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest + * @instance + */ + ListZoneVmExtensionPoliciesRequest.prototype.orderBy = null; + + /** + * ListZoneVmExtensionPoliciesRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest + * @instance + */ + ListZoneVmExtensionPoliciesRequest.prototype.pageToken = null; + + /** + * ListZoneVmExtensionPoliciesRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest + * @instance + */ + ListZoneVmExtensionPoliciesRequest.prototype.project = ""; + + /** + * ListZoneVmExtensionPoliciesRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest + * @instance + */ + ListZoneVmExtensionPoliciesRequest.prototype.returnPartialSuccess = null; + + /** + * ListZoneVmExtensionPoliciesRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.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.v1.ListZoneVmExtensionPoliciesRequest + * @static + * @param {google.cloud.compute.v1.IListZoneVmExtensionPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest} ListZoneVmExtensionPoliciesRequest instance + */ + ListZoneVmExtensionPoliciesRequest.create = function create(properties) { + return new ListZoneVmExtensionPoliciesRequest(properties); + }; + + /** + * Encodes the specified ListZoneVmExtensionPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest + * @static + * @param {google.cloud.compute.v1.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.v1.ListZoneVmExtensionPoliciesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.ListZoneVmExtensionPoliciesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.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.v1.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.v1.ListZoneVmExtensionPoliciesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest} ListZoneVmExtensionPoliciesRequest + */ + ListZoneVmExtensionPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest) + return object; + var message = new $root.google.cloud.compute.v1.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.v1.ListZoneVmExtensionPoliciesRequest + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.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.v1.ListZoneVmExtensionPoliciesRequest"; + }; + + return ListZoneVmExtensionPoliciesRequest; + })(); + v1.ListZonesRequest = (function() { /** @@ -369913,6 +387124,7 @@ * @property {string|null} [ipv6Address] NetworkAttachmentConnectedEndpoint ipv6Address * @property {string|null} [projectIdOrNum] NetworkAttachmentConnectedEndpoint projectIdOrNum * @property {Array.|null} [secondaryIpCidrRanges] NetworkAttachmentConnectedEndpoint secondaryIpCidrRanges + * @property {string|null} [serviceClassId] NetworkAttachmentConnectedEndpoint serviceClassId * @property {string|null} [status] NetworkAttachmentConnectedEndpoint status * @property {string|null} [subnetwork] NetworkAttachmentConnectedEndpoint subnetwork * @property {string|null} [subnetworkCidrRange] NetworkAttachmentConnectedEndpoint subnetworkCidrRange @@ -369966,6 +387178,14 @@ */ NetworkAttachmentConnectedEndpoint.prototype.secondaryIpCidrRanges = $util.emptyArray; + /** + * NetworkAttachmentConnectedEndpoint serviceClassId. + * @member {string|null|undefined} serviceClassId + * @memberof google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint + * @instance + */ + NetworkAttachmentConnectedEndpoint.prototype.serviceClassId = null; + /** * NetworkAttachmentConnectedEndpoint status. * @member {string|null|undefined} status @@ -370011,6 +387231,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(NetworkAttachmentConnectedEndpoint.prototype, "_serviceClassId", { + get: $util.oneOfGetter($oneOfFields = ["serviceClassId"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(NetworkAttachmentConnectedEndpoint.prototype, "_status", { get: $util.oneOfGetter($oneOfFields = ["status"]), @@ -370068,6 +387294,8 @@ writer.uint32(/* id 383249827, wireType 2 =*/3065998618).string(message.subnetworkCidrRange); if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) writer.uint32(/* id 406272220, wireType 2 =*/3250177762).string(message.ipAddress); + if (message.serviceClassId != null && Object.hasOwnProperty.call(message, "serviceClassId")) + writer.uint32(/* id 422763404, wireType 2 =*/3382107234).string(message.serviceClassId); return writer; }; @@ -370122,6 +387350,10 @@ message.secondaryIpCidrRanges.push(reader.string()); break; } + case 422763404: { + message.serviceClassId = reader.string(); + break; + } case 181260274: { message.status = reader.string(); break; @@ -370192,6 +387424,11 @@ if (!$util.isString(message.secondaryIpCidrRanges[i])) return "secondaryIpCidrRanges: string[] expected"; } + if (message.serviceClassId != null && message.hasOwnProperty("serviceClassId")) { + properties._serviceClassId = 1; + if (!$util.isString(message.serviceClassId)) + return "serviceClassId: string expected"; + } if (message.status != null && message.hasOwnProperty("status")) { properties._status = 1; if (!$util.isString(message.status)) @@ -370235,6 +387472,8 @@ for (var i = 0; i < object.secondaryIpCidrRanges.length; ++i) message.secondaryIpCidrRanges[i] = String(object.secondaryIpCidrRanges[i]); } + if (object.serviceClassId != null) + message.serviceClassId = String(object.serviceClassId); if (object.status != null) message.status = String(object.status); if (object.subnetwork != null) @@ -370294,6 +387533,11 @@ if (options.oneofs) object._ipAddress = "ipAddress"; } + if (message.serviceClassId != null && message.hasOwnProperty("serviceClassId")) { + object.serviceClassId = message.serviceClassId; + if (options.oneofs) + object._serviceClassId = "serviceClassId"; + } return object; }; @@ -377761,6 +395005,7 @@ * @property {string|null} [nicType] NetworkInterface nicType * @property {string|null} [parentNicName] NetworkInterface parentNicName * @property {number|null} [queueCount] NetworkInterface queueCount + * @property {string|null} [serviceClassId] NetworkInterface serviceClassId * @property {string|null} [stackType] NetworkInterface stackType * @property {string|null} [subnetwork] NetworkInterface subnetwork * @property {number|null} [vlan] NetworkInterface vlan @@ -377920,6 +395165,14 @@ */ NetworkInterface.prototype.queueCount = null; + /** + * NetworkInterface serviceClassId. + * @member {string|null|undefined} serviceClassId + * @memberof google.cloud.compute.v1.NetworkInterface + * @instance + */ + NetworkInterface.prototype.serviceClassId = null; + /** * NetworkInterface stackType. * @member {string|null|undefined} stackType @@ -378031,6 +395284,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(NetworkInterface.prototype, "_serviceClassId", { + get: $util.oneOfGetter($oneOfFields = ["serviceClassId"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(NetworkInterface.prototype, "_stackType", { get: $util.oneOfGetter($oneOfFields = ["stackType"]), @@ -378107,6 +395366,8 @@ writer.uint32(/* id 341563804, wireType 2 =*/2732510434).string(message.ipv6Address); if (message.parentNicName != null && Object.hasOwnProperty.call(message, "parentNicName")) writer.uint32(/* id 418764375, wireType 2 =*/3350115002).string(message.parentNicName); + if (message.serviceClassId != null && Object.hasOwnProperty.call(message, "serviceClassId")) + writer.uint32(/* id 422763404, wireType 2 =*/3382107234).string(message.serviceClassId); if (message.stackType != null && Object.hasOwnProperty.call(message, "stackType")) writer.uint32(/* id 425908881, wireType 2 =*/3407271050).string(message.stackType); if (message.ipv6AccessConfigs != null && message.ipv6AccessConfigs.length) @@ -378226,6 +395487,10 @@ message.queueCount = reader.int32(); break; } + case 422763404: { + message.serviceClassId = reader.string(); + break; + } case 425908881: { message.stackType = reader.string(); break; @@ -378371,6 +395636,11 @@ if (!$util.isInteger(message.queueCount)) return "queueCount: integer expected"; } + if (message.serviceClassId != null && message.hasOwnProperty("serviceClassId")) { + properties._serviceClassId = 1; + if (!$util.isString(message.serviceClassId)) + return "serviceClassId: string expected"; + } if (message.stackType != null && message.hasOwnProperty("stackType")) { properties._stackType = 1; if (!$util.isString(message.stackType)) @@ -378459,6 +395729,8 @@ message.parentNicName = String(object.parentNicName); if (object.queueCount != null) message.queueCount = object.queueCount | 0; + if (object.serviceClassId != null) + message.serviceClassId = String(object.serviceClassId); if (object.stackType != null) message.stackType = String(object.stackType); if (object.subnetwork != null) @@ -378566,6 +395838,11 @@ if (options.oneofs) object._parentNicName = "parentNicName"; } + if (message.serviceClassId != null && message.hasOwnProperty("serviceClassId")) { + object.serviceClassId = message.serviceClassId; + if (options.oneofs) + object._serviceClassId = "serviceClassId"; + } if (message.stackType != null && message.hasOwnProperty("stackType")) { object.stackType = message.stackType; if (options.oneofs) @@ -414580,6 +431857,323 @@ return PatchRegionAutoscalerRequest; })(); + v1.PatchRegionBackendBucketRequest = (function() { + + /** + * Properties of a PatchRegionBackendBucketRequest. + * @memberof google.cloud.compute.v1 + * @interface IPatchRegionBackendBucketRequest + * @property {string|null} [backendBucket] PatchRegionBackendBucketRequest backendBucket + * @property {google.cloud.compute.v1.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.v1 + * @classdesc Represents a PatchRegionBackendBucketRequest. + * @implements IPatchRegionBackendBucketRequest + * @constructor + * @param {google.cloud.compute.v1.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.v1.PatchRegionBackendBucketRequest + * @instance + */ + PatchRegionBackendBucketRequest.prototype.backendBucket = ""; + + /** + * PatchRegionBackendBucketRequest backendBucketResource. + * @member {google.cloud.compute.v1.IBackendBucket|null|undefined} backendBucketResource + * @memberof google.cloud.compute.v1.PatchRegionBackendBucketRequest + * @instance + */ + PatchRegionBackendBucketRequest.prototype.backendBucketResource = null; + + /** + * PatchRegionBackendBucketRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.PatchRegionBackendBucketRequest + * @instance + */ + PatchRegionBackendBucketRequest.prototype.project = ""; + + /** + * PatchRegionBackendBucketRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.PatchRegionBackendBucketRequest + * @instance + */ + PatchRegionBackendBucketRequest.prototype.region = ""; + + /** + * PatchRegionBackendBucketRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.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.v1.PatchRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1.IPatchRegionBackendBucketRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.PatchRegionBackendBucketRequest} PatchRegionBackendBucketRequest instance + */ + PatchRegionBackendBucketRequest.create = function create(properties) { + return new PatchRegionBackendBucketRequest(properties); + }; + + /** + * Encodes the specified PatchRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1.PatchRegionBackendBucketRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.PatchRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.PatchRegionBackendBucketRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.PatchRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.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.v1.PatchRegionBackendBucketRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.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.v1.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.v1.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.v1.PatchRegionBackendBucketRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.PatchRegionBackendBucketRequest} PatchRegionBackendBucketRequest + */ + PatchRegionBackendBucketRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.PatchRegionBackendBucketRequest) + return object; + var message = new $root.google.cloud.compute.v1.PatchRegionBackendBucketRequest(); + if (object.backendBucket != null) + message.backendBucket = String(object.backendBucket); + if (object.backendBucketResource != null) { + if (typeof object.backendBucketResource !== "object") + throw TypeError(".google.cloud.compute.v1.PatchRegionBackendBucketRequest.backendBucketResource: object expected"); + message.backendBucketResource = $root.google.cloud.compute.v1.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.v1.PatchRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1.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.v1.BackendBucket.toObject(message.backendBucketResource, options); + return object; + }; + + /** + * Converts this PatchRegionBackendBucketRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.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.v1.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.v1.PatchRegionBackendBucketRequest"; + }; + + return PatchRegionBackendBucketRequest; + })(); + v1.PatchRegionBackendServiceRequest = (function() { /** @@ -417466,6 +435060,333 @@ return PatchRegionSecurityPolicyRequest; })(); + v1.PatchRegionSnapshotSettingRequest = (function() { + + /** + * Properties of a PatchRegionSnapshotSettingRequest. + * @memberof google.cloud.compute.v1 + * @interface IPatchRegionSnapshotSettingRequest + * @property {string|null} [project] PatchRegionSnapshotSettingRequest project + * @property {string|null} [region] PatchRegionSnapshotSettingRequest region + * @property {string|null} [requestId] PatchRegionSnapshotSettingRequest requestId + * @property {google.cloud.compute.v1.ISnapshotSettings|null} [snapshotSettingsResource] PatchRegionSnapshotSettingRequest snapshotSettingsResource + * @property {string|null} [updateMask] PatchRegionSnapshotSettingRequest updateMask + */ + + /** + * Constructs a new PatchRegionSnapshotSettingRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a PatchRegionSnapshotSettingRequest. + * @implements IPatchRegionSnapshotSettingRequest + * @constructor + * @param {google.cloud.compute.v1.IPatchRegionSnapshotSettingRequest=} [properties] Properties to set + */ + function PatchRegionSnapshotSettingRequest(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]]; + } + + /** + * PatchRegionSnapshotSettingRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.PatchRegionSnapshotSettingRequest + * @instance + */ + PatchRegionSnapshotSettingRequest.prototype.project = ""; + + /** + * PatchRegionSnapshotSettingRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.PatchRegionSnapshotSettingRequest + * @instance + */ + PatchRegionSnapshotSettingRequest.prototype.region = ""; + + /** + * PatchRegionSnapshotSettingRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.PatchRegionSnapshotSettingRequest + * @instance + */ + PatchRegionSnapshotSettingRequest.prototype.requestId = null; + + /** + * PatchRegionSnapshotSettingRequest snapshotSettingsResource. + * @member {google.cloud.compute.v1.ISnapshotSettings|null|undefined} snapshotSettingsResource + * @memberof google.cloud.compute.v1.PatchRegionSnapshotSettingRequest + * @instance + */ + PatchRegionSnapshotSettingRequest.prototype.snapshotSettingsResource = null; + + /** + * PatchRegionSnapshotSettingRequest updateMask. + * @member {string|null|undefined} updateMask + * @memberof google.cloud.compute.v1.PatchRegionSnapshotSettingRequest + * @instance + */ + PatchRegionSnapshotSettingRequest.prototype.updateMask = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(PatchRegionSnapshotSettingRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(PatchRegionSnapshotSettingRequest.prototype, "_updateMask", { + get: $util.oneOfGetter($oneOfFields = ["updateMask"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PatchRegionSnapshotSettingRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.PatchRegionSnapshotSettingRequest + * @static + * @param {google.cloud.compute.v1.IPatchRegionSnapshotSettingRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.PatchRegionSnapshotSettingRequest} PatchRegionSnapshotSettingRequest instance + */ + PatchRegionSnapshotSettingRequest.create = function create(properties) { + return new PatchRegionSnapshotSettingRequest(properties); + }; + + /** + * Encodes the specified PatchRegionSnapshotSettingRequest message. Does not implicitly {@link google.cloud.compute.v1.PatchRegionSnapshotSettingRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.PatchRegionSnapshotSettingRequest + * @static + * @param {google.cloud.compute.v1.IPatchRegionSnapshotSettingRequest} message PatchRegionSnapshotSettingRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PatchRegionSnapshotSettingRequest.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.snapshotSettingsResource != null && Object.hasOwnProperty.call(message, "snapshotSettingsResource")) + $root.google.cloud.compute.v1.SnapshotSettings.encode(message.snapshotSettingsResource, writer.uint32(/* id 357664495, wireType 2 =*/2861315962).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + writer.uint32(/* id 500079778, wireType 2 =*/4000638226).string(message.updateMask); + return writer; + }; + + /** + * Encodes the specified PatchRegionSnapshotSettingRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.PatchRegionSnapshotSettingRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.PatchRegionSnapshotSettingRequest + * @static + * @param {google.cloud.compute.v1.IPatchRegionSnapshotSettingRequest} message PatchRegionSnapshotSettingRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PatchRegionSnapshotSettingRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PatchRegionSnapshotSettingRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.PatchRegionSnapshotSettingRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.PatchRegionSnapshotSettingRequest} PatchRegionSnapshotSettingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PatchRegionSnapshotSettingRequest.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.v1.PatchRegionSnapshotSettingRequest(); + 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 37109963: { + message.requestId = reader.string(); + break; + } + case 357664495: { + message.snapshotSettingsResource = $root.google.cloud.compute.v1.SnapshotSettings.decode(reader, reader.uint32()); + break; + } + case 500079778: { + message.updateMask = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PatchRegionSnapshotSettingRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.PatchRegionSnapshotSettingRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.PatchRegionSnapshotSettingRequest} PatchRegionSnapshotSettingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PatchRegionSnapshotSettingRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PatchRegionSnapshotSettingRequest message. + * @function verify + * @memberof google.cloud.compute.v1.PatchRegionSnapshotSettingRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PatchRegionSnapshotSettingRequest.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.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"; + } + if (message.snapshotSettingsResource != null && message.hasOwnProperty("snapshotSettingsResource")) { + var error = $root.google.cloud.compute.v1.SnapshotSettings.verify(message.snapshotSettingsResource); + if (error) + return "snapshotSettingsResource." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + properties._updateMask = 1; + if (!$util.isString(message.updateMask)) + return "updateMask: string expected"; + } + return null; + }; + + /** + * Creates a PatchRegionSnapshotSettingRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.PatchRegionSnapshotSettingRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.PatchRegionSnapshotSettingRequest} PatchRegionSnapshotSettingRequest + */ + PatchRegionSnapshotSettingRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest) + return object; + var message = new $root.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest(); + 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); + if (object.snapshotSettingsResource != null) { + if (typeof object.snapshotSettingsResource !== "object") + throw TypeError(".google.cloud.compute.v1.PatchRegionSnapshotSettingRequest.snapshotSettingsResource: object expected"); + message.snapshotSettingsResource = $root.google.cloud.compute.v1.SnapshotSettings.fromObject(object.snapshotSettingsResource); + } + if (object.updateMask != null) + message.updateMask = String(object.updateMask); + return message; + }; + + /** + * Creates a plain object from a PatchRegionSnapshotSettingRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.PatchRegionSnapshotSettingRequest + * @static + * @param {google.cloud.compute.v1.PatchRegionSnapshotSettingRequest} message PatchRegionSnapshotSettingRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PatchRegionSnapshotSettingRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.snapshotSettingsResource = 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.snapshotSettingsResource != null && message.hasOwnProperty("snapshotSettingsResource")) + object.snapshotSettingsResource = $root.google.cloud.compute.v1.SnapshotSettings.toObject(message.snapshotSettingsResource, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + object.updateMask = message.updateMask; + if (options.oneofs) + object._updateMask = "updateMask"; + } + return object; + }; + + /** + * Converts this PatchRegionSnapshotSettingRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.PatchRegionSnapshotSettingRequest + * @instance + * @returns {Object.} JSON object + */ + PatchRegionSnapshotSettingRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PatchRegionSnapshotSettingRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.PatchRegionSnapshotSettingRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PatchRegionSnapshotSettingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.PatchRegionSnapshotSettingRequest"; + }; + + return PatchRegionSnapshotSettingRequest; + })(); + v1.PatchRegionSslPolicyRequest = (function() { /** @@ -442346,6 +460267,224 @@ return RegionDiskTypeList; })(); + v1.RegionDiskUpdateKmsKeyRequest = (function() { + + /** + * Properties of a RegionDiskUpdateKmsKeyRequest. + * @memberof google.cloud.compute.v1 + * @interface IRegionDiskUpdateKmsKeyRequest + * @property {string|null} [kmsKeyName] RegionDiskUpdateKmsKeyRequest kmsKeyName + */ + + /** + * Constructs a new RegionDiskUpdateKmsKeyRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a RegionDiskUpdateKmsKeyRequest. + * @implements IRegionDiskUpdateKmsKeyRequest + * @constructor + * @param {google.cloud.compute.v1.IRegionDiskUpdateKmsKeyRequest=} [properties] Properties to set + */ + function RegionDiskUpdateKmsKeyRequest(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]]; + } + + /** + * RegionDiskUpdateKmsKeyRequest kmsKeyName. + * @member {string|null|undefined} kmsKeyName + * @memberof google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest + * @instance + */ + RegionDiskUpdateKmsKeyRequest.prototype.kmsKeyName = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(RegionDiskUpdateKmsKeyRequest.prototype, "_kmsKeyName", { + get: $util.oneOfGetter($oneOfFields = ["kmsKeyName"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new RegionDiskUpdateKmsKeyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1.IRegionDiskUpdateKmsKeyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest} RegionDiskUpdateKmsKeyRequest instance + */ + RegionDiskUpdateKmsKeyRequest.create = function create(properties) { + return new RegionDiskUpdateKmsKeyRequest(properties); + }; + + /** + * Encodes the specified RegionDiskUpdateKmsKeyRequest message. Does not implicitly {@link google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1.IRegionDiskUpdateKmsKeyRequest} message RegionDiskUpdateKmsKeyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RegionDiskUpdateKmsKeyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName")) + writer.uint32(/* id 484373913, wireType 2 =*/3874991306).string(message.kmsKeyName); + return writer; + }; + + /** + * Encodes the specified RegionDiskUpdateKmsKeyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1.IRegionDiskUpdateKmsKeyRequest} message RegionDiskUpdateKmsKeyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RegionDiskUpdateKmsKeyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RegionDiskUpdateKmsKeyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest} RegionDiskUpdateKmsKeyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RegionDiskUpdateKmsKeyRequest.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.v1.RegionDiskUpdateKmsKeyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 484373913: { + message.kmsKeyName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RegionDiskUpdateKmsKeyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest} RegionDiskUpdateKmsKeyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RegionDiskUpdateKmsKeyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RegionDiskUpdateKmsKeyRequest message. + * @function verify + * @memberof google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RegionDiskUpdateKmsKeyRequest.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 a RegionDiskUpdateKmsKeyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest} RegionDiskUpdateKmsKeyRequest + */ + RegionDiskUpdateKmsKeyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest) + return object; + var message = new $root.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest(); + if (object.kmsKeyName != null) + message.kmsKeyName = String(object.kmsKeyName); + return message; + }; + + /** + * Creates a plain object from a RegionDiskUpdateKmsKeyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest} message RegionDiskUpdateKmsKeyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RegionDiskUpdateKmsKeyRequest.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 RegionDiskUpdateKmsKeyRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest + * @instance + * @returns {Object.} JSON object + */ + RegionDiskUpdateKmsKeyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RegionDiskUpdateKmsKeyRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RegionDiskUpdateKmsKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest"; + }; + + return RegionDiskUpdateKmsKeyRequest; + })(); + v1.RegionDisksAddResourcePoliciesRequest = (function() { /** @@ -444483,6 +462622,480 @@ return RegionInstanceGroupManagerPatchInstanceConfigReq; })(); + v1.RegionInstanceGroupManagerResizeRequestsListResponse = (function() { + + /** + * Properties of a RegionInstanceGroupManagerResizeRequestsListResponse. + * @memberof google.cloud.compute.v1 + * @interface IRegionInstanceGroupManagerResizeRequestsListResponse + * @property {string|null} [etag] RegionInstanceGroupManagerResizeRequestsListResponse etag + * @property {string|null} [id] RegionInstanceGroupManagerResizeRequestsListResponse id + * @property {Array.|null} [items] RegionInstanceGroupManagerResizeRequestsListResponse items + * @property {string|null} [kind] RegionInstanceGroupManagerResizeRequestsListResponse kind + * @property {string|null} [nextPageToken] RegionInstanceGroupManagerResizeRequestsListResponse nextPageToken + * @property {string|null} [selfLink] RegionInstanceGroupManagerResizeRequestsListResponse selfLink + * @property {Array.|null} [unreachables] RegionInstanceGroupManagerResizeRequestsListResponse unreachables + * @property {google.cloud.compute.v1.IWarning|null} [warning] RegionInstanceGroupManagerResizeRequestsListResponse warning + */ + + /** + * Constructs a new RegionInstanceGroupManagerResizeRequestsListResponse. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a RegionInstanceGroupManagerResizeRequestsListResponse. + * @implements IRegionInstanceGroupManagerResizeRequestsListResponse + * @constructor + * @param {google.cloud.compute.v1.IRegionInstanceGroupManagerResizeRequestsListResponse=} [properties] Properties to set + */ + function RegionInstanceGroupManagerResizeRequestsListResponse(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]]; + } + + /** + * RegionInstanceGroupManagerResizeRequestsListResponse etag. + * @member {string|null|undefined} etag + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + * @instance + */ + RegionInstanceGroupManagerResizeRequestsListResponse.prototype.etag = null; + + /** + * RegionInstanceGroupManagerResizeRequestsListResponse id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + * @instance + */ + RegionInstanceGroupManagerResizeRequestsListResponse.prototype.id = null; + + /** + * RegionInstanceGroupManagerResizeRequestsListResponse items. + * @member {Array.} items + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + * @instance + */ + RegionInstanceGroupManagerResizeRequestsListResponse.prototype.items = $util.emptyArray; + + /** + * RegionInstanceGroupManagerResizeRequestsListResponse kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + * @instance + */ + RegionInstanceGroupManagerResizeRequestsListResponse.prototype.kind = null; + + /** + * RegionInstanceGroupManagerResizeRequestsListResponse nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + * @instance + */ + RegionInstanceGroupManagerResizeRequestsListResponse.prototype.nextPageToken = null; + + /** + * RegionInstanceGroupManagerResizeRequestsListResponse selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + * @instance + */ + RegionInstanceGroupManagerResizeRequestsListResponse.prototype.selfLink = null; + + /** + * RegionInstanceGroupManagerResizeRequestsListResponse unreachables. + * @member {Array.} unreachables + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + * @instance + */ + RegionInstanceGroupManagerResizeRequestsListResponse.prototype.unreachables = $util.emptyArray; + + /** + * RegionInstanceGroupManagerResizeRequestsListResponse warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + * @instance + */ + RegionInstanceGroupManagerResizeRequestsListResponse.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(RegionInstanceGroupManagerResizeRequestsListResponse.prototype, "_etag", { + get: $util.oneOfGetter($oneOfFields = ["etag"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(RegionInstanceGroupManagerResizeRequestsListResponse.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(RegionInstanceGroupManagerResizeRequestsListResponse.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(RegionInstanceGroupManagerResizeRequestsListResponse.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(RegionInstanceGroupManagerResizeRequestsListResponse.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(RegionInstanceGroupManagerResizeRequestsListResponse.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new RegionInstanceGroupManagerResizeRequestsListResponse instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + * @static + * @param {google.cloud.compute.v1.IRegionInstanceGroupManagerResizeRequestsListResponse=} [properties] Properties to set + * @returns {google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse} RegionInstanceGroupManagerResizeRequestsListResponse instance + */ + RegionInstanceGroupManagerResizeRequestsListResponse.create = function create(properties) { + return new RegionInstanceGroupManagerResizeRequestsListResponse(properties); + }; + + /** + * Encodes the specified RegionInstanceGroupManagerResizeRequestsListResponse message. Does not implicitly {@link google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + * @static + * @param {google.cloud.compute.v1.IRegionInstanceGroupManagerResizeRequestsListResponse} message RegionInstanceGroupManagerResizeRequestsListResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RegionInstanceGroupManagerResizeRequestsListResponse.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.v1.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.v1.InstanceGroupManagerResizeRequest.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 RegionInstanceGroupManagerResizeRequestsListResponse message, length delimited. Does not implicitly {@link google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + * @static + * @param {google.cloud.compute.v1.IRegionInstanceGroupManagerResizeRequestsListResponse} message RegionInstanceGroupManagerResizeRequestsListResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RegionInstanceGroupManagerResizeRequestsListResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RegionInstanceGroupManagerResizeRequestsListResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse} RegionInstanceGroupManagerResizeRequestsListResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RegionInstanceGroupManagerResizeRequestsListResponse.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.v1.RegionInstanceGroupManagerResizeRequestsListResponse(); + 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.v1.InstanceGroupManagerResizeRequest.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.v1.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RegionInstanceGroupManagerResizeRequestsListResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse} RegionInstanceGroupManagerResizeRequestsListResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RegionInstanceGroupManagerResizeRequestsListResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RegionInstanceGroupManagerResizeRequestsListResponse message. + * @function verify + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RegionInstanceGroupManagerResizeRequestsListResponse.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.v1.InstanceGroupManagerResizeRequest.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.v1.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a RegionInstanceGroupManagerResizeRequestsListResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse} RegionInstanceGroupManagerResizeRequestsListResponse + */ + RegionInstanceGroupManagerResizeRequestsListResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse) + return object; + var message = new $root.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse(); + 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.v1.RegionInstanceGroupManagerResizeRequestsListResponse.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.v1.RegionInstanceGroupManagerResizeRequestsListResponse.items: object expected"); + message.items[i] = $root.google.cloud.compute.v1.InstanceGroupManagerResizeRequest.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.v1.RegionInstanceGroupManagerResizeRequestsListResponse.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.v1.RegionInstanceGroupManagerResizeRequestsListResponse.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a RegionInstanceGroupManagerResizeRequestsListResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + * @static + * @param {google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse} message RegionInstanceGroupManagerResizeRequestsListResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RegionInstanceGroupManagerResizeRequestsListResponse.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.v1.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.v1.InstanceGroupManagerResizeRequest.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 RegionInstanceGroupManagerResizeRequestsListResponse to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + * @instance + * @returns {Object.} JSON object + */ + RegionInstanceGroupManagerResizeRequestsListResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RegionInstanceGroupManagerResizeRequestsListResponse + * @function getTypeUrl + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RegionInstanceGroupManagerResizeRequestsListResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse"; + }; + + return RegionInstanceGroupManagerResizeRequestsListResponse; + })(); + v1.RegionInstanceGroupManagerUpdateInstanceConfigReq = (function() { /** @@ -451310,6 +469923,224 @@ return RegionSetPolicyRequest; })(); + v1.RegionSnapshotUpdateKmsKeyRequest = (function() { + + /** + * Properties of a RegionSnapshotUpdateKmsKeyRequest. + * @memberof google.cloud.compute.v1 + * @interface IRegionSnapshotUpdateKmsKeyRequest + * @property {string|null} [kmsKeyName] RegionSnapshotUpdateKmsKeyRequest kmsKeyName + */ + + /** + * Constructs a new RegionSnapshotUpdateKmsKeyRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a RegionSnapshotUpdateKmsKeyRequest. + * @implements IRegionSnapshotUpdateKmsKeyRequest + * @constructor + * @param {google.cloud.compute.v1.IRegionSnapshotUpdateKmsKeyRequest=} [properties] Properties to set + */ + function RegionSnapshotUpdateKmsKeyRequest(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]]; + } + + /** + * RegionSnapshotUpdateKmsKeyRequest kmsKeyName. + * @member {string|null|undefined} kmsKeyName + * @memberof google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest + * @instance + */ + RegionSnapshotUpdateKmsKeyRequest.prototype.kmsKeyName = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(RegionSnapshotUpdateKmsKeyRequest.prototype, "_kmsKeyName", { + get: $util.oneOfGetter($oneOfFields = ["kmsKeyName"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new RegionSnapshotUpdateKmsKeyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1.IRegionSnapshotUpdateKmsKeyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest} RegionSnapshotUpdateKmsKeyRequest instance + */ + RegionSnapshotUpdateKmsKeyRequest.create = function create(properties) { + return new RegionSnapshotUpdateKmsKeyRequest(properties); + }; + + /** + * Encodes the specified RegionSnapshotUpdateKmsKeyRequest message. Does not implicitly {@link google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1.IRegionSnapshotUpdateKmsKeyRequest} message RegionSnapshotUpdateKmsKeyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RegionSnapshotUpdateKmsKeyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName")) + writer.uint32(/* id 484373913, wireType 2 =*/3874991306).string(message.kmsKeyName); + return writer; + }; + + /** + * Encodes the specified RegionSnapshotUpdateKmsKeyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1.IRegionSnapshotUpdateKmsKeyRequest} message RegionSnapshotUpdateKmsKeyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RegionSnapshotUpdateKmsKeyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RegionSnapshotUpdateKmsKeyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest} RegionSnapshotUpdateKmsKeyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RegionSnapshotUpdateKmsKeyRequest.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.v1.RegionSnapshotUpdateKmsKeyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 484373913: { + message.kmsKeyName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RegionSnapshotUpdateKmsKeyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest} RegionSnapshotUpdateKmsKeyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RegionSnapshotUpdateKmsKeyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RegionSnapshotUpdateKmsKeyRequest message. + * @function verify + * @memberof google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RegionSnapshotUpdateKmsKeyRequest.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 a RegionSnapshotUpdateKmsKeyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest} RegionSnapshotUpdateKmsKeyRequest + */ + RegionSnapshotUpdateKmsKeyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest) + return object; + var message = new $root.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest(); + if (object.kmsKeyName != null) + message.kmsKeyName = String(object.kmsKeyName); + return message; + }; + + /** + * Creates a plain object from a RegionSnapshotUpdateKmsKeyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest} message RegionSnapshotUpdateKmsKeyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RegionSnapshotUpdateKmsKeyRequest.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 RegionSnapshotUpdateKmsKeyRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest + * @instance + * @returns {Object.} JSON object + */ + RegionSnapshotUpdateKmsKeyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RegionSnapshotUpdateKmsKeyRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RegionSnapshotUpdateKmsKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest"; + }; + + return RegionSnapshotUpdateKmsKeyRequest; + })(); + v1.RegionTargetHttpsProxiesSetSslCertificatesRequest = (function() { /** @@ -458358,6 +477189,7 @@ * @property {google.cloud.compute.v1.IReservationAdvancedDeploymentControl|null} [advancedDeploymentControl] Reservation advancedDeploymentControl * @property {google.cloud.compute.v1.IAllocationAggregateReservation|null} [aggregateReservation] Reservation aggregateReservation * @property {string|null} [commitment] Reservation commitment + * @property {string|null} [confidentialComputeType] Reservation confidentialComputeType * @property {string|null} [creationTimestamp] Reservation creationTimestamp * @property {google.cloud.compute.v1.IDuration|null} [deleteAfterDuration] Reservation deleteAfterDuration * @property {string|null} [deleteAtTime] Reservation deleteAtTime @@ -458425,6 +477257,14 @@ */ Reservation.prototype.commitment = null; + /** + * Reservation confidentialComputeType. + * @member {string|null|undefined} confidentialComputeType + * @memberof google.cloud.compute.v1.Reservation + * @instance + */ + Reservation.prototype.confidentialComputeType = null; + /** * Reservation creationTimestamp. * @member {string|null|undefined} creationTimestamp @@ -458638,6 +477478,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(Reservation.prototype, "_confidentialComputeType", { + get: $util.oneOfGetter($oneOfFields = ["confidentialComputeType"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(Reservation.prototype, "_creationTimestamp", { get: $util.oneOfGetter($oneOfFields = ["creationTimestamp"]), @@ -458831,6 +477677,8 @@ writer.uint32(/* id 343918356, wireType 2 =*/2751346850).string(message.earlyAccessMaintenance); if (message.enableEmergentMaintenance != null && Object.hasOwnProperty.call(message, "enableEmergentMaintenance")) writer.uint32(/* id 353759497, wireType 0 =*/2830075976).bool(message.enableEmergentMaintenance); + if (message.confidentialComputeType != null && Object.hasOwnProperty.call(message, "confidentialComputeType")) + writer.uint32(/* id 386447257, wireType 2 =*/3091578058).string(message.confidentialComputeType); if (message.deploymentType != null && Object.hasOwnProperty.call(message, "deploymentType")) writer.uint32(/* id 396722292, wireType 2 =*/3173778338).string(message.deploymentType); if (message.specificReservation != null && Object.hasOwnProperty.call(message, "specificReservation")) @@ -458898,6 +477746,10 @@ message.commitment = reader.string(); break; } + case 386447257: { + message.confidentialComputeType = reader.string(); + break; + } case 30525366: { message.creationTimestamp = reader.string(); break; @@ -459072,6 +477924,11 @@ if (!$util.isString(message.commitment)) return "commitment: string expected"; } + if (message.confidentialComputeType != null && message.hasOwnProperty("confidentialComputeType")) { + properties._confidentialComputeType = 1; + if (!$util.isString(message.confidentialComputeType)) + return "confidentialComputeType: string expected"; + } if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { properties._creationTimestamp = 1; if (!$util.isString(message.creationTimestamp)) @@ -459242,6 +478099,8 @@ } if (object.commitment != null) message.commitment = String(object.commitment); + if (object.confidentialComputeType != null) + message.confidentialComputeType = String(object.confidentialComputeType); if (object.creationTimestamp != null) message.creationTimestamp = String(object.creationTimestamp); if (object.deleteAfterDuration != null) { @@ -459439,6 +478298,11 @@ if (options.oneofs) object._enableEmergentMaintenance = "enableEmergentMaintenance"; } + if (message.confidentialComputeType != null && message.hasOwnProperty("confidentialComputeType")) { + object.confidentialComputeType = message.confidentialComputeType; + if (options.oneofs) + object._confidentialComputeType = "confidentialComputeType"; + } if (message.deploymentType != null && message.hasOwnProperty("deploymentType")) { object.deploymentType = message.deploymentType; if (options.oneofs) @@ -459513,6 +478377,22 @@ return typeUrlPrefix + "/google.cloud.compute.v1.Reservation"; }; + /** + * ConfidentialComputeType enum. + * @name google.cloud.compute.v1.Reservation.ConfidentialComputeType + * @enum {number} + * @property {number} UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE=0 UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE value + * @property {number} CONFIDENTIAL_COMPUTE_TYPE_TDX=301241954 CONFIDENTIAL_COMPUTE_TYPE_TDX value + * @property {number} CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED=42227601 CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED value + */ + Reservation.ConfidentialComputeType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE"] = 0; + values[valuesById[301241954] = "CONFIDENTIAL_COMPUTE_TYPE_TDX"] = 301241954; + values[valuesById[42227601] = "CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED"] = 42227601; + return values; + })(); + /** * DeploymentType enum. * @name google.cloud.compute.v1.Reservation.DeploymentType @@ -520328,27 +539208,27 @@ return SetIamPolicyInstanceTemplateRequest; })(); - v1.SetIamPolicyInstantSnapshotRequest = (function() { + v1.SetIamPolicyInstantSnapshotGroupRequest = (function() { /** - * Properties of a SetIamPolicyInstantSnapshotRequest. + * Properties of a SetIamPolicyInstantSnapshotGroupRequest. * @memberof google.cloud.compute.v1 - * @interface ISetIamPolicyInstantSnapshotRequest - * @property {string|null} [project] SetIamPolicyInstantSnapshotRequest project - * @property {string|null} [resource] SetIamPolicyInstantSnapshotRequest resource - * @property {string|null} [zone] SetIamPolicyInstantSnapshotRequest zone - * @property {google.cloud.compute.v1.IZoneSetPolicyRequest|null} [zoneSetPolicyRequestResource] SetIamPolicyInstantSnapshotRequest zoneSetPolicyRequestResource + * @interface ISetIamPolicyInstantSnapshotGroupRequest + * @property {string|null} [project] SetIamPolicyInstantSnapshotGroupRequest project + * @property {string|null} [resource] SetIamPolicyInstantSnapshotGroupRequest resource + * @property {string|null} [zone] SetIamPolicyInstantSnapshotGroupRequest zone + * @property {google.cloud.compute.v1.IZoneSetPolicyRequest|null} [zoneSetPolicyRequestResource] SetIamPolicyInstantSnapshotGroupRequest zoneSetPolicyRequestResource */ /** - * Constructs a new SetIamPolicyInstantSnapshotRequest. + * Constructs a new SetIamPolicyInstantSnapshotGroupRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a SetIamPolicyInstantSnapshotRequest. - * @implements ISetIamPolicyInstantSnapshotRequest + * @classdesc Represents a SetIamPolicyInstantSnapshotGroupRequest. + * @implements ISetIamPolicyInstantSnapshotGroupRequest * @constructor - * @param {google.cloud.compute.v1.ISetIamPolicyInstantSnapshotRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.ISetIamPolicyInstantSnapshotGroupRequest=} [properties] Properties to set */ - function SetIamPolicyInstantSnapshotRequest(properties) { + function SetIamPolicyInstantSnapshotGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -520356,59 +539236,59 @@ } /** - * SetIamPolicyInstantSnapshotRequest project. + * SetIamPolicyInstantSnapshotGroupRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest + * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest * @instance */ - SetIamPolicyInstantSnapshotRequest.prototype.project = ""; + SetIamPolicyInstantSnapshotGroupRequest.prototype.project = ""; /** - * SetIamPolicyInstantSnapshotRequest resource. + * SetIamPolicyInstantSnapshotGroupRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest + * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest * @instance */ - SetIamPolicyInstantSnapshotRequest.prototype.resource = ""; + SetIamPolicyInstantSnapshotGroupRequest.prototype.resource = ""; /** - * SetIamPolicyInstantSnapshotRequest zone. + * SetIamPolicyInstantSnapshotGroupRequest zone. * @member {string} zone - * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest + * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest * @instance */ - SetIamPolicyInstantSnapshotRequest.prototype.zone = ""; + SetIamPolicyInstantSnapshotGroupRequest.prototype.zone = ""; /** - * SetIamPolicyInstantSnapshotRequest zoneSetPolicyRequestResource. + * SetIamPolicyInstantSnapshotGroupRequest zoneSetPolicyRequestResource. * @member {google.cloud.compute.v1.IZoneSetPolicyRequest|null|undefined} zoneSetPolicyRequestResource - * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest + * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest * @instance */ - SetIamPolicyInstantSnapshotRequest.prototype.zoneSetPolicyRequestResource = null; + SetIamPolicyInstantSnapshotGroupRequest.prototype.zoneSetPolicyRequestResource = null; /** - * Creates a new SetIamPolicyInstantSnapshotRequest instance using the specified properties. + * Creates a new SetIamPolicyInstantSnapshotGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest + * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1.ISetIamPolicyInstantSnapshotRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest} SetIamPolicyInstantSnapshotRequest instance + * @param {google.cloud.compute.v1.ISetIamPolicyInstantSnapshotGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest} SetIamPolicyInstantSnapshotGroupRequest instance */ - SetIamPolicyInstantSnapshotRequest.create = function create(properties) { - return new SetIamPolicyInstantSnapshotRequest(properties); + SetIamPolicyInstantSnapshotGroupRequest.create = function create(properties) { + return new SetIamPolicyInstantSnapshotGroupRequest(properties); }; /** - * Encodes the specified SetIamPolicyInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest.verify|verify} messages. + * Encodes the specified SetIamPolicyInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest + * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1.ISetIamPolicyInstantSnapshotRequest} message SetIamPolicyInstantSnapshotRequest message or plain object to encode + * @param {google.cloud.compute.v1.ISetIamPolicyInstantSnapshotGroupRequest} message SetIamPolicyInstantSnapshotGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetIamPolicyInstantSnapshotRequest.encode = function encode(message, writer) { + SetIamPolicyInstantSnapshotGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) @@ -520423,33 +539303,33 @@ }; /** - * Encodes the specified SetIamPolicyInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest.verify|verify} messages. + * Encodes the specified SetIamPolicyInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest + * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1.ISetIamPolicyInstantSnapshotRequest} message SetIamPolicyInstantSnapshotRequest message or plain object to encode + * @param {google.cloud.compute.v1.ISetIamPolicyInstantSnapshotGroupRequest} message SetIamPolicyInstantSnapshotGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetIamPolicyInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetIamPolicyInstantSnapshotGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetIamPolicyInstantSnapshotRequest message from the specified reader or buffer. + * Decodes a SetIamPolicyInstantSnapshotGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest + * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest} SetIamPolicyInstantSnapshotRequest + * @returns {google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest} SetIamPolicyInstantSnapshotGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetIamPolicyInstantSnapshotRequest.decode = function decode(reader, length, error) { + SetIamPolicyInstantSnapshotGroupRequest.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.v1.SetIamPolicyInstantSnapshotRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -520480,30 +539360,30 @@ }; /** - * Decodes a SetIamPolicyInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * Decodes a SetIamPolicyInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest + * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest} SetIamPolicyInstantSnapshotRequest + * @returns {google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest} SetIamPolicyInstantSnapshotGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetIamPolicyInstantSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + SetIamPolicyInstantSnapshotGroupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetIamPolicyInstantSnapshotRequest message. + * Verifies a SetIamPolicyInstantSnapshotGroupRequest message. * @function verify - * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest + * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetIamPolicyInstantSnapshotRequest.verify = function verify(message) { + SetIamPolicyInstantSnapshotGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -520524,17 +539404,17 @@ }; /** - * Creates a SetIamPolicyInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetIamPolicyInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest + * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest} SetIamPolicyInstantSnapshotRequest + * @returns {google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest} SetIamPolicyInstantSnapshotGroupRequest */ - SetIamPolicyInstantSnapshotRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest) + SetIamPolicyInstantSnapshotGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest) return object; - var message = new $root.google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest(); + var message = new $root.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest(); if (object.project != null) message.project = String(object.project); if (object.resource != null) @@ -520543,22 +539423,302 @@ message.zone = String(object.zone); if (object.zoneSetPolicyRequestResource != null) { if (typeof object.zoneSetPolicyRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest.zoneSetPolicyRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest.zoneSetPolicyRequestResource: object expected"); message.zoneSetPolicyRequestResource = $root.google.cloud.compute.v1.ZoneSetPolicyRequest.fromObject(object.zoneSetPolicyRequestResource); } return message; }; /** - * Creates a plain object from a SetIamPolicyInstantSnapshotRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetIamPolicyInstantSnapshotGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest + * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest} message SetIamPolicyInstantSnapshotRequest + * @param {google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest} message SetIamPolicyInstantSnapshotGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetIamPolicyInstantSnapshotRequest.toObject = function toObject(message, options) { + SetIamPolicyInstantSnapshotGroupRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.resource = ""; + object.project = ""; + object.zoneSetPolicyRequestResource = null; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.zoneSetPolicyRequestResource != null && message.hasOwnProperty("zoneSetPolicyRequestResource")) + object.zoneSetPolicyRequestResource = $root.google.cloud.compute.v1.ZoneSetPolicyRequest.toObject(message.zoneSetPolicyRequestResource, options); + return object; + }; + + /** + * Converts this SetIamPolicyInstantSnapshotGroupRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest + * @instance + * @returns {Object.} JSON object + */ + SetIamPolicyInstantSnapshotGroupRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SetIamPolicyInstantSnapshotGroupRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SetIamPolicyInstantSnapshotGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest"; + }; + + return SetIamPolicyInstantSnapshotGroupRequest; + })(); + + v1.SetIamPolicyInstantSnapshotRequest = (function() { + + /** + * Properties of a SetIamPolicyInstantSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @interface ISetIamPolicyInstantSnapshotRequest + * @property {string|null} [project] SetIamPolicyInstantSnapshotRequest project + * @property {string|null} [resource] SetIamPolicyInstantSnapshotRequest resource + * @property {string|null} [zone] SetIamPolicyInstantSnapshotRequest zone + * @property {google.cloud.compute.v1.IZoneSetPolicyRequest|null} [zoneSetPolicyRequestResource] SetIamPolicyInstantSnapshotRequest zoneSetPolicyRequestResource + */ + + /** + * Constructs a new SetIamPolicyInstantSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SetIamPolicyInstantSnapshotRequest. + * @implements ISetIamPolicyInstantSnapshotRequest + * @constructor + * @param {google.cloud.compute.v1.ISetIamPolicyInstantSnapshotRequest=} [properties] Properties to set + */ + function SetIamPolicyInstantSnapshotRequest(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]]; + } + + /** + * SetIamPolicyInstantSnapshotRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest + * @instance + */ + SetIamPolicyInstantSnapshotRequest.prototype.project = ""; + + /** + * SetIamPolicyInstantSnapshotRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest + * @instance + */ + SetIamPolicyInstantSnapshotRequest.prototype.resource = ""; + + /** + * SetIamPolicyInstantSnapshotRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest + * @instance + */ + SetIamPolicyInstantSnapshotRequest.prototype.zone = ""; + + /** + * SetIamPolicyInstantSnapshotRequest zoneSetPolicyRequestResource. + * @member {google.cloud.compute.v1.IZoneSetPolicyRequest|null|undefined} zoneSetPolicyRequestResource + * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest + * @instance + */ + SetIamPolicyInstantSnapshotRequest.prototype.zoneSetPolicyRequestResource = null; + + /** + * Creates a new SetIamPolicyInstantSnapshotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.ISetIamPolicyInstantSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest} SetIamPolicyInstantSnapshotRequest instance + */ + SetIamPolicyInstantSnapshotRequest.create = function create(properties) { + return new SetIamPolicyInstantSnapshotRequest(properties); + }; + + /** + * Encodes the specified SetIamPolicyInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.ISetIamPolicyInstantSnapshotRequest} message SetIamPolicyInstantSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetIamPolicyInstantSnapshotRequest.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.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.zoneSetPolicyRequestResource != null && Object.hasOwnProperty.call(message, "zoneSetPolicyRequestResource")) + $root.google.cloud.compute.v1.ZoneSetPolicyRequest.encode(message.zoneSetPolicyRequestResource, writer.uint32(/* id 382082107, wireType 2 =*/3056656858).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SetIamPolicyInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.ISetIamPolicyInstantSnapshotRequest} message SetIamPolicyInstantSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetIamPolicyInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetIamPolicyInstantSnapshotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest} SetIamPolicyInstantSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetIamPolicyInstantSnapshotRequest.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.v1.SetIamPolicyInstantSnapshotRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 227560217: { + message.project = reader.string(); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + case 382082107: { + message.zoneSetPolicyRequestResource = $root.google.cloud.compute.v1.ZoneSetPolicyRequest.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetIamPolicyInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest} SetIamPolicyInstantSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetIamPolicyInstantSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetIamPolicyInstantSnapshotRequest message. + * @function verify + * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SetIamPolicyInstantSnapshotRequest.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.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.zoneSetPolicyRequestResource != null && message.hasOwnProperty("zoneSetPolicyRequestResource")) { + var error = $root.google.cloud.compute.v1.ZoneSetPolicyRequest.verify(message.zoneSetPolicyRequestResource); + if (error) + return "zoneSetPolicyRequestResource." + error; + } + return null; + }; + + /** + * Creates a SetIamPolicyInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest} SetIamPolicyInstantSnapshotRequest + */ + SetIamPolicyInstantSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest) + return object; + var message = new $root.google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest(); + 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.zoneSetPolicyRequestResource != null) { + if (typeof object.zoneSetPolicyRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest.zoneSetPolicyRequestResource: object expected"); + message.zoneSetPolicyRequestResource = $root.google.cloud.compute.v1.ZoneSetPolicyRequest.fromObject(object.zoneSetPolicyRequestResource); + } + return message; + }; + + /** + * Creates a plain object from a SetIamPolicyInstantSnapshotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest} message SetIamPolicyInstantSnapshotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetIamPolicyInstantSnapshotRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -522733,6 +541893,286 @@ return SetIamPolicyNodeTemplateRequest; })(); + v1.SetIamPolicyRegionBackendBucketRequest = (function() { + + /** + * Properties of a SetIamPolicyRegionBackendBucketRequest. + * @memberof google.cloud.compute.v1 + * @interface ISetIamPolicyRegionBackendBucketRequest + * @property {string|null} [project] SetIamPolicyRegionBackendBucketRequest project + * @property {string|null} [region] SetIamPolicyRegionBackendBucketRequest region + * @property {google.cloud.compute.v1.IRegionSetPolicyRequest|null} [regionSetPolicyRequestResource] SetIamPolicyRegionBackendBucketRequest regionSetPolicyRequestResource + * @property {string|null} [resource] SetIamPolicyRegionBackendBucketRequest resource + */ + + /** + * Constructs a new SetIamPolicyRegionBackendBucketRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SetIamPolicyRegionBackendBucketRequest. + * @implements ISetIamPolicyRegionBackendBucketRequest + * @constructor + * @param {google.cloud.compute.v1.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.v1.SetIamPolicyRegionBackendBucketRequest + * @instance + */ + SetIamPolicyRegionBackendBucketRequest.prototype.project = ""; + + /** + * SetIamPolicyRegionBackendBucketRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest + * @instance + */ + SetIamPolicyRegionBackendBucketRequest.prototype.region = ""; + + /** + * SetIamPolicyRegionBackendBucketRequest regionSetPolicyRequestResource. + * @member {google.cloud.compute.v1.IRegionSetPolicyRequest|null|undefined} regionSetPolicyRequestResource + * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest + * @instance + */ + SetIamPolicyRegionBackendBucketRequest.prototype.regionSetPolicyRequestResource = null; + + /** + * SetIamPolicyRegionBackendBucketRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest + * @instance + */ + SetIamPolicyRegionBackendBucketRequest.prototype.resource = ""; + + /** + * Creates a new SetIamPolicyRegionBackendBucketRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1.ISetIamPolicyRegionBackendBucketRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest} SetIamPolicyRegionBackendBucketRequest instance + */ + SetIamPolicyRegionBackendBucketRequest.create = function create(properties) { + return new SetIamPolicyRegionBackendBucketRequest(properties); + }; + + /** + * Encodes the specified SetIamPolicyRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.SetIamPolicyRegionBackendBucketRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.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.v1.SetIamPolicyRegionBackendBucketRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.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.v1.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.v1.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.v1.SetIamPolicyRegionBackendBucketRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest} SetIamPolicyRegionBackendBucketRequest + */ + SetIamPolicyRegionBackendBucketRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest) + return object; + var message = new $root.google.cloud.compute.v1.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.v1.SetIamPolicyRegionBackendBucketRequest.regionSetPolicyRequestResource: object expected"); + message.regionSetPolicyRequestResource = $root.google.cloud.compute.v1.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.v1.SetIamPolicyRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1.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.v1.RegionSetPolicyRequest.toObject(message.regionSetPolicyRequestResource, options); + return object; + }; + + /** + * Converts this SetIamPolicyRegionBackendBucketRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.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.v1.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.v1.SetIamPolicyRegionBackendBucketRequest"; + }; + + return SetIamPolicyRegionBackendBucketRequest; + })(); + v1.SetIamPolicyRegionBackendServiceRequest = (function() { /** @@ -523293,27 +542733,27 @@ return SetIamPolicyRegionDiskRequest; })(); - v1.SetIamPolicyRegionInstantSnapshotRequest = (function() { + v1.SetIamPolicyRegionInstantSnapshotGroupRequest = (function() { /** - * Properties of a SetIamPolicyRegionInstantSnapshotRequest. + * Properties of a SetIamPolicyRegionInstantSnapshotGroupRequest. * @memberof google.cloud.compute.v1 - * @interface ISetIamPolicyRegionInstantSnapshotRequest - * @property {string|null} [project] SetIamPolicyRegionInstantSnapshotRequest project - * @property {string|null} [region] SetIamPolicyRegionInstantSnapshotRequest region - * @property {google.cloud.compute.v1.IRegionSetPolicyRequest|null} [regionSetPolicyRequestResource] SetIamPolicyRegionInstantSnapshotRequest regionSetPolicyRequestResource - * @property {string|null} [resource] SetIamPolicyRegionInstantSnapshotRequest resource + * @interface ISetIamPolicyRegionInstantSnapshotGroupRequest + * @property {string|null} [project] SetIamPolicyRegionInstantSnapshotGroupRequest project + * @property {string|null} [region] SetIamPolicyRegionInstantSnapshotGroupRequest region + * @property {google.cloud.compute.v1.IRegionSetPolicyRequest|null} [regionSetPolicyRequestResource] SetIamPolicyRegionInstantSnapshotGroupRequest regionSetPolicyRequestResource + * @property {string|null} [resource] SetIamPolicyRegionInstantSnapshotGroupRequest resource */ /** - * Constructs a new SetIamPolicyRegionInstantSnapshotRequest. + * Constructs a new SetIamPolicyRegionInstantSnapshotGroupRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a SetIamPolicyRegionInstantSnapshotRequest. - * @implements ISetIamPolicyRegionInstantSnapshotRequest + * @classdesc Represents a SetIamPolicyRegionInstantSnapshotGroupRequest. + * @implements ISetIamPolicyRegionInstantSnapshotGroupRequest * @constructor - * @param {google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotGroupRequest=} [properties] Properties to set */ - function SetIamPolicyRegionInstantSnapshotRequest(properties) { + function SetIamPolicyRegionInstantSnapshotGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -523321,59 +542761,59 @@ } /** - * SetIamPolicyRegionInstantSnapshotRequest project. + * SetIamPolicyRegionInstantSnapshotGroupRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest * @instance */ - SetIamPolicyRegionInstantSnapshotRequest.prototype.project = ""; + SetIamPolicyRegionInstantSnapshotGroupRequest.prototype.project = ""; /** - * SetIamPolicyRegionInstantSnapshotRequest region. + * SetIamPolicyRegionInstantSnapshotGroupRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest * @instance */ - SetIamPolicyRegionInstantSnapshotRequest.prototype.region = ""; + SetIamPolicyRegionInstantSnapshotGroupRequest.prototype.region = ""; /** - * SetIamPolicyRegionInstantSnapshotRequest regionSetPolicyRequestResource. + * SetIamPolicyRegionInstantSnapshotGroupRequest regionSetPolicyRequestResource. * @member {google.cloud.compute.v1.IRegionSetPolicyRequest|null|undefined} regionSetPolicyRequestResource - * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest * @instance */ - SetIamPolicyRegionInstantSnapshotRequest.prototype.regionSetPolicyRequestResource = null; + SetIamPolicyRegionInstantSnapshotGroupRequest.prototype.regionSetPolicyRequestResource = null; /** - * SetIamPolicyRegionInstantSnapshotRequest resource. + * SetIamPolicyRegionInstantSnapshotGroupRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest * @instance */ - SetIamPolicyRegionInstantSnapshotRequest.prototype.resource = ""; + SetIamPolicyRegionInstantSnapshotGroupRequest.prototype.resource = ""; /** - * Creates a new SetIamPolicyRegionInstantSnapshotRequest instance using the specified properties. + * Creates a new SetIamPolicyRegionInstantSnapshotGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest} SetIamPolicyRegionInstantSnapshotRequest instance + * @param {google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest} SetIamPolicyRegionInstantSnapshotGroupRequest instance */ - SetIamPolicyRegionInstantSnapshotRequest.create = function create(properties) { - return new SetIamPolicyRegionInstantSnapshotRequest(properties); + SetIamPolicyRegionInstantSnapshotGroupRequest.create = function create(properties) { + return new SetIamPolicyRegionInstantSnapshotGroupRequest(properties); }; /** - * Encodes the specified SetIamPolicyRegionInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest.verify|verify} messages. + * Encodes the specified SetIamPolicyRegionInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotRequest} message SetIamPolicyRegionInstantSnapshotRequest message or plain object to encode + * @param {google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotGroupRequest} message SetIamPolicyRegionInstantSnapshotGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetIamPolicyRegionInstantSnapshotRequest.encode = function encode(message, writer) { + SetIamPolicyRegionInstantSnapshotGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -523388,33 +542828,313 @@ }; /** - * Encodes the specified SetIamPolicyRegionInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest.verify|verify} messages. + * Encodes the specified SetIamPolicyRegionInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotRequest} message SetIamPolicyRegionInstantSnapshotRequest message or plain object to encode + * @param {google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotGroupRequest} message SetIamPolicyRegionInstantSnapshotGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetIamPolicyRegionInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetIamPolicyRegionInstantSnapshotGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetIamPolicyRegionInstantSnapshotRequest message from the specified reader or buffer. + * Decodes a SetIamPolicyRegionInstantSnapshotGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest} SetIamPolicyRegionInstantSnapshotRequest + * @returns {google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest} SetIamPolicyRegionInstantSnapshotGroupRequest * @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) { + SetIamPolicyRegionInstantSnapshotGroupRequest.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.v1.SetIamPolicyRegionInstantSnapshotRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest(); + 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.v1.RegionSetPolicyRequest.decode(reader, reader.uint32()); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetIamPolicyRegionInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest} SetIamPolicyRegionInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetIamPolicyRegionInstantSnapshotGroupRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetIamPolicyRegionInstantSnapshotGroupRequest message. + * @function verify + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SetIamPolicyRegionInstantSnapshotGroupRequest.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.v1.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 SetIamPolicyRegionInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest} SetIamPolicyRegionInstantSnapshotGroupRequest + */ + SetIamPolicyRegionInstantSnapshotGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest) + return object; + var message = new $root.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest(); + 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.v1.SetIamPolicyRegionInstantSnapshotGroupRequest.regionSetPolicyRequestResource: object expected"); + message.regionSetPolicyRequestResource = $root.google.cloud.compute.v1.RegionSetPolicyRequest.fromObject(object.regionSetPolicyRequestResource); + } + if (object.resource != null) + message.resource = String(object.resource); + return message; + }; + + /** + * Creates a plain object from a SetIamPolicyRegionInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest} message SetIamPolicyRegionInstantSnapshotGroupRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetIamPolicyRegionInstantSnapshotGroupRequest.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.v1.RegionSetPolicyRequest.toObject(message.regionSetPolicyRequestResource, options); + return object; + }; + + /** + * Converts this SetIamPolicyRegionInstantSnapshotGroupRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest + * @instance + * @returns {Object.} JSON object + */ + SetIamPolicyRegionInstantSnapshotGroupRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SetIamPolicyRegionInstantSnapshotGroupRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SetIamPolicyRegionInstantSnapshotGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest"; + }; + + return SetIamPolicyRegionInstantSnapshotGroupRequest; + })(); + + v1.SetIamPolicyRegionInstantSnapshotRequest = (function() { + + /** + * Properties of a SetIamPolicyRegionInstantSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @interface ISetIamPolicyRegionInstantSnapshotRequest + * @property {string|null} [project] SetIamPolicyRegionInstantSnapshotRequest project + * @property {string|null} [region] SetIamPolicyRegionInstantSnapshotRequest region + * @property {google.cloud.compute.v1.IRegionSetPolicyRequest|null} [regionSetPolicyRequestResource] SetIamPolicyRegionInstantSnapshotRequest regionSetPolicyRequestResource + * @property {string|null} [resource] SetIamPolicyRegionInstantSnapshotRequest resource + */ + + /** + * Constructs a new SetIamPolicyRegionInstantSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SetIamPolicyRegionInstantSnapshotRequest. + * @implements ISetIamPolicyRegionInstantSnapshotRequest + * @constructor + * @param {google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotRequest=} [properties] Properties to set + */ + function SetIamPolicyRegionInstantSnapshotRequest(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]]; + } + + /** + * SetIamPolicyRegionInstantSnapshotRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest + * @instance + */ + SetIamPolicyRegionInstantSnapshotRequest.prototype.project = ""; + + /** + * SetIamPolicyRegionInstantSnapshotRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest + * @instance + */ + SetIamPolicyRegionInstantSnapshotRequest.prototype.region = ""; + + /** + * SetIamPolicyRegionInstantSnapshotRequest regionSetPolicyRequestResource. + * @member {google.cloud.compute.v1.IRegionSetPolicyRequest|null|undefined} regionSetPolicyRequestResource + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest + * @instance + */ + SetIamPolicyRegionInstantSnapshotRequest.prototype.regionSetPolicyRequestResource = null; + + /** + * SetIamPolicyRegionInstantSnapshotRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest + * @instance + */ + SetIamPolicyRegionInstantSnapshotRequest.prototype.resource = ""; + + /** + * Creates a new SetIamPolicyRegionInstantSnapshotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest} SetIamPolicyRegionInstantSnapshotRequest instance + */ + SetIamPolicyRegionInstantSnapshotRequest.create = function create(properties) { + return new SetIamPolicyRegionInstantSnapshotRequest(properties); + }; + + /** + * Encodes the specified SetIamPolicyRegionInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotRequest} message SetIamPolicyRegionInstantSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetIamPolicyRegionInstantSnapshotRequest.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.v1.RegionSetPolicyRequest.encode(message.regionSetPolicyRequestResource, writer.uint32(/* id 276489091, wireType 2 =*/2211912730).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SetIamPolicyRegionInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotRequest} message SetIamPolicyRegionInstantSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetIamPolicyRegionInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetIamPolicyRegionInstantSnapshotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.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.v1.SetIamPolicyRegionInstantSnapshotRequest} SetIamPolicyRegionInstantSnapshotRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -523853,6 +543573,286 @@ return SetIamPolicyRegionNetworkFirewallPolicyRequest; })(); + v1.SetIamPolicyRegionSnapshotRequest = (function() { + + /** + * Properties of a SetIamPolicyRegionSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @interface ISetIamPolicyRegionSnapshotRequest + * @property {string|null} [project] SetIamPolicyRegionSnapshotRequest project + * @property {string|null} [region] SetIamPolicyRegionSnapshotRequest region + * @property {google.cloud.compute.v1.IRegionSetPolicyRequest|null} [regionSetPolicyRequestResource] SetIamPolicyRegionSnapshotRequest regionSetPolicyRequestResource + * @property {string|null} [resource] SetIamPolicyRegionSnapshotRequest resource + */ + + /** + * Constructs a new SetIamPolicyRegionSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SetIamPolicyRegionSnapshotRequest. + * @implements ISetIamPolicyRegionSnapshotRequest + * @constructor + * @param {google.cloud.compute.v1.ISetIamPolicyRegionSnapshotRequest=} [properties] Properties to set + */ + function SetIamPolicyRegionSnapshotRequest(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]]; + } + + /** + * SetIamPolicyRegionSnapshotRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest + * @instance + */ + SetIamPolicyRegionSnapshotRequest.prototype.project = ""; + + /** + * SetIamPolicyRegionSnapshotRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest + * @instance + */ + SetIamPolicyRegionSnapshotRequest.prototype.region = ""; + + /** + * SetIamPolicyRegionSnapshotRequest regionSetPolicyRequestResource. + * @member {google.cloud.compute.v1.IRegionSetPolicyRequest|null|undefined} regionSetPolicyRequestResource + * @memberof google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest + * @instance + */ + SetIamPolicyRegionSnapshotRequest.prototype.regionSetPolicyRequestResource = null; + + /** + * SetIamPolicyRegionSnapshotRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest + * @instance + */ + SetIamPolicyRegionSnapshotRequest.prototype.resource = ""; + + /** + * Creates a new SetIamPolicyRegionSnapshotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.ISetIamPolicyRegionSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest} SetIamPolicyRegionSnapshotRequest instance + */ + SetIamPolicyRegionSnapshotRequest.create = function create(properties) { + return new SetIamPolicyRegionSnapshotRequest(properties); + }; + + /** + * Encodes the specified SetIamPolicyRegionSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.ISetIamPolicyRegionSnapshotRequest} message SetIamPolicyRegionSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetIamPolicyRegionSnapshotRequest.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.v1.RegionSetPolicyRequest.encode(message.regionSetPolicyRequestResource, writer.uint32(/* id 276489091, wireType 2 =*/2211912730).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SetIamPolicyRegionSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.ISetIamPolicyRegionSnapshotRequest} message SetIamPolicyRegionSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetIamPolicyRegionSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetIamPolicyRegionSnapshotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.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.v1.SetIamPolicyRegionSnapshotRequest} SetIamPolicyRegionSnapshotRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest(); + 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.v1.RegionSetPolicyRequest.decode(reader, reader.uint32()); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetIamPolicyRegionSnapshotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest} SetIamPolicyRegionSnapshotRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetIamPolicyRegionSnapshotRequest message. + * @function verify + * @memberof google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest + * @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) { + 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.v1.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 SetIamPolicyRegionSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest} SetIamPolicyRegionSnapshotRequest + */ + SetIamPolicyRegionSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest) + return object; + var message = new $root.google.cloud.compute.v1.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.v1.SetIamPolicyRegionSnapshotRequest.regionSetPolicyRequestResource: object expected"); + message.regionSetPolicyRequestResource = $root.google.cloud.compute.v1.RegionSetPolicyRequest.fromObject(object.regionSetPolicyRequestResource); + } + if (object.resource != null) + message.resource = String(object.resource); + return message; + }; + + /** + * Creates a plain object from a SetIamPolicyRegionSnapshotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest} message SetIamPolicyRegionSnapshotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetIamPolicyRegionSnapshotRequest.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.v1.RegionSetPolicyRequest.toObject(message.regionSetPolicyRequestResource, options); + return object; + }; + + /** + * Converts this SetIamPolicyRegionSnapshotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest + * @instance + * @returns {Object.} JSON object + */ + SetIamPolicyRegionSnapshotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SetIamPolicyRegionSnapshotRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SetIamPolicyRegionSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest"; + }; + + return SetIamPolicyRegionSnapshotRequest; + })(); + v1.SetIamPolicyReservationBlockRequest = (function() { /** @@ -531145,6 +551145,323 @@ return SetLabelsRegionSecurityPolicyRequest; })(); + v1.SetLabelsRegionSnapshotRequest = (function() { + + /** + * Properties of a SetLabelsRegionSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @interface ISetLabelsRegionSnapshotRequest + * @property {string|null} [project] SetLabelsRegionSnapshotRequest project + * @property {string|null} [region] SetLabelsRegionSnapshotRequest region + * @property {google.cloud.compute.v1.IRegionSetLabelsRequest|null} [regionSetLabelsRequestResource] SetLabelsRegionSnapshotRequest regionSetLabelsRequestResource + * @property {string|null} [requestId] SetLabelsRegionSnapshotRequest requestId + * @property {string|null} [resource] SetLabelsRegionSnapshotRequest resource + */ + + /** + * Constructs a new SetLabelsRegionSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SetLabelsRegionSnapshotRequest. + * @implements ISetLabelsRegionSnapshotRequest + * @constructor + * @param {google.cloud.compute.v1.ISetLabelsRegionSnapshotRequest=} [properties] Properties to set + */ + function SetLabelsRegionSnapshotRequest(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]]; + } + + /** + * SetLabelsRegionSnapshotRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.SetLabelsRegionSnapshotRequest + * @instance + */ + SetLabelsRegionSnapshotRequest.prototype.project = ""; + + /** + * SetLabelsRegionSnapshotRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.SetLabelsRegionSnapshotRequest + * @instance + */ + SetLabelsRegionSnapshotRequest.prototype.region = ""; + + /** + * SetLabelsRegionSnapshotRequest regionSetLabelsRequestResource. + * @member {google.cloud.compute.v1.IRegionSetLabelsRequest|null|undefined} regionSetLabelsRequestResource + * @memberof google.cloud.compute.v1.SetLabelsRegionSnapshotRequest + * @instance + */ + SetLabelsRegionSnapshotRequest.prototype.regionSetLabelsRequestResource = null; + + /** + * SetLabelsRegionSnapshotRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.SetLabelsRegionSnapshotRequest + * @instance + */ + SetLabelsRegionSnapshotRequest.prototype.requestId = null; + + /** + * SetLabelsRegionSnapshotRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1.SetLabelsRegionSnapshotRequest + * @instance + */ + SetLabelsRegionSnapshotRequest.prototype.resource = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SetLabelsRegionSnapshotRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SetLabelsRegionSnapshotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SetLabelsRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.ISetLabelsRegionSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SetLabelsRegionSnapshotRequest} SetLabelsRegionSnapshotRequest instance + */ + SetLabelsRegionSnapshotRequest.create = function create(properties) { + return new SetLabelsRegionSnapshotRequest(properties); + }; + + /** + * Encodes the specified SetLabelsRegionSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.SetLabelsRegionSnapshotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SetLabelsRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.ISetLabelsRegionSnapshotRequest} message SetLabelsRegionSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetLabelsRegionSnapshotRequest.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.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.regionSetLabelsRequestResource != null && Object.hasOwnProperty.call(message, "regionSetLabelsRequestResource")) + $root.google.cloud.compute.v1.RegionSetLabelsRequest.encode(message.regionSetLabelsRequestResource, writer.uint32(/* id 259357782, wireType 2 =*/2074862258).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SetLabelsRegionSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetLabelsRegionSnapshotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SetLabelsRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.ISetLabelsRegionSnapshotRequest} message SetLabelsRegionSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetLabelsRegionSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetLabelsRegionSnapshotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SetLabelsRegionSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.SetLabelsRegionSnapshotRequest} SetLabelsRegionSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetLabelsRegionSnapshotRequest.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.v1.SetLabelsRegionSnapshotRequest(); + 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 259357782: { + message.regionSetLabelsRequestResource = $root.google.cloud.compute.v1.RegionSetLabelsRequest.decode(reader, reader.uint32()); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetLabelsRegionSnapshotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SetLabelsRegionSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SetLabelsRegionSnapshotRequest} SetLabelsRegionSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetLabelsRegionSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetLabelsRegionSnapshotRequest message. + * @function verify + * @memberof google.cloud.compute.v1.SetLabelsRegionSnapshotRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SetLabelsRegionSnapshotRequest.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.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.regionSetLabelsRequestResource != null && message.hasOwnProperty("regionSetLabelsRequestResource")) { + var error = $root.google.cloud.compute.v1.RegionSetLabelsRequest.verify(message.regionSetLabelsRequestResource); + if (error) + return "regionSetLabelsRequestResource." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + return null; + }; + + /** + * Creates a SetLabelsRegionSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SetLabelsRegionSnapshotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SetLabelsRegionSnapshotRequest} SetLabelsRegionSnapshotRequest + */ + SetLabelsRegionSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest) + return object; + var message = new $root.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.regionSetLabelsRequestResource != null) { + if (typeof object.regionSetLabelsRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1.SetLabelsRegionSnapshotRequest.regionSetLabelsRequestResource: object expected"); + message.regionSetLabelsRequestResource = $root.google.cloud.compute.v1.RegionSetLabelsRequest.fromObject(object.regionSetLabelsRequestResource); + } + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.resource != null) + message.resource = String(object.resource); + return message; + }; + + /** + * Creates a plain object from a SetLabelsRegionSnapshotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SetLabelsRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.SetLabelsRegionSnapshotRequest} message SetLabelsRegionSnapshotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetLabelsRegionSnapshotRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.resource = ""; + object.project = ""; + object.regionSetLabelsRequestResource = 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.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.regionSetLabelsRequestResource != null && message.hasOwnProperty("regionSetLabelsRequestResource")) + object.regionSetLabelsRequestResource = $root.google.cloud.compute.v1.RegionSetLabelsRequest.toObject(message.regionSetLabelsRequestResource, options); + return object; + }; + + /** + * Converts this SetLabelsRegionSnapshotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SetLabelsRegionSnapshotRequest + * @instance + * @returns {Object.} JSON object + */ + SetLabelsRegionSnapshotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SetLabelsRegionSnapshotRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.SetLabelsRegionSnapshotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SetLabelsRegionSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.SetLabelsRegionSnapshotRequest"; + }; + + return SetLabelsRegionSnapshotRequest; + })(); + v1.SetLabelsSecurityPolicyRequest = (function() { /** @@ -545971,10 +566288,13 @@ * @property {string|null} [locationHint] Snapshot locationHint * @property {string|null} [name] Snapshot name * @property {google.cloud.compute.v1.ISnapshotParams|null} [params] Snapshot params + * @property {string|null} [region] Snapshot region * @property {boolean|null} [satisfiesPzi] Snapshot satisfiesPzi * @property {boolean|null} [satisfiesPzs] Snapshot satisfiesPzs * @property {string|null} [selfLink] Snapshot selfLink * @property {google.cloud.compute.v1.ICustomerEncryptionKey|null} [snapshotEncryptionKey] Snapshot snapshotEncryptionKey + * @property {string|null} [snapshotGroupId] Snapshot snapshotGroupId + * @property {string|null} [snapshotGroupName] Snapshot snapshotGroupName * @property {string|null} [snapshotType] Snapshot snapshotType * @property {string|null} [sourceDisk] Snapshot sourceDisk * @property {google.cloud.compute.v1.ICustomerEncryptionKey|null} [sourceDiskEncryptionKey] Snapshot sourceDiskEncryptionKey @@ -546171,6 +566491,14 @@ */ Snapshot.prototype.params = null; + /** + * Snapshot region. + * @member {string|null|undefined} region + * @memberof google.cloud.compute.v1.Snapshot + * @instance + */ + Snapshot.prototype.region = null; + /** * Snapshot satisfiesPzi. * @member {boolean|null|undefined} satisfiesPzi @@ -546203,6 +566531,22 @@ */ Snapshot.prototype.snapshotEncryptionKey = null; + /** + * Snapshot snapshotGroupId. + * @member {string|null|undefined} snapshotGroupId + * @memberof google.cloud.compute.v1.Snapshot + * @instance + */ + Snapshot.prototype.snapshotGroupId = null; + + /** + * Snapshot snapshotGroupName. + * @member {string|null|undefined} snapshotGroupName + * @memberof google.cloud.compute.v1.Snapshot + * @instance + */ + Snapshot.prototype.snapshotGroupName = null; + /** * Snapshot snapshotType. * @member {string|null|undefined} snapshotType @@ -546414,6 +566758,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(Snapshot.prototype, "_region", { + get: $util.oneOfGetter($oneOfFields = ["region"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(Snapshot.prototype, "_satisfiesPzi", { get: $util.oneOfGetter($oneOfFields = ["satisfiesPzi"]), @@ -546438,6 +566788,18 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(Snapshot.prototype, "_snapshotGroupId", { + get: $util.oneOfGetter($oneOfFields = ["snapshotGroupId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(Snapshot.prototype, "_snapshotGroupName", { + get: $util.oneOfGetter($oneOfFields = ["snapshotGroupName"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(Snapshot.prototype, "_snapshotType", { get: $util.oneOfGetter($oneOfFields = ["snapshotType"]), @@ -546571,6 +566933,8 @@ writer.uint32(/* id 124349653, wireType 2 =*/994797226).string(message.snapshotType); if (message.creationSizeBytes != null && Object.hasOwnProperty.call(message, "creationSizeBytes")) writer.uint32(/* id 125400077, wireType 0 =*/1003200616).int64(message.creationSizeBytes); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); if (message.labelFingerprint != null && Object.hasOwnProperty.call(message, "labelFingerprint")) writer.uint32(/* id 178124825, wireType 2 =*/1424998602).string(message.labelFingerprint); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -546579,6 +566943,10 @@ writer.uint32(/* id 219202054, wireType 2 =*/1753616434).string(message.sourceInstantSnapshot); if (message.sourceSnapshotSchedulePolicy != null && Object.hasOwnProperty.call(message, "sourceSnapshotSchedulePolicy")) writer.uint32(/* id 235756291, wireType 2 =*/1886050330).string(message.sourceSnapshotSchedulePolicy); + if (message.snapshotGroupName != null && Object.hasOwnProperty.call(message, "snapshotGroupName")) + writer.uint32(/* id 246247846, wireType 2 =*/1969982770).string(message.snapshotGroupName); + if (message.snapshotGroupId != null && Object.hasOwnProperty.call(message, "snapshotGroupId")) + writer.uint32(/* id 255004406, wireType 2 =*/2040035250).string(message.snapshotGroupId); if (message.sourceInstantSnapshotId != null && Object.hasOwnProperty.call(message, "sourceInstantSnapshotId")) writer.uint32(/* id 287582708, wireType 2 =*/2300661666).string(message.sourceInstantSnapshotId); if (message.architecture != null && Object.hasOwnProperty.call(message, "architecture")) @@ -546770,6 +567138,10 @@ message.params = $root.google.cloud.compute.v1.SnapshotParams.decode(reader, reader.uint32()); break; } + case 138946292: { + message.region = reader.string(); + break; + } case 480964257: { message.satisfiesPzi = reader.bool(); break; @@ -546786,6 +567158,14 @@ message.snapshotEncryptionKey = $root.google.cloud.compute.v1.CustomerEncryptionKey.decode(reader, reader.uint32()); break; } + case 255004406: { + message.snapshotGroupId = reader.string(); + break; + } + case 246247846: { + message.snapshotGroupName = reader.string(); + break; + } case 124349653: { message.snapshotType = reader.string(); break; @@ -546994,6 +567374,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.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) { properties._satisfiesPzi = 1; if (typeof message.satisfiesPzi !== "boolean") @@ -547017,6 +567402,16 @@ return "snapshotEncryptionKey." + error; } } + if (message.snapshotGroupId != null && message.hasOwnProperty("snapshotGroupId")) { + properties._snapshotGroupId = 1; + if (!$util.isString(message.snapshotGroupId)) + return "snapshotGroupId: string expected"; + } + if (message.snapshotGroupName != null && message.hasOwnProperty("snapshotGroupName")) { + properties._snapshotGroupName = 1; + if (!$util.isString(message.snapshotGroupName)) + return "snapshotGroupName: string expected"; + } if (message.snapshotType != null && message.hasOwnProperty("snapshotType")) { properties._snapshotType = 1; if (!$util.isString(message.snapshotType)) @@ -547211,6 +567606,8 @@ throw TypeError(".google.cloud.compute.v1.Snapshot.params: object expected"); message.params = $root.google.cloud.compute.v1.SnapshotParams.fromObject(object.params); } + if (object.region != null) + message.region = String(object.region); if (object.satisfiesPzi != null) message.satisfiesPzi = Boolean(object.satisfiesPzi); if (object.satisfiesPzs != null) @@ -547222,6 +567619,10 @@ throw TypeError(".google.cloud.compute.v1.Snapshot.snapshotEncryptionKey: object expected"); message.snapshotEncryptionKey = $root.google.cloud.compute.v1.CustomerEncryptionKey.fromObject(object.snapshotEncryptionKey); } + if (object.snapshotGroupId != null) + message.snapshotGroupId = String(object.snapshotGroupId); + if (object.snapshotGroupName != null) + message.snapshotGroupName = String(object.snapshotGroupName); if (object.snapshotType != null) message.snapshotType = String(object.snapshotType); if (object.sourceDisk != null) @@ -547366,6 +567767,11 @@ if (options.oneofs) object._creationSizeBytes = "creationSizeBytes"; } + if (message.region != null && message.hasOwnProperty("region")) { + object.region = message.region; + if (options.oneofs) + object._region = "region"; + } if (message.labelFingerprint != null && message.hasOwnProperty("labelFingerprint")) { object.labelFingerprint = message.labelFingerprint; if (options.oneofs) @@ -547386,6 +567792,16 @@ if (options.oneofs) object._sourceSnapshotSchedulePolicy = "sourceSnapshotSchedulePolicy"; } + if (message.snapshotGroupName != null && message.hasOwnProperty("snapshotGroupName")) { + object.snapshotGroupName = message.snapshotGroupName; + if (options.oneofs) + object._snapshotGroupName = "snapshotGroupName"; + } + if (message.snapshotGroupId != null && message.hasOwnProperty("snapshotGroupId")) { + object.snapshotGroupId = message.snapshotGroupId; + if (options.oneofs) + object._snapshotGroupId = "snapshotGroupId"; + } if (message.sourceInstantSnapshotId != null && message.hasOwnProperty("sourceInstantSnapshotId")) { object.sourceInstantSnapshotId = message.sourceInstantSnapshotId; if (options.oneofs) @@ -547605,6 +568021,297 @@ return Snapshot; })(); + v1.SnapshotGroupParameters = (function() { + + /** + * Properties of a SnapshotGroupParameters. + * @memberof google.cloud.compute.v1 + * @interface ISnapshotGroupParameters + * @property {Array.|null} [replicaZones] SnapshotGroupParameters replicaZones + * @property {string|null} [sourceSnapshotGroup] SnapshotGroupParameters sourceSnapshotGroup + * @property {string|null} [type] SnapshotGroupParameters type + */ + + /** + * Constructs a new SnapshotGroupParameters. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SnapshotGroupParameters. + * @implements ISnapshotGroupParameters + * @constructor + * @param {google.cloud.compute.v1.ISnapshotGroupParameters=} [properties] Properties to set + */ + function SnapshotGroupParameters(properties) { + this.replicaZones = []; + 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]]; + } + + /** + * SnapshotGroupParameters replicaZones. + * @member {Array.} replicaZones + * @memberof google.cloud.compute.v1.SnapshotGroupParameters + * @instance + */ + SnapshotGroupParameters.prototype.replicaZones = $util.emptyArray; + + /** + * SnapshotGroupParameters sourceSnapshotGroup. + * @member {string|null|undefined} sourceSnapshotGroup + * @memberof google.cloud.compute.v1.SnapshotGroupParameters + * @instance + */ + SnapshotGroupParameters.prototype.sourceSnapshotGroup = null; + + /** + * SnapshotGroupParameters type. + * @member {string|null|undefined} type + * @memberof google.cloud.compute.v1.SnapshotGroupParameters + * @instance + */ + SnapshotGroupParameters.prototype.type = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SnapshotGroupParameters.prototype, "_sourceSnapshotGroup", { + get: $util.oneOfGetter($oneOfFields = ["sourceSnapshotGroup"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SnapshotGroupParameters.prototype, "_type", { + get: $util.oneOfGetter($oneOfFields = ["type"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SnapshotGroupParameters instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SnapshotGroupParameters + * @static + * @param {google.cloud.compute.v1.ISnapshotGroupParameters=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SnapshotGroupParameters} SnapshotGroupParameters instance + */ + SnapshotGroupParameters.create = function create(properties) { + return new SnapshotGroupParameters(properties); + }; + + /** + * Encodes the specified SnapshotGroupParameters message. Does not implicitly {@link google.cloud.compute.v1.SnapshotGroupParameters.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SnapshotGroupParameters + * @static + * @param {google.cloud.compute.v1.ISnapshotGroupParameters} message SnapshotGroupParameters message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SnapshotGroupParameters.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 3575610, wireType 2 =*/28604882).string(message.type); + if (message.replicaZones != null && message.replicaZones.length) + for (var i = 0; i < message.replicaZones.length; ++i) + writer.uint32(/* id 48438272, wireType 2 =*/387506178).string(message.replicaZones[i]); + if (message.sourceSnapshotGroup != null && Object.hasOwnProperty.call(message, "sourceSnapshotGroup")) + writer.uint32(/* id 225130728, wireType 2 =*/1801045826).string(message.sourceSnapshotGroup); + return writer; + }; + + /** + * Encodes the specified SnapshotGroupParameters message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SnapshotGroupParameters.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SnapshotGroupParameters + * @static + * @param {google.cloud.compute.v1.ISnapshotGroupParameters} message SnapshotGroupParameters message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SnapshotGroupParameters.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SnapshotGroupParameters message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SnapshotGroupParameters + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.SnapshotGroupParameters} SnapshotGroupParameters + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SnapshotGroupParameters.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.v1.SnapshotGroupParameters(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 48438272: { + if (!(message.replicaZones && message.replicaZones.length)) + message.replicaZones = []; + message.replicaZones.push(reader.string()); + break; + } + case 225130728: { + message.sourceSnapshotGroup = reader.string(); + break; + } + case 3575610: { + message.type = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SnapshotGroupParameters message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SnapshotGroupParameters + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SnapshotGroupParameters} SnapshotGroupParameters + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SnapshotGroupParameters.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SnapshotGroupParameters message. + * @function verify + * @memberof google.cloud.compute.v1.SnapshotGroupParameters + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SnapshotGroupParameters.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.replicaZones != null && message.hasOwnProperty("replicaZones")) { + if (!Array.isArray(message.replicaZones)) + return "replicaZones: array expected"; + for (var i = 0; i < message.replicaZones.length; ++i) + if (!$util.isString(message.replicaZones[i])) + return "replicaZones: string[] expected"; + } + if (message.sourceSnapshotGroup != null && message.hasOwnProperty("sourceSnapshotGroup")) { + properties._sourceSnapshotGroup = 1; + if (!$util.isString(message.sourceSnapshotGroup)) + return "sourceSnapshotGroup: string expected"; + } + if (message.type != null && message.hasOwnProperty("type")) { + properties._type = 1; + if (!$util.isString(message.type)) + return "type: string expected"; + } + return null; + }; + + /** + * Creates a SnapshotGroupParameters message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SnapshotGroupParameters + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SnapshotGroupParameters} SnapshotGroupParameters + */ + SnapshotGroupParameters.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SnapshotGroupParameters) + return object; + var message = new $root.google.cloud.compute.v1.SnapshotGroupParameters(); + if (object.replicaZones) { + if (!Array.isArray(object.replicaZones)) + throw TypeError(".google.cloud.compute.v1.SnapshotGroupParameters.replicaZones: array expected"); + message.replicaZones = []; + for (var i = 0; i < object.replicaZones.length; ++i) + message.replicaZones[i] = String(object.replicaZones[i]); + } + if (object.sourceSnapshotGroup != null) + message.sourceSnapshotGroup = String(object.sourceSnapshotGroup); + if (object.type != null) + message.type = String(object.type); + return message; + }; + + /** + * Creates a plain object from a SnapshotGroupParameters message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SnapshotGroupParameters + * @static + * @param {google.cloud.compute.v1.SnapshotGroupParameters} message SnapshotGroupParameters + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SnapshotGroupParameters.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.replicaZones = []; + if (message.type != null && message.hasOwnProperty("type")) { + object.type = message.type; + if (options.oneofs) + object._type = "type"; + } + if (message.replicaZones && message.replicaZones.length) { + object.replicaZones = []; + for (var j = 0; j < message.replicaZones.length; ++j) + object.replicaZones[j] = message.replicaZones[j]; + } + if (message.sourceSnapshotGroup != null && message.hasOwnProperty("sourceSnapshotGroup")) { + object.sourceSnapshotGroup = message.sourceSnapshotGroup; + if (options.oneofs) + object._sourceSnapshotGroup = "sourceSnapshotGroup"; + } + return object; + }; + + /** + * Converts this SnapshotGroupParameters to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SnapshotGroupParameters + * @instance + * @returns {Object.} JSON object + */ + SnapshotGroupParameters.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SnapshotGroupParameters + * @function getTypeUrl + * @memberof google.cloud.compute.v1.SnapshotGroupParameters + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SnapshotGroupParameters.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.SnapshotGroupParameters"; + }; + + return SnapshotGroupParameters; + })(); + v1.SnapshotList = (function() { /** @@ -548252,6 +568959,7 @@ * Properties of a SnapshotSettings. * @memberof google.cloud.compute.v1 * @interface ISnapshotSettings + * @property {google.cloud.compute.v1.ISnapshotSettingsAccessLocation|null} [accessLocation] SnapshotSettings accessLocation * @property {google.cloud.compute.v1.ISnapshotSettingsStorageLocationSettings|null} [storageLocation] SnapshotSettings storageLocation */ @@ -548270,6 +568978,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * SnapshotSettings accessLocation. + * @member {google.cloud.compute.v1.ISnapshotSettingsAccessLocation|null|undefined} accessLocation + * @memberof google.cloud.compute.v1.SnapshotSettings + * @instance + */ + SnapshotSettings.prototype.accessLocation = null; + /** * SnapshotSettings storageLocation. * @member {google.cloud.compute.v1.ISnapshotSettingsStorageLocationSettings|null|undefined} storageLocation @@ -548281,6 +568997,12 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + // Virtual OneOf for proto3 optional field + Object.defineProperty(SnapshotSettings.prototype, "_accessLocation", { + get: $util.oneOfGetter($oneOfFields = ["accessLocation"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(SnapshotSettings.prototype, "_storageLocation", { get: $util.oneOfGetter($oneOfFields = ["storageLocation"]), @@ -548311,6 +569033,8 @@ SnapshotSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.accessLocation != null && Object.hasOwnProperty.call(message, "accessLocation")) + $root.google.cloud.compute.v1.SnapshotSettingsAccessLocation.encode(message.accessLocation, writer.uint32(/* id 18410544, wireType 2 =*/147284354).fork()).ldelim(); if (message.storageLocation != null && Object.hasOwnProperty.call(message, "storageLocation")) $root.google.cloud.compute.v1.SnapshotSettingsStorageLocationSettings.encode(message.storageLocation, writer.uint32(/* id 460859641, wireType 2 =*/3686877130).fork()).ldelim(); return writer; @@ -548349,6 +569073,10 @@ if (tag === error) break; switch (tag >>> 3) { + case 18410544: { + message.accessLocation = $root.google.cloud.compute.v1.SnapshotSettingsAccessLocation.decode(reader, reader.uint32()); + break; + } case 460859641: { message.storageLocation = $root.google.cloud.compute.v1.SnapshotSettingsStorageLocationSettings.decode(reader, reader.uint32()); break; @@ -548389,6 +569117,14 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.accessLocation != null && message.hasOwnProperty("accessLocation")) { + properties._accessLocation = 1; + { + var error = $root.google.cloud.compute.v1.SnapshotSettingsAccessLocation.verify(message.accessLocation); + if (error) + return "accessLocation." + error; + } + } if (message.storageLocation != null && message.hasOwnProperty("storageLocation")) { properties._storageLocation = 1; { @@ -548412,6 +569148,11 @@ if (object instanceof $root.google.cloud.compute.v1.SnapshotSettings) return object; var message = new $root.google.cloud.compute.v1.SnapshotSettings(); + if (object.accessLocation != null) { + if (typeof object.accessLocation !== "object") + throw TypeError(".google.cloud.compute.v1.SnapshotSettings.accessLocation: object expected"); + message.accessLocation = $root.google.cloud.compute.v1.SnapshotSettingsAccessLocation.fromObject(object.accessLocation); + } if (object.storageLocation != null) { if (typeof object.storageLocation !== "object") throw TypeError(".google.cloud.compute.v1.SnapshotSettings.storageLocation: object expected"); @@ -548433,6 +569174,11 @@ if (!options) options = {}; var object = {}; + if (message.accessLocation != null && message.hasOwnProperty("accessLocation")) { + object.accessLocation = $root.google.cloud.compute.v1.SnapshotSettingsAccessLocation.toObject(message.accessLocation, options); + if (options.oneofs) + object._accessLocation = "accessLocation"; + } if (message.storageLocation != null && message.hasOwnProperty("storageLocation")) { object.storageLocation = $root.google.cloud.compute.v1.SnapshotSettingsStorageLocationSettings.toObject(message.storageLocation, options); if (options.oneofs) @@ -548470,6 +569216,526 @@ return SnapshotSettings; })(); + v1.SnapshotSettingsAccessLocation = (function() { + + /** + * Properties of a SnapshotSettingsAccessLocation. + * @memberof google.cloud.compute.v1 + * @interface ISnapshotSettingsAccessLocation + * @property {Object.|null} [locations] SnapshotSettingsAccessLocation locations + * @property {string|null} [policy] SnapshotSettingsAccessLocation policy + */ + + /** + * Constructs a new SnapshotSettingsAccessLocation. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SnapshotSettingsAccessLocation. + * @implements ISnapshotSettingsAccessLocation + * @constructor + * @param {google.cloud.compute.v1.ISnapshotSettingsAccessLocation=} [properties] Properties to set + */ + function SnapshotSettingsAccessLocation(properties) { + this.locations = {}; + 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]]; + } + + /** + * SnapshotSettingsAccessLocation locations. + * @member {Object.} locations + * @memberof google.cloud.compute.v1.SnapshotSettingsAccessLocation + * @instance + */ + SnapshotSettingsAccessLocation.prototype.locations = $util.emptyObject; + + /** + * SnapshotSettingsAccessLocation policy. + * @member {string|null|undefined} policy + * @memberof google.cloud.compute.v1.SnapshotSettingsAccessLocation + * @instance + */ + SnapshotSettingsAccessLocation.prototype.policy = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SnapshotSettingsAccessLocation.prototype, "_policy", { + get: $util.oneOfGetter($oneOfFields = ["policy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SnapshotSettingsAccessLocation instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SnapshotSettingsAccessLocation + * @static + * @param {google.cloud.compute.v1.ISnapshotSettingsAccessLocation=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SnapshotSettingsAccessLocation} SnapshotSettingsAccessLocation instance + */ + SnapshotSettingsAccessLocation.create = function create(properties) { + return new SnapshotSettingsAccessLocation(properties); + }; + + /** + * Encodes the specified SnapshotSettingsAccessLocation message. Does not implicitly {@link google.cloud.compute.v1.SnapshotSettingsAccessLocation.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SnapshotSettingsAccessLocation + * @static + * @param {google.cloud.compute.v1.ISnapshotSettingsAccessLocation} message SnapshotSettingsAccessLocation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SnapshotSettingsAccessLocation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.policy != null && Object.hasOwnProperty.call(message, "policy")) + writer.uint32(/* id 91071794, wireType 2 =*/728574354).string(message.policy); + if (message.locations != null && Object.hasOwnProperty.call(message, "locations")) + for (var keys = Object.keys(message.locations), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 413423454, wireType 2 =*/3307387634).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference.encode(message.locations[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Encodes the specified SnapshotSettingsAccessLocation message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SnapshotSettingsAccessLocation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SnapshotSettingsAccessLocation + * @static + * @param {google.cloud.compute.v1.ISnapshotSettingsAccessLocation} message SnapshotSettingsAccessLocation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SnapshotSettingsAccessLocation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SnapshotSettingsAccessLocation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SnapshotSettingsAccessLocation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.SnapshotSettingsAccessLocation} SnapshotSettingsAccessLocation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SnapshotSettingsAccessLocation.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.v1.SnapshotSettingsAccessLocation(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 413423454: { + if (message.locations === $util.emptyObject) + message.locations = {}; + 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.v1.SnapshotSettingsAccessLocationAccessLocationPreference.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.locations[key] = value; + break; + } + case 91071794: { + message.policy = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SnapshotSettingsAccessLocation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SnapshotSettingsAccessLocation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SnapshotSettingsAccessLocation} SnapshotSettingsAccessLocation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SnapshotSettingsAccessLocation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SnapshotSettingsAccessLocation message. + * @function verify + * @memberof google.cloud.compute.v1.SnapshotSettingsAccessLocation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SnapshotSettingsAccessLocation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.locations != null && message.hasOwnProperty("locations")) { + if (!$util.isObject(message.locations)) + return "locations: object expected"; + var key = Object.keys(message.locations); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference.verify(message.locations[key[i]]); + if (error) + return "locations." + error; + } + } + if (message.policy != null && message.hasOwnProperty("policy")) { + properties._policy = 1; + if (!$util.isString(message.policy)) + return "policy: string expected"; + } + return null; + }; + + /** + * Creates a SnapshotSettingsAccessLocation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SnapshotSettingsAccessLocation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SnapshotSettingsAccessLocation} SnapshotSettingsAccessLocation + */ + SnapshotSettingsAccessLocation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SnapshotSettingsAccessLocation) + return object; + var message = new $root.google.cloud.compute.v1.SnapshotSettingsAccessLocation(); + if (object.locations) { + if (typeof object.locations !== "object") + throw TypeError(".google.cloud.compute.v1.SnapshotSettingsAccessLocation.locations: object expected"); + message.locations = {}; + for (var keys = Object.keys(object.locations), i = 0; i < keys.length; ++i) { + if (typeof object.locations[keys[i]] !== "object") + throw TypeError(".google.cloud.compute.v1.SnapshotSettingsAccessLocation.locations: object expected"); + message.locations[keys[i]] = $root.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference.fromObject(object.locations[keys[i]]); + } + } + if (object.policy != null) + message.policy = String(object.policy); + return message; + }; + + /** + * Creates a plain object from a SnapshotSettingsAccessLocation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SnapshotSettingsAccessLocation + * @static + * @param {google.cloud.compute.v1.SnapshotSettingsAccessLocation} message SnapshotSettingsAccessLocation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SnapshotSettingsAccessLocation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.locations = {}; + if (message.policy != null && message.hasOwnProperty("policy")) { + object.policy = message.policy; + if (options.oneofs) + object._policy = "policy"; + } + var keys2; + if (message.locations && (keys2 = Object.keys(message.locations)).length) { + object.locations = {}; + for (var j = 0; j < keys2.length; ++j) + object.locations[keys2[j]] = $root.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference.toObject(message.locations[keys2[j]], options); + } + return object; + }; + + /** + * Converts this SnapshotSettingsAccessLocation to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SnapshotSettingsAccessLocation + * @instance + * @returns {Object.} JSON object + */ + SnapshotSettingsAccessLocation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SnapshotSettingsAccessLocation + * @function getTypeUrl + * @memberof google.cloud.compute.v1.SnapshotSettingsAccessLocation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SnapshotSettingsAccessLocation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.SnapshotSettingsAccessLocation"; + }; + + /** + * Policy enum. + * @name google.cloud.compute.v1.SnapshotSettingsAccessLocation.Policy + * @enum {number} + * @property {number} UNDEFINED_POLICY=0 UNDEFINED_POLICY value + * @property {number} ALL_REGIONS=273143585 ALL_REGIONS value + * @property {number} POLICY_UNSPECIFIED=197974922 POLICY_UNSPECIFIED value + * @property {number} SPECIFIC_REGIONS=454128082 SPECIFIC_REGIONS value + */ + SnapshotSettingsAccessLocation.Policy = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_POLICY"] = 0; + values[valuesById[273143585] = "ALL_REGIONS"] = 273143585; + values[valuesById[197974922] = "POLICY_UNSPECIFIED"] = 197974922; + values[valuesById[454128082] = "SPECIFIC_REGIONS"] = 454128082; + return values; + })(); + + return SnapshotSettingsAccessLocation; + })(); + + v1.SnapshotSettingsAccessLocationAccessLocationPreference = (function() { + + /** + * Properties of a SnapshotSettingsAccessLocationAccessLocationPreference. + * @memberof google.cloud.compute.v1 + * @interface ISnapshotSettingsAccessLocationAccessLocationPreference + * @property {string|null} [region] SnapshotSettingsAccessLocationAccessLocationPreference region + */ + + /** + * Constructs a new SnapshotSettingsAccessLocationAccessLocationPreference. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SnapshotSettingsAccessLocationAccessLocationPreference. + * @implements ISnapshotSettingsAccessLocationAccessLocationPreference + * @constructor + * @param {google.cloud.compute.v1.ISnapshotSettingsAccessLocationAccessLocationPreference=} [properties] Properties to set + */ + function SnapshotSettingsAccessLocationAccessLocationPreference(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]]; + } + + /** + * SnapshotSettingsAccessLocationAccessLocationPreference region. + * @member {string|null|undefined} region + * @memberof google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + * @instance + */ + SnapshotSettingsAccessLocationAccessLocationPreference.prototype.region = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SnapshotSettingsAccessLocationAccessLocationPreference.prototype, "_region", { + get: $util.oneOfGetter($oneOfFields = ["region"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SnapshotSettingsAccessLocationAccessLocationPreference instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + * @static + * @param {google.cloud.compute.v1.ISnapshotSettingsAccessLocationAccessLocationPreference=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference} SnapshotSettingsAccessLocationAccessLocationPreference instance + */ + SnapshotSettingsAccessLocationAccessLocationPreference.create = function create(properties) { + return new SnapshotSettingsAccessLocationAccessLocationPreference(properties); + }; + + /** + * Encodes the specified SnapshotSettingsAccessLocationAccessLocationPreference message. Does not implicitly {@link google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + * @static + * @param {google.cloud.compute.v1.ISnapshotSettingsAccessLocationAccessLocationPreference} message SnapshotSettingsAccessLocationAccessLocationPreference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SnapshotSettingsAccessLocationAccessLocationPreference.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); + return writer; + }; + + /** + * Encodes the specified SnapshotSettingsAccessLocationAccessLocationPreference message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + * @static + * @param {google.cloud.compute.v1.ISnapshotSettingsAccessLocationAccessLocationPreference} message SnapshotSettingsAccessLocationAccessLocationPreference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SnapshotSettingsAccessLocationAccessLocationPreference.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SnapshotSettingsAccessLocationAccessLocationPreference message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference} SnapshotSettingsAccessLocationAccessLocationPreference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SnapshotSettingsAccessLocationAccessLocationPreference.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.v1.SnapshotSettingsAccessLocationAccessLocationPreference(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 138946292: { + message.region = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SnapshotSettingsAccessLocationAccessLocationPreference message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference} SnapshotSettingsAccessLocationAccessLocationPreference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SnapshotSettingsAccessLocationAccessLocationPreference.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SnapshotSettingsAccessLocationAccessLocationPreference message. + * @function verify + * @memberof google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SnapshotSettingsAccessLocationAccessLocationPreference.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.region != null && message.hasOwnProperty("region")) { + properties._region = 1; + if (!$util.isString(message.region)) + return "region: string expected"; + } + return null; + }; + + /** + * Creates a SnapshotSettingsAccessLocationAccessLocationPreference message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference} SnapshotSettingsAccessLocationAccessLocationPreference + */ + SnapshotSettingsAccessLocationAccessLocationPreference.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference) + return object; + var message = new $root.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference(); + if (object.region != null) + message.region = String(object.region); + return message; + }; + + /** + * Creates a plain object from a SnapshotSettingsAccessLocationAccessLocationPreference message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + * @static + * @param {google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference} message SnapshotSettingsAccessLocationAccessLocationPreference + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SnapshotSettingsAccessLocationAccessLocationPreference.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.region != null && message.hasOwnProperty("region")) { + object.region = message.region; + if (options.oneofs) + object._region = "region"; + } + return object; + }; + + /** + * Converts this SnapshotSettingsAccessLocationAccessLocationPreference to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + * @instance + * @returns {Object.} JSON object + */ + SnapshotSettingsAccessLocationAccessLocationPreference.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SnapshotSettingsAccessLocationAccessLocationPreference + * @function getTypeUrl + * @memberof google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SnapshotSettingsAccessLocationAccessLocationPreference.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference"; + }; + + return SnapshotSettingsAccessLocationAccessLocationPreference; + })(); + v1.SnapshotSettingsStorageLocationSettings = (function() { /** @@ -548992,6 +570258,224 @@ return SnapshotSettingsStorageLocationSettingsStorageLocationPreference; })(); + v1.SnapshotUpdateKmsKeyRequest = (function() { + + /** + * Properties of a SnapshotUpdateKmsKeyRequest. + * @memberof google.cloud.compute.v1 + * @interface ISnapshotUpdateKmsKeyRequest + * @property {string|null} [kmsKeyName] SnapshotUpdateKmsKeyRequest kmsKeyName + */ + + /** + * Constructs a new SnapshotUpdateKmsKeyRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SnapshotUpdateKmsKeyRequest. + * @implements ISnapshotUpdateKmsKeyRequest + * @constructor + * @param {google.cloud.compute.v1.ISnapshotUpdateKmsKeyRequest=} [properties] Properties to set + */ + function SnapshotUpdateKmsKeyRequest(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]]; + } + + /** + * SnapshotUpdateKmsKeyRequest kmsKeyName. + * @member {string|null|undefined} kmsKeyName + * @memberof google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest + * @instance + */ + SnapshotUpdateKmsKeyRequest.prototype.kmsKeyName = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SnapshotUpdateKmsKeyRequest.prototype, "_kmsKeyName", { + get: $util.oneOfGetter($oneOfFields = ["kmsKeyName"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SnapshotUpdateKmsKeyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1.ISnapshotUpdateKmsKeyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest} SnapshotUpdateKmsKeyRequest instance + */ + SnapshotUpdateKmsKeyRequest.create = function create(properties) { + return new SnapshotUpdateKmsKeyRequest(properties); + }; + + /** + * Encodes the specified SnapshotUpdateKmsKeyRequest message. Does not implicitly {@link google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1.ISnapshotUpdateKmsKeyRequest} message SnapshotUpdateKmsKeyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SnapshotUpdateKmsKeyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName")) + writer.uint32(/* id 484373913, wireType 2 =*/3874991306).string(message.kmsKeyName); + return writer; + }; + + /** + * Encodes the specified SnapshotUpdateKmsKeyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1.ISnapshotUpdateKmsKeyRequest} message SnapshotUpdateKmsKeyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SnapshotUpdateKmsKeyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SnapshotUpdateKmsKeyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest} SnapshotUpdateKmsKeyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SnapshotUpdateKmsKeyRequest.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.v1.SnapshotUpdateKmsKeyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 484373913: { + message.kmsKeyName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SnapshotUpdateKmsKeyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest} SnapshotUpdateKmsKeyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SnapshotUpdateKmsKeyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SnapshotUpdateKmsKeyRequest message. + * @function verify + * @memberof google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SnapshotUpdateKmsKeyRequest.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 a SnapshotUpdateKmsKeyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest} SnapshotUpdateKmsKeyRequest + */ + SnapshotUpdateKmsKeyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest) + return object; + var message = new $root.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest(); + if (object.kmsKeyName != null) + message.kmsKeyName = String(object.kmsKeyName); + return message; + }; + + /** + * Creates a plain object from a SnapshotUpdateKmsKeyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest} message SnapshotUpdateKmsKeyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SnapshotUpdateKmsKeyRequest.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 SnapshotUpdateKmsKeyRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest + * @instance + * @returns {Object.} JSON object + */ + SnapshotUpdateKmsKeyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SnapshotUpdateKmsKeyRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SnapshotUpdateKmsKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest"; + }; + + return SnapshotUpdateKmsKeyRequest; + })(); + v1.SourceDiskEncryptionKey = (function() { /** @@ -594651,6 +616135,286 @@ return TestIamPermissionsInstanceTemplateRequest; })(); + v1.TestIamPermissionsInstantSnapshotGroupRequest = (function() { + + /** + * Properties of a TestIamPermissionsInstantSnapshotGroupRequest. + * @memberof google.cloud.compute.v1 + * @interface ITestIamPermissionsInstantSnapshotGroupRequest + * @property {string|null} [project] TestIamPermissionsInstantSnapshotGroupRequest project + * @property {string|null} [resource] TestIamPermissionsInstantSnapshotGroupRequest resource + * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsInstantSnapshotGroupRequest testPermissionsRequestResource + * @property {string|null} [zone] TestIamPermissionsInstantSnapshotGroupRequest zone + */ + + /** + * Constructs a new TestIamPermissionsInstantSnapshotGroupRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a TestIamPermissionsInstantSnapshotGroupRequest. + * @implements ITestIamPermissionsInstantSnapshotGroupRequest + * @constructor + * @param {google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotGroupRequest=} [properties] Properties to set + */ + function TestIamPermissionsInstantSnapshotGroupRequest(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]]; + } + + /** + * TestIamPermissionsInstantSnapshotGroupRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest + * @instance + */ + TestIamPermissionsInstantSnapshotGroupRequest.prototype.project = ""; + + /** + * TestIamPermissionsInstantSnapshotGroupRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest + * @instance + */ + TestIamPermissionsInstantSnapshotGroupRequest.prototype.resource = ""; + + /** + * TestIamPermissionsInstantSnapshotGroupRequest testPermissionsRequestResource. + * @member {google.cloud.compute.v1.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource + * @memberof google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest + * @instance + */ + TestIamPermissionsInstantSnapshotGroupRequest.prototype.testPermissionsRequestResource = null; + + /** + * TestIamPermissionsInstantSnapshotGroupRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest + * @instance + */ + TestIamPermissionsInstantSnapshotGroupRequest.prototype.zone = ""; + + /** + * Creates a new TestIamPermissionsInstantSnapshotGroupRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest} TestIamPermissionsInstantSnapshotGroupRequest instance + */ + TestIamPermissionsInstantSnapshotGroupRequest.create = function create(properties) { + return new TestIamPermissionsInstantSnapshotGroupRequest(properties); + }; + + /** + * Encodes the specified TestIamPermissionsInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotGroupRequest} message TestIamPermissionsInstantSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsInstantSnapshotGroupRequest.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.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.v1.TestPermissionsRequest.encode(message.testPermissionsRequestResource, writer.uint32(/* id 439214758, wireType 2 =*/3513718066).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TestIamPermissionsInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotGroupRequest} message TestIamPermissionsInstantSnapshotGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsInstantSnapshotGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TestIamPermissionsInstantSnapshotGroupRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest} TestIamPermissionsInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsInstantSnapshotGroupRequest.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.v1.TestIamPermissionsInstantSnapshotGroupRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 227560217: { + message.project = reader.string(); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + case 439214758: { + message.testPermissionsRequestResource = $root.google.cloud.compute.v1.TestPermissionsRequest.decode(reader, reader.uint32()); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TestIamPermissionsInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest} TestIamPermissionsInstantSnapshotGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsInstantSnapshotGroupRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TestIamPermissionsInstantSnapshotGroupRequest message. + * @function verify + * @memberof google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TestIamPermissionsInstantSnapshotGroupRequest.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.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.v1.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 TestIamPermissionsInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest} TestIamPermissionsInstantSnapshotGroupRequest + */ + TestIamPermissionsInstantSnapshotGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest) + return object; + var message = new $root.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest(); + 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.v1.TestIamPermissionsInstantSnapshotGroupRequest.testPermissionsRequestResource: object expected"); + message.testPermissionsRequestResource = $root.google.cloud.compute.v1.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); + } + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from a TestIamPermissionsInstantSnapshotGroupRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest + * @static + * @param {google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest} message TestIamPermissionsInstantSnapshotGroupRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TestIamPermissionsInstantSnapshotGroupRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.resource = ""; + object.project = ""; + object.testPermissionsRequestResource = null; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + 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.v1.TestPermissionsRequest.toObject(message.testPermissionsRequestResource, options); + return object; + }; + + /** + * Converts this TestIamPermissionsInstantSnapshotGroupRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest + * @instance + * @returns {Object.} JSON object + */ + TestIamPermissionsInstantSnapshotGroupRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TestIamPermissionsInstantSnapshotGroupRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TestIamPermissionsInstantSnapshotGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest"; + }; + + return TestIamPermissionsInstantSnapshotGroupRequest; + })(); + v1.TestIamPermissionsInstantSnapshotRequest = (function() { /** @@ -598153,27 +619917,27 @@ return TestIamPermissionsRegionAutoscalerRequest; })(); - v1.TestIamPermissionsRegionBackendServiceRequest = (function() { + v1.TestIamPermissionsRegionBackendBucketRequest = (function() { /** - * Properties of a TestIamPermissionsRegionBackendServiceRequest. + * Properties of a TestIamPermissionsRegionBackendBucketRequest. * @memberof google.cloud.compute.v1 - * @interface ITestIamPermissionsRegionBackendServiceRequest - * @property {string|null} [project] TestIamPermissionsRegionBackendServiceRequest project - * @property {string|null} [region] TestIamPermissionsRegionBackendServiceRequest region - * @property {string|null} [resource] TestIamPermissionsRegionBackendServiceRequest resource - * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionBackendServiceRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionBackendBucketRequest + * @property {string|null} [project] TestIamPermissionsRegionBackendBucketRequest project + * @property {string|null} [region] TestIamPermissionsRegionBackendBucketRequest region + * @property {string|null} [resource] TestIamPermissionsRegionBackendBucketRequest resource + * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionBackendBucketRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionBackendServiceRequest. + * Constructs a new TestIamPermissionsRegionBackendBucketRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a TestIamPermissionsRegionBackendServiceRequest. - * @implements ITestIamPermissionsRegionBackendServiceRequest + * @classdesc Represents a TestIamPermissionsRegionBackendBucketRequest. + * @implements ITestIamPermissionsRegionBackendBucketRequest * @constructor - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionBackendServiceRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionBackendBucketRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionBackendServiceRequest(properties) { + function TestIamPermissionsRegionBackendBucketRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -598181,59 +619945,59 @@ } /** - * TestIamPermissionsRegionBackendServiceRequest project. + * TestIamPermissionsRegionBackendBucketRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest * @instance */ - TestIamPermissionsRegionBackendServiceRequest.prototype.project = ""; + TestIamPermissionsRegionBackendBucketRequest.prototype.project = ""; /** - * TestIamPermissionsRegionBackendServiceRequest region. + * TestIamPermissionsRegionBackendBucketRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest * @instance */ - TestIamPermissionsRegionBackendServiceRequest.prototype.region = ""; + TestIamPermissionsRegionBackendBucketRequest.prototype.region = ""; /** - * TestIamPermissionsRegionBackendServiceRequest resource. + * TestIamPermissionsRegionBackendBucketRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest * @instance */ - TestIamPermissionsRegionBackendServiceRequest.prototype.resource = ""; + TestIamPermissionsRegionBackendBucketRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionBackendServiceRequest testPermissionsRequestResource. + * TestIamPermissionsRegionBackendBucketRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest * @instance */ - TestIamPermissionsRegionBackendServiceRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionBackendBucketRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionBackendServiceRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionBackendBucketRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionBackendServiceRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest instance + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionBackendBucketRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest} TestIamPermissionsRegionBackendBucketRequest instance */ - TestIamPermissionsRegionBackendServiceRequest.create = function create(properties) { - return new TestIamPermissionsRegionBackendServiceRequest(properties); + TestIamPermissionsRegionBackendBucketRequest.create = function create(properties) { + return new TestIamPermissionsRegionBackendBucketRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionBackendServiceRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionBackendServiceRequest} message TestIamPermissionsRegionBackendServiceRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionBackendBucketRequest} message TestIamPermissionsRegionBackendBucketRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionBackendServiceRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionBackendBucketRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -598248,33 +620012,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionBackendServiceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionBackendBucketRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionBackendServiceRequest} message TestIamPermissionsRegionBackendServiceRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionBackendBucketRequest} message TestIamPermissionsRegionBackendBucketRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionBackendServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionBackendBucketRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionBackendServiceRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionBackendBucketRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.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.v1.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest} TestIamPermissionsRegionBackendBucketRequest * @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) { + 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.v1.TestIamPermissionsRegionBackendServiceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -598305,30 +620069,30 @@ }; /** - * Decodes a TestIamPermissionsRegionBackendServiceRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionBackendBucketRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest} TestIamPermissionsRegionBackendBucketRequest * @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) { + TestIamPermissionsRegionBackendBucketRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionBackendServiceRequest message. + * Verifies a TestIamPermissionsRegionBackendBucketRequest message. * @function verify - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest * @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) { + TestIamPermissionsRegionBackendBucketRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -598349,17 +620113,17 @@ }; /** - * Creates a TestIamPermissionsRegionBackendServiceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionBackendBucketRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest} TestIamPermissionsRegionBackendBucketRequest */ - TestIamPermissionsRegionBackendServiceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest) + TestIamPermissionsRegionBackendBucketRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest) return object; - var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest(); + var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -598368,22 +620132,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1.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 TestIamPermissionsRegionBackendBucketRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest * @static - * @param {google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest} message TestIamPermissionsRegionBackendServiceRequest + * @param {google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest} message TestIamPermissionsRegionBackendBucketRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionBackendServiceRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionBackendBucketRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -598405,55 +620169,55 @@ }; /** - * Converts this TestIamPermissionsRegionBackendServiceRequest to JSON. + * Converts this TestIamPermissionsRegionBackendBucketRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionBackendServiceRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionBackendBucketRequest.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 TestIamPermissionsRegionBackendBucketRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionBackendServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionBackendBucketRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest"; }; - return TestIamPermissionsRegionBackendServiceRequest; + return TestIamPermissionsRegionBackendBucketRequest; })(); - v1.TestIamPermissionsRegionCompositeHealthCheckRequest = (function() { + v1.TestIamPermissionsRegionBackendServiceRequest = (function() { /** - * Properties of a TestIamPermissionsRegionCompositeHealthCheckRequest. + * Properties of a TestIamPermissionsRegionBackendServiceRequest. * @memberof google.cloud.compute.v1 - * @interface ITestIamPermissionsRegionCompositeHealthCheckRequest - * @property {string|null} [project] TestIamPermissionsRegionCompositeHealthCheckRequest project - * @property {string|null} [region] TestIamPermissionsRegionCompositeHealthCheckRequest region - * @property {string|null} [resource] TestIamPermissionsRegionCompositeHealthCheckRequest resource - * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionCompositeHealthCheckRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionBackendServiceRequest + * @property {string|null} [project] TestIamPermissionsRegionBackendServiceRequest project + * @property {string|null} [region] TestIamPermissionsRegionBackendServiceRequest region + * @property {string|null} [resource] TestIamPermissionsRegionBackendServiceRequest resource + * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionBackendServiceRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionCompositeHealthCheckRequest. + * Constructs a new TestIamPermissionsRegionBackendServiceRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a TestIamPermissionsRegionCompositeHealthCheckRequest. - * @implements ITestIamPermissionsRegionCompositeHealthCheckRequest + * @classdesc Represents a TestIamPermissionsRegionBackendServiceRequest. + * @implements ITestIamPermissionsRegionBackendServiceRequest * @constructor - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionCompositeHealthCheckRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionBackendServiceRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionCompositeHealthCheckRequest(properties) { + function TestIamPermissionsRegionBackendServiceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -598461,59 +620225,59 @@ } /** - * TestIamPermissionsRegionCompositeHealthCheckRequest project. + * TestIamPermissionsRegionBackendServiceRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest * @instance */ - TestIamPermissionsRegionCompositeHealthCheckRequest.prototype.project = ""; + TestIamPermissionsRegionBackendServiceRequest.prototype.project = ""; /** - * TestIamPermissionsRegionCompositeHealthCheckRequest region. + * TestIamPermissionsRegionBackendServiceRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest * @instance */ - TestIamPermissionsRegionCompositeHealthCheckRequest.prototype.region = ""; + TestIamPermissionsRegionBackendServiceRequest.prototype.region = ""; /** - * TestIamPermissionsRegionCompositeHealthCheckRequest resource. + * TestIamPermissionsRegionBackendServiceRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest * @instance */ - TestIamPermissionsRegionCompositeHealthCheckRequest.prototype.resource = ""; + TestIamPermissionsRegionBackendServiceRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionCompositeHealthCheckRequest testPermissionsRequestResource. + * TestIamPermissionsRegionBackendServiceRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest * @instance */ - TestIamPermissionsRegionCompositeHealthCheckRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionBackendServiceRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionCompositeHealthCheckRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionBackendServiceRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionCompositeHealthCheckRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest} TestIamPermissionsRegionCompositeHealthCheckRequest instance + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionBackendServiceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest instance */ - TestIamPermissionsRegionCompositeHealthCheckRequest.create = function create(properties) { - return new TestIamPermissionsRegionCompositeHealthCheckRequest(properties); + TestIamPermissionsRegionBackendServiceRequest.create = function create(properties) { + return new TestIamPermissionsRegionBackendServiceRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionCompositeHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionBackendServiceRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionCompositeHealthCheckRequest} message TestIamPermissionsRegionCompositeHealthCheckRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionBackendServiceRequest} message TestIamPermissionsRegionBackendServiceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionCompositeHealthCheckRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionBackendServiceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -598528,33 +620292,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionCompositeHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionBackendServiceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionCompositeHealthCheckRequest} message TestIamPermissionsRegionCompositeHealthCheckRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionBackendServiceRequest} message TestIamPermissionsRegionBackendServiceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionCompositeHealthCheckRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionBackendServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionCompositeHealthCheckRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionBackendServiceRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest + * @memberof google.cloud.compute.v1.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.v1.TestIamPermissionsRegionCompositeHealthCheckRequest} TestIamPermissionsRegionCompositeHealthCheckRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionCompositeHealthCheckRequest.decode = function decode(reader, length, error) { + 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.v1.TestIamPermissionsRegionCompositeHealthCheckRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -598585,30 +620349,30 @@ }; /** - * Decodes a TestIamPermissionsRegionCompositeHealthCheckRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionBackendServiceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest} TestIamPermissionsRegionCompositeHealthCheckRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionCompositeHealthCheckRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionBackendServiceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionCompositeHealthCheckRequest message. + * Verifies a TestIamPermissionsRegionBackendServiceRequest message. * @function verify - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionCompositeHealthCheckRequest.verify = function verify(message) { + TestIamPermissionsRegionBackendServiceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -598629,17 +620393,17 @@ }; /** - * Creates a TestIamPermissionsRegionCompositeHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionBackendServiceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest} TestIamPermissionsRegionCompositeHealthCheckRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest */ - TestIamPermissionsRegionCompositeHealthCheckRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest) + TestIamPermissionsRegionBackendServiceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest) return object; - var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest(); + var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -598648,22 +620412,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionCompositeHealthCheckRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionBackendServiceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest * @static - * @param {google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest} message TestIamPermissionsRegionCompositeHealthCheckRequest + * @param {google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest} message TestIamPermissionsRegionBackendServiceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionCompositeHealthCheckRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionBackendServiceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -598685,55 +620449,55 @@ }; /** - * Converts this TestIamPermissionsRegionCompositeHealthCheckRequest to JSON. + * Converts this TestIamPermissionsRegionBackendServiceRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionCompositeHealthCheckRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionBackendServiceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionCompositeHealthCheckRequest + * Gets the default type url for TestIamPermissionsRegionBackendServiceRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionCompositeHealthCheckRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionBackendServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest"; }; - return TestIamPermissionsRegionCompositeHealthCheckRequest; + return TestIamPermissionsRegionBackendServiceRequest; })(); - v1.TestIamPermissionsRegionDiskRequest = (function() { + v1.TestIamPermissionsRegionCompositeHealthCheckRequest = (function() { /** - * Properties of a TestIamPermissionsRegionDiskRequest. + * Properties of a TestIamPermissionsRegionCompositeHealthCheckRequest. * @memberof google.cloud.compute.v1 - * @interface ITestIamPermissionsRegionDiskRequest - * @property {string|null} [project] TestIamPermissionsRegionDiskRequest project - * @property {string|null} [region] TestIamPermissionsRegionDiskRequest region - * @property {string|null} [resource] TestIamPermissionsRegionDiskRequest resource - * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionDiskRequest 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.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionCompositeHealthCheckRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionDiskRequest. + * Constructs a new TestIamPermissionsRegionCompositeHealthCheckRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a TestIamPermissionsRegionDiskRequest. - * @implements ITestIamPermissionsRegionDiskRequest + * @classdesc Represents a TestIamPermissionsRegionCompositeHealthCheckRequest. + * @implements ITestIamPermissionsRegionCompositeHealthCheckRequest * @constructor - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionDiskRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionCompositeHealthCheckRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionDiskRequest(properties) { + function TestIamPermissionsRegionCompositeHealthCheckRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -598741,59 +620505,59 @@ } /** - * TestIamPermissionsRegionDiskRequest project. + * TestIamPermissionsRegionCompositeHealthCheckRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest * @instance */ - TestIamPermissionsRegionDiskRequest.prototype.project = ""; + TestIamPermissionsRegionCompositeHealthCheckRequest.prototype.project = ""; /** - * TestIamPermissionsRegionDiskRequest region. + * TestIamPermissionsRegionCompositeHealthCheckRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest * @instance */ - TestIamPermissionsRegionDiskRequest.prototype.region = ""; + TestIamPermissionsRegionCompositeHealthCheckRequest.prototype.region = ""; /** - * TestIamPermissionsRegionDiskRequest resource. + * TestIamPermissionsRegionCompositeHealthCheckRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest * @instance */ - TestIamPermissionsRegionDiskRequest.prototype.resource = ""; + TestIamPermissionsRegionCompositeHealthCheckRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionDiskRequest testPermissionsRequestResource. + * TestIamPermissionsRegionCompositeHealthCheckRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest * @instance */ - TestIamPermissionsRegionDiskRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionCompositeHealthCheckRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionDiskRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionCompositeHealthCheckRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionDiskRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest instance + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionCompositeHealthCheckRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest} TestIamPermissionsRegionCompositeHealthCheckRequest instance */ - TestIamPermissionsRegionDiskRequest.create = function create(properties) { - return new TestIamPermissionsRegionDiskRequest(properties); + TestIamPermissionsRegionCompositeHealthCheckRequest.create = function create(properties) { + return new TestIamPermissionsRegionCompositeHealthCheckRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionDiskRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionCompositeHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionDiskRequest} message TestIamPermissionsRegionDiskRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionCompositeHealthCheckRequest} message TestIamPermissionsRegionCompositeHealthCheckRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionDiskRequest.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")) @@ -598808,33 +620572,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionDiskRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionCompositeHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionDiskRequest} message TestIamPermissionsRegionDiskRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionCompositeHealthCheckRequest} message TestIamPermissionsRegionCompositeHealthCheckRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionDiskRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionCompositeHealthCheckRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionDiskRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionCompositeHealthCheckRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1.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.v1.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest} TestIamPermissionsRegionCompositeHealthCheckRequest * @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) { + 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.v1.TestIamPermissionsRegionDiskRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -598865,30 +620629,30 @@ }; /** - * Decodes a TestIamPermissionsRegionDiskRequest 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.v1.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest} TestIamPermissionsRegionCompositeHealthCheckRequest * @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) { + TestIamPermissionsRegionCompositeHealthCheckRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionDiskRequest message. + * Verifies a TestIamPermissionsRegionCompositeHealthCheckRequest message. * @function verify - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest * @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) { + TestIamPermissionsRegionCompositeHealthCheckRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -598909,17 +620673,17 @@ }; /** - * Creates a TestIamPermissionsRegionDiskRequest 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.v1.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest} TestIamPermissionsRegionCompositeHealthCheckRequest */ - TestIamPermissionsRegionDiskRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest) + TestIamPermissionsRegionCompositeHealthCheckRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest) return object; - var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest(); + var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -598928,22 +620692,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1.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 TestIamPermissionsRegionCompositeHealthCheckRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest * @static - * @param {google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest} message TestIamPermissionsRegionDiskRequest + * @param {google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest} message TestIamPermissionsRegionCompositeHealthCheckRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionDiskRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionCompositeHealthCheckRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -598965,55 +620729,55 @@ }; /** - * Converts this TestIamPermissionsRegionDiskRequest to JSON. + * Converts this TestIamPermissionsRegionCompositeHealthCheckRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionDiskRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionCompositeHealthCheckRequest.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 TestIamPermissionsRegionCompositeHealthCheckRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionDiskRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionCompositeHealthCheckRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest"; }; - return TestIamPermissionsRegionDiskRequest; + return TestIamPermissionsRegionCompositeHealthCheckRequest; })(); - v1.TestIamPermissionsRegionHealthAggregationPolicyRequest = (function() { + v1.TestIamPermissionsRegionDiskRequest = (function() { /** - * Properties of a TestIamPermissionsRegionHealthAggregationPolicyRequest. + * Properties of a TestIamPermissionsRegionDiskRequest. * @memberof google.cloud.compute.v1 - * @interface ITestIamPermissionsRegionHealthAggregationPolicyRequest - * @property {string|null} [project] TestIamPermissionsRegionHealthAggregationPolicyRequest project - * @property {string|null} [region] TestIamPermissionsRegionHealthAggregationPolicyRequest region - * @property {string|null} [resource] TestIamPermissionsRegionHealthAggregationPolicyRequest resource - * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionHealthAggregationPolicyRequest 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.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionDiskRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionHealthAggregationPolicyRequest. + * Constructs a new TestIamPermissionsRegionDiskRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a TestIamPermissionsRegionHealthAggregationPolicyRequest. - * @implements ITestIamPermissionsRegionHealthAggregationPolicyRequest + * @classdesc Represents a TestIamPermissionsRegionDiskRequest. + * @implements ITestIamPermissionsRegionDiskRequest * @constructor - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionDiskRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionHealthAggregationPolicyRequest(properties) { + function TestIamPermissionsRegionDiskRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -599021,59 +620785,59 @@ } /** - * TestIamPermissionsRegionHealthAggregationPolicyRequest project. + * TestIamPermissionsRegionDiskRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest * @instance */ - TestIamPermissionsRegionHealthAggregationPolicyRequest.prototype.project = ""; + TestIamPermissionsRegionDiskRequest.prototype.project = ""; /** - * TestIamPermissionsRegionHealthAggregationPolicyRequest region. + * TestIamPermissionsRegionDiskRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest * @instance */ - TestIamPermissionsRegionHealthAggregationPolicyRequest.prototype.region = ""; + TestIamPermissionsRegionDiskRequest.prototype.region = ""; /** - * TestIamPermissionsRegionHealthAggregationPolicyRequest resource. + * TestIamPermissionsRegionDiskRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest * @instance */ - TestIamPermissionsRegionHealthAggregationPolicyRequest.prototype.resource = ""; + TestIamPermissionsRegionDiskRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionHealthAggregationPolicyRequest testPermissionsRequestResource. + * TestIamPermissionsRegionDiskRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest * @instance */ - TestIamPermissionsRegionHealthAggregationPolicyRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionDiskRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionHealthAggregationPolicyRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionDiskRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest} TestIamPermissionsRegionHealthAggregationPolicyRequest instance + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionDiskRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest instance */ - TestIamPermissionsRegionHealthAggregationPolicyRequest.create = function create(properties) { - return new TestIamPermissionsRegionHealthAggregationPolicyRequest(properties); + TestIamPermissionsRegionDiskRequest.create = function create(properties) { + return new TestIamPermissionsRegionDiskRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionHealthAggregationPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionDiskRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest} message TestIamPermissionsRegionHealthAggregationPolicyRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionDiskRequest} message TestIamPermissionsRegionDiskRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionHealthAggregationPolicyRequest.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")) @@ -599088,33 +620852,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionHealthAggregationPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionDiskRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest} message TestIamPermissionsRegionHealthAggregationPolicyRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionDiskRequest} message TestIamPermissionsRegionDiskRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionHealthAggregationPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionDiskRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionHealthAggregationPolicyRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionDiskRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest + * @memberof google.cloud.compute.v1.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.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest} TestIamPermissionsRegionHealthAggregationPolicyRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionHealthAggregationPolicyRequest.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.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -599145,30 +620909,30 @@ }; /** - * Decodes a TestIamPermissionsRegionHealthAggregationPolicyRequest 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.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest} TestIamPermissionsRegionHealthAggregationPolicyRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionHealthAggregationPolicyRequest.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 TestIamPermissionsRegionHealthAggregationPolicyRequest message. + * Verifies a TestIamPermissionsRegionDiskRequest message. * @function verify - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionHealthAggregationPolicyRequest.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")) @@ -599189,17 +620953,17 @@ }; /** - * Creates a TestIamPermissionsRegionHealthAggregationPolicyRequest 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.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest} TestIamPermissionsRegionHealthAggregationPolicyRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest */ - TestIamPermissionsRegionHealthAggregationPolicyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest) + TestIamPermissionsRegionDiskRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest) return object; - var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest(); + var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -599208,22 +620972,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionHealthAggregationPolicyRequest 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.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest * @static - * @param {google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest} message TestIamPermissionsRegionHealthAggregationPolicyRequest + * @param {google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest} message TestIamPermissionsRegionDiskRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionHealthAggregationPolicyRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionDiskRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -599245,55 +621009,55 @@ }; /** - * Converts this TestIamPermissionsRegionHealthAggregationPolicyRequest to JSON. + * Converts this TestIamPermissionsRegionDiskRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionHealthAggregationPolicyRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionDiskRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionHealthAggregationPolicyRequest + * Gets the default type url for TestIamPermissionsRegionDiskRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionHealthAggregationPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionDiskRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest"; }; - return TestIamPermissionsRegionHealthAggregationPolicyRequest; + return TestIamPermissionsRegionDiskRequest; })(); - v1.TestIamPermissionsRegionHealthCheckRequest = (function() { + v1.TestIamPermissionsRegionHealthAggregationPolicyRequest = (function() { /** - * Properties of a TestIamPermissionsRegionHealthCheckRequest. + * Properties of a TestIamPermissionsRegionHealthAggregationPolicyRequest. * @memberof google.cloud.compute.v1 - * @interface ITestIamPermissionsRegionHealthCheckRequest - * @property {string|null} [project] TestIamPermissionsRegionHealthCheckRequest project - * @property {string|null} [region] TestIamPermissionsRegionHealthCheckRequest region - * @property {string|null} [resource] TestIamPermissionsRegionHealthCheckRequest resource - * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionHealthCheckRequest 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.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionHealthAggregationPolicyRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionHealthCheckRequest. + * Constructs a new TestIamPermissionsRegionHealthAggregationPolicyRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a TestIamPermissionsRegionHealthCheckRequest. - * @implements ITestIamPermissionsRegionHealthCheckRequest + * @classdesc Represents a TestIamPermissionsRegionHealthAggregationPolicyRequest. + * @implements ITestIamPermissionsRegionHealthAggregationPolicyRequest * @constructor - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionHealthCheckRequest(properties) { + function TestIamPermissionsRegionHealthAggregationPolicyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -599301,59 +621065,59 @@ } /** - * TestIamPermissionsRegionHealthCheckRequest project. + * TestIamPermissionsRegionHealthAggregationPolicyRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest * @instance */ - TestIamPermissionsRegionHealthCheckRequest.prototype.project = ""; + TestIamPermissionsRegionHealthAggregationPolicyRequest.prototype.project = ""; /** - * TestIamPermissionsRegionHealthCheckRequest region. + * TestIamPermissionsRegionHealthAggregationPolicyRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest * @instance */ - TestIamPermissionsRegionHealthCheckRequest.prototype.region = ""; + TestIamPermissionsRegionHealthAggregationPolicyRequest.prototype.region = ""; /** - * TestIamPermissionsRegionHealthCheckRequest resource. + * TestIamPermissionsRegionHealthAggregationPolicyRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest * @instance */ - TestIamPermissionsRegionHealthCheckRequest.prototype.resource = ""; + TestIamPermissionsRegionHealthAggregationPolicyRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionHealthCheckRequest testPermissionsRequestResource. + * TestIamPermissionsRegionHealthAggregationPolicyRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest * @instance */ - TestIamPermissionsRegionHealthCheckRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionHealthAggregationPolicyRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionHealthCheckRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionHealthAggregationPolicyRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest instance + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest} TestIamPermissionsRegionHealthAggregationPolicyRequest instance */ - TestIamPermissionsRegionHealthCheckRequest.create = function create(properties) { - return new TestIamPermissionsRegionHealthCheckRequest(properties); + TestIamPermissionsRegionHealthAggregationPolicyRequest.create = function create(properties) { + return new TestIamPermissionsRegionHealthAggregationPolicyRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionHealthAggregationPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckRequest} message TestIamPermissionsRegionHealthCheckRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest} message TestIamPermissionsRegionHealthAggregationPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionHealthCheckRequest.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")) @@ -599368,33 +621132,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionHealthAggregationPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckRequest} message TestIamPermissionsRegionHealthCheckRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest} message TestIamPermissionsRegionHealthAggregationPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionHealthCheckRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionHealthAggregationPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionHealthCheckRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionHealthAggregationPolicyRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.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.v1.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest} TestIamPermissionsRegionHealthAggregationPolicyRequest * @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) { + 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.v1.TestIamPermissionsRegionHealthCheckRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -599425,30 +621189,30 @@ }; /** - * Decodes a TestIamPermissionsRegionHealthCheckRequest 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.v1.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest} TestIamPermissionsRegionHealthAggregationPolicyRequest * @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) { + TestIamPermissionsRegionHealthAggregationPolicyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionHealthCheckRequest message. + * Verifies a TestIamPermissionsRegionHealthAggregationPolicyRequest message. * @function verify - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest * @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) { + TestIamPermissionsRegionHealthAggregationPolicyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -599469,17 +621233,17 @@ }; /** - * Creates a TestIamPermissionsRegionHealthCheckRequest 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.v1.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest} TestIamPermissionsRegionHealthAggregationPolicyRequest */ - TestIamPermissionsRegionHealthCheckRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest) + TestIamPermissionsRegionHealthAggregationPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest) return object; - var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest(); + var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -599488,22 +621252,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1.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 TestIamPermissionsRegionHealthAggregationPolicyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static - * @param {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest} message TestIamPermissionsRegionHealthCheckRequest + * @param {google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest} message TestIamPermissionsRegionHealthAggregationPolicyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionHealthCheckRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionHealthAggregationPolicyRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -599525,55 +621289,55 @@ }; /** - * Converts this TestIamPermissionsRegionHealthCheckRequest to JSON. + * Converts this TestIamPermissionsRegionHealthAggregationPolicyRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionHealthCheckRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionHealthAggregationPolicyRequest.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 TestIamPermissionsRegionHealthAggregationPolicyRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionHealthCheckRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionHealthAggregationPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest"; }; - return TestIamPermissionsRegionHealthCheckRequest; + return TestIamPermissionsRegionHealthAggregationPolicyRequest; })(); - v1.TestIamPermissionsRegionHealthCheckServiceRequest = (function() { + v1.TestIamPermissionsRegionHealthCheckRequest = (function() { /** - * Properties of a TestIamPermissionsRegionHealthCheckServiceRequest. + * Properties of a TestIamPermissionsRegionHealthCheckRequest. * @memberof google.cloud.compute.v1 - * @interface ITestIamPermissionsRegionHealthCheckServiceRequest - * @property {string|null} [project] TestIamPermissionsRegionHealthCheckServiceRequest project - * @property {string|null} [region] TestIamPermissionsRegionHealthCheckServiceRequest region - * @property {string|null} [resource] TestIamPermissionsRegionHealthCheckServiceRequest resource - * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionHealthCheckServiceRequest 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.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionHealthCheckRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionHealthCheckServiceRequest. + * Constructs a new TestIamPermissionsRegionHealthCheckRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a TestIamPermissionsRegionHealthCheckServiceRequest. - * @implements ITestIamPermissionsRegionHealthCheckServiceRequest + * @classdesc Represents a TestIamPermissionsRegionHealthCheckRequest. + * @implements ITestIamPermissionsRegionHealthCheckRequest * @constructor - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionHealthCheckServiceRequest(properties) { + function TestIamPermissionsRegionHealthCheckRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -599581,59 +621345,59 @@ } /** - * TestIamPermissionsRegionHealthCheckServiceRequest project. + * TestIamPermissionsRegionHealthCheckRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest * @instance */ - TestIamPermissionsRegionHealthCheckServiceRequest.prototype.project = ""; + TestIamPermissionsRegionHealthCheckRequest.prototype.project = ""; /** - * TestIamPermissionsRegionHealthCheckServiceRequest region. + * TestIamPermissionsRegionHealthCheckRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest * @instance */ - TestIamPermissionsRegionHealthCheckServiceRequest.prototype.region = ""; + TestIamPermissionsRegionHealthCheckRequest.prototype.region = ""; /** - * TestIamPermissionsRegionHealthCheckServiceRequest resource. + * TestIamPermissionsRegionHealthCheckRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest * @instance */ - TestIamPermissionsRegionHealthCheckServiceRequest.prototype.resource = ""; + TestIamPermissionsRegionHealthCheckRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionHealthCheckServiceRequest testPermissionsRequestResource. + * TestIamPermissionsRegionHealthCheckRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest * @instance */ - TestIamPermissionsRegionHealthCheckServiceRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionHealthCheckRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionHealthCheckServiceRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionHealthCheckRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest} TestIamPermissionsRegionHealthCheckServiceRequest instance + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest instance */ - TestIamPermissionsRegionHealthCheckServiceRequest.create = function create(properties) { - return new TestIamPermissionsRegionHealthCheckServiceRequest(properties); + TestIamPermissionsRegionHealthCheckRequest.create = function create(properties) { + return new TestIamPermissionsRegionHealthCheckRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionHealthCheckServiceRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest} message TestIamPermissionsRegionHealthCheckServiceRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckRequest} message TestIamPermissionsRegionHealthCheckRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionHealthCheckServiceRequest.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")) @@ -599648,33 +621412,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionHealthCheckServiceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest} message TestIamPermissionsRegionHealthCheckServiceRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckRequest} message TestIamPermissionsRegionHealthCheckRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionHealthCheckServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionHealthCheckRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionHealthCheckServiceRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionHealthCheckRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1.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.v1.TestIamPermissionsRegionHealthCheckServiceRequest} TestIamPermissionsRegionHealthCheckServiceRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest * @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) { + 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.v1.TestIamPermissionsRegionHealthCheckServiceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -599705,30 +621469,30 @@ }; /** - * Decodes a TestIamPermissionsRegionHealthCheckServiceRequest 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.v1.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest} TestIamPermissionsRegionHealthCheckServiceRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest * @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) { + TestIamPermissionsRegionHealthCheckRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionHealthCheckServiceRequest message. + * Verifies a TestIamPermissionsRegionHealthCheckRequest message. * @function verify - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest * @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) { + TestIamPermissionsRegionHealthCheckRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -599749,17 +621513,17 @@ }; /** - * Creates a TestIamPermissionsRegionHealthCheckServiceRequest 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.v1.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest} TestIamPermissionsRegionHealthCheckServiceRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest */ - TestIamPermissionsRegionHealthCheckServiceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest) + TestIamPermissionsRegionHealthCheckRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest) return object; - var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest(); + var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -599768,22 +621532,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1.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 TestIamPermissionsRegionHealthCheckRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest * @static - * @param {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest} message TestIamPermissionsRegionHealthCheckServiceRequest + * @param {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest} message TestIamPermissionsRegionHealthCheckRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionHealthCheckServiceRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionHealthCheckRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -599805,55 +621569,55 @@ }; /** - * Converts this TestIamPermissionsRegionHealthCheckServiceRequest to JSON. + * Converts this TestIamPermissionsRegionHealthCheckRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionHealthCheckServiceRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionHealthCheckRequest.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 TestIamPermissionsRegionHealthCheckRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionHealthCheckServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionHealthCheckRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest"; }; - return TestIamPermissionsRegionHealthCheckServiceRequest; + return TestIamPermissionsRegionHealthCheckRequest; })(); - v1.TestIamPermissionsRegionHealthSourceRequest = (function() { + v1.TestIamPermissionsRegionHealthCheckServiceRequest = (function() { /** - * Properties of a TestIamPermissionsRegionHealthSourceRequest. + * Properties of a TestIamPermissionsRegionHealthCheckServiceRequest. * @memberof google.cloud.compute.v1 - * @interface ITestIamPermissionsRegionHealthSourceRequest - * @property {string|null} [project] TestIamPermissionsRegionHealthSourceRequest project - * @property {string|null} [region] TestIamPermissionsRegionHealthSourceRequest region - * @property {string|null} [resource] TestIamPermissionsRegionHealthSourceRequest resource - * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionHealthSourceRequest 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.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionHealthCheckServiceRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionHealthSourceRequest. + * Constructs a new TestIamPermissionsRegionHealthCheckServiceRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a TestIamPermissionsRegionHealthSourceRequest. - * @implements ITestIamPermissionsRegionHealthSourceRequest + * @classdesc Represents a TestIamPermissionsRegionHealthCheckServiceRequest. + * @implements ITestIamPermissionsRegionHealthCheckServiceRequest * @constructor - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthSourceRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionHealthSourceRequest(properties) { + function TestIamPermissionsRegionHealthCheckServiceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -599861,59 +621625,59 @@ } /** - * TestIamPermissionsRegionHealthSourceRequest project. + * TestIamPermissionsRegionHealthCheckServiceRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest * @instance */ - TestIamPermissionsRegionHealthSourceRequest.prototype.project = ""; + TestIamPermissionsRegionHealthCheckServiceRequest.prototype.project = ""; /** - * TestIamPermissionsRegionHealthSourceRequest region. + * TestIamPermissionsRegionHealthCheckServiceRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest * @instance */ - TestIamPermissionsRegionHealthSourceRequest.prototype.region = ""; + TestIamPermissionsRegionHealthCheckServiceRequest.prototype.region = ""; /** - * TestIamPermissionsRegionHealthSourceRequest resource. + * TestIamPermissionsRegionHealthCheckServiceRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest * @instance */ - TestIamPermissionsRegionHealthSourceRequest.prototype.resource = ""; + TestIamPermissionsRegionHealthCheckServiceRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionHealthSourceRequest testPermissionsRequestResource. + * TestIamPermissionsRegionHealthCheckServiceRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest * @instance */ - TestIamPermissionsRegionHealthSourceRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionHealthCheckServiceRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionHealthSourceRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionHealthCheckServiceRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthSourceRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest} TestIamPermissionsRegionHealthSourceRequest instance + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest} TestIamPermissionsRegionHealthCheckServiceRequest instance */ - TestIamPermissionsRegionHealthSourceRequest.create = function create(properties) { - return new TestIamPermissionsRegionHealthSourceRequest(properties); + TestIamPermissionsRegionHealthCheckServiceRequest.create = function create(properties) { + return new TestIamPermissionsRegionHealthCheckServiceRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionHealthSourceRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionHealthCheckServiceRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthSourceRequest} message TestIamPermissionsRegionHealthSourceRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest} message TestIamPermissionsRegionHealthCheckServiceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionHealthSourceRequest.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")) @@ -599928,33 +621692,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionHealthSourceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionHealthCheckServiceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthSourceRequest} message TestIamPermissionsRegionHealthSourceRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest} message TestIamPermissionsRegionHealthCheckServiceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionHealthSourceRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionHealthCheckServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionHealthSourceRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionHealthCheckServiceRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1.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.v1.TestIamPermissionsRegionHealthSourceRequest} TestIamPermissionsRegionHealthSourceRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest} TestIamPermissionsRegionHealthCheckServiceRequest * @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) { + 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.v1.TestIamPermissionsRegionHealthSourceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -599985,30 +621749,30 @@ }; /** - * Decodes a TestIamPermissionsRegionHealthSourceRequest 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.v1.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest} TestIamPermissionsRegionHealthSourceRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest} TestIamPermissionsRegionHealthCheckServiceRequest * @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) { + TestIamPermissionsRegionHealthCheckServiceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionHealthSourceRequest message. + * Verifies a TestIamPermissionsRegionHealthCheckServiceRequest message. * @function verify - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest * @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) { + TestIamPermissionsRegionHealthCheckServiceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -600029,17 +621793,17 @@ }; /** - * Creates a TestIamPermissionsRegionHealthSourceRequest 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.v1.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest} TestIamPermissionsRegionHealthSourceRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest} TestIamPermissionsRegionHealthCheckServiceRequest */ - TestIamPermissionsRegionHealthSourceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest) + TestIamPermissionsRegionHealthCheckServiceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest) return object; - var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest(); + var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -600048,22 +621812,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1.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 TestIamPermissionsRegionHealthCheckServiceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest * @static - * @param {google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest} message TestIamPermissionsRegionHealthSourceRequest + * @param {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest} message TestIamPermissionsRegionHealthCheckServiceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionHealthSourceRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionHealthCheckServiceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -600085,55 +621849,55 @@ }; /** - * Converts this TestIamPermissionsRegionHealthSourceRequest to JSON. + * Converts this TestIamPermissionsRegionHealthCheckServiceRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionHealthSourceRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionHealthCheckServiceRequest.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 TestIamPermissionsRegionHealthCheckServiceRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionHealthSourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionHealthCheckServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest"; }; - return TestIamPermissionsRegionHealthSourceRequest; + return TestIamPermissionsRegionHealthCheckServiceRequest; })(); - v1.TestIamPermissionsRegionInstanceGroupRequest = (function() { + v1.TestIamPermissionsRegionHealthSourceRequest = (function() { /** - * Properties of a TestIamPermissionsRegionInstanceGroupRequest. + * Properties of a TestIamPermissionsRegionHealthSourceRequest. * @memberof google.cloud.compute.v1 - * @interface ITestIamPermissionsRegionInstanceGroupRequest - * @property {string|null} [project] TestIamPermissionsRegionInstanceGroupRequest project - * @property {string|null} [region] TestIamPermissionsRegionInstanceGroupRequest region - * @property {string|null} [resource] TestIamPermissionsRegionInstanceGroupRequest resource - * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionInstanceGroupRequest 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.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionHealthSourceRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionInstanceGroupRequest. + * Constructs a new TestIamPermissionsRegionHealthSourceRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a TestIamPermissionsRegionInstanceGroupRequest. - * @implements ITestIamPermissionsRegionInstanceGroupRequest + * @classdesc Represents a TestIamPermissionsRegionHealthSourceRequest. + * @implements ITestIamPermissionsRegionHealthSourceRequest * @constructor - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionInstanceGroupRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthSourceRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionInstanceGroupRequest(properties) { + function TestIamPermissionsRegionHealthSourceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -600141,59 +621905,59 @@ } /** - * TestIamPermissionsRegionInstanceGroupRequest project. + * TestIamPermissionsRegionHealthSourceRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest * @instance */ - TestIamPermissionsRegionInstanceGroupRequest.prototype.project = ""; + TestIamPermissionsRegionHealthSourceRequest.prototype.project = ""; /** - * TestIamPermissionsRegionInstanceGroupRequest region. + * TestIamPermissionsRegionHealthSourceRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest * @instance */ - TestIamPermissionsRegionInstanceGroupRequest.prototype.region = ""; + TestIamPermissionsRegionHealthSourceRequest.prototype.region = ""; /** - * TestIamPermissionsRegionInstanceGroupRequest resource. + * TestIamPermissionsRegionHealthSourceRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest * @instance */ - TestIamPermissionsRegionInstanceGroupRequest.prototype.resource = ""; + TestIamPermissionsRegionHealthSourceRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionInstanceGroupRequest testPermissionsRequestResource. + * TestIamPermissionsRegionHealthSourceRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest * @instance */ - TestIamPermissionsRegionInstanceGroupRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionHealthSourceRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionInstanceGroupRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionHealthSourceRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionInstanceGroupRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest} TestIamPermissionsRegionInstanceGroupRequest instance + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthSourceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest} TestIamPermissionsRegionHealthSourceRequest instance */ - TestIamPermissionsRegionInstanceGroupRequest.create = function create(properties) { - return new TestIamPermissionsRegionInstanceGroupRequest(properties); + TestIamPermissionsRegionHealthSourceRequest.create = function create(properties) { + return new TestIamPermissionsRegionHealthSourceRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionInstanceGroupRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionHealthSourceRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionInstanceGroupRequest} message TestIamPermissionsRegionInstanceGroupRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthSourceRequest} message TestIamPermissionsRegionHealthSourceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionInstanceGroupRequest.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")) @@ -600208,33 +621972,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionInstanceGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionHealthSourceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionInstanceGroupRequest} message TestIamPermissionsRegionInstanceGroupRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthSourceRequest} message TestIamPermissionsRegionHealthSourceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionInstanceGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionHealthSourceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionInstanceGroupRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionHealthSourceRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1.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.v1.TestIamPermissionsRegionInstanceGroupRequest} TestIamPermissionsRegionInstanceGroupRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest} TestIamPermissionsRegionHealthSourceRequest * @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) { + 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.v1.TestIamPermissionsRegionInstanceGroupRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -600265,30 +622029,30 @@ }; /** - * Decodes a TestIamPermissionsRegionInstanceGroupRequest 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.v1.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest} TestIamPermissionsRegionInstanceGroupRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest} TestIamPermissionsRegionHealthSourceRequest * @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) { + TestIamPermissionsRegionHealthSourceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionInstanceGroupRequest message. + * Verifies a TestIamPermissionsRegionHealthSourceRequest message. * @function verify - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest * @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) { + TestIamPermissionsRegionHealthSourceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -600309,17 +622073,17 @@ }; /** - * Creates a TestIamPermissionsRegionInstanceGroupRequest 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.v1.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest} TestIamPermissionsRegionInstanceGroupRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest} TestIamPermissionsRegionHealthSourceRequest */ - TestIamPermissionsRegionInstanceGroupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest) + TestIamPermissionsRegionHealthSourceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest) return object; - var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest(); + var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -600328,22 +622092,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1.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 TestIamPermissionsRegionHealthSourceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest * @static - * @param {google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest} message TestIamPermissionsRegionInstanceGroupRequest + * @param {google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest} message TestIamPermissionsRegionHealthSourceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionInstanceGroupRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionHealthSourceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -600365,55 +622129,55 @@ }; /** - * Converts this TestIamPermissionsRegionInstanceGroupRequest to JSON. + * Converts this TestIamPermissionsRegionHealthSourceRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionInstanceGroupRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionHealthSourceRequest.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 TestIamPermissionsRegionHealthSourceRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionInstanceGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionHealthSourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest"; }; - return TestIamPermissionsRegionInstanceGroupRequest; + return TestIamPermissionsRegionHealthSourceRequest; })(); - v1.TestIamPermissionsRegionInstantSnapshotRequest = (function() { + v1.TestIamPermissionsRegionInstanceGroupRequest = (function() { /** - * Properties of a TestIamPermissionsRegionInstantSnapshotRequest. + * Properties of a TestIamPermissionsRegionInstanceGroupRequest. * @memberof google.cloud.compute.v1 - * @interface ITestIamPermissionsRegionInstantSnapshotRequest - * @property {string|null} [project] TestIamPermissionsRegionInstantSnapshotRequest project - * @property {string|null} [region] TestIamPermissionsRegionInstantSnapshotRequest region - * @property {string|null} [resource] TestIamPermissionsRegionInstantSnapshotRequest resource - * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionInstantSnapshotRequest 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.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionInstanceGroupRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionInstantSnapshotRequest. + * Constructs a new TestIamPermissionsRegionInstanceGroupRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a TestIamPermissionsRegionInstantSnapshotRequest. - * @implements ITestIamPermissionsRegionInstantSnapshotRequest + * @classdesc Represents a TestIamPermissionsRegionInstanceGroupRequest. + * @implements ITestIamPermissionsRegionInstanceGroupRequest * @constructor - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionInstanceGroupRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionInstantSnapshotRequest(properties) { + function TestIamPermissionsRegionInstanceGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -600421,59 +622185,59 @@ } /** - * TestIamPermissionsRegionInstantSnapshotRequest project. + * TestIamPermissionsRegionInstanceGroupRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest * @instance */ - TestIamPermissionsRegionInstantSnapshotRequest.prototype.project = ""; + TestIamPermissionsRegionInstanceGroupRequest.prototype.project = ""; /** - * TestIamPermissionsRegionInstantSnapshotRequest region. + * TestIamPermissionsRegionInstanceGroupRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest * @instance */ - TestIamPermissionsRegionInstantSnapshotRequest.prototype.region = ""; + TestIamPermissionsRegionInstanceGroupRequest.prototype.region = ""; /** - * TestIamPermissionsRegionInstantSnapshotRequest resource. + * TestIamPermissionsRegionInstanceGroupRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest * @instance */ - TestIamPermissionsRegionInstantSnapshotRequest.prototype.resource = ""; + TestIamPermissionsRegionInstanceGroupRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionInstantSnapshotRequest testPermissionsRequestResource. + * TestIamPermissionsRegionInstanceGroupRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest * @instance */ - TestIamPermissionsRegionInstantSnapshotRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionInstanceGroupRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionInstantSnapshotRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionInstanceGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest} TestIamPermissionsRegionInstantSnapshotRequest instance + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionInstanceGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest} TestIamPermissionsRegionInstanceGroupRequest instance */ - TestIamPermissionsRegionInstantSnapshotRequest.create = function create(properties) { - return new TestIamPermissionsRegionInstantSnapshotRequest(properties); + TestIamPermissionsRegionInstanceGroupRequest.create = function create(properties) { + return new TestIamPermissionsRegionInstanceGroupRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionInstanceGroupRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotRequest} message TestIamPermissionsRegionInstantSnapshotRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionInstanceGroupRequest} message TestIamPermissionsRegionInstanceGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionInstantSnapshotRequest.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")) @@ -600488,33 +622252,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionInstanceGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotRequest} message TestIamPermissionsRegionInstantSnapshotRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionInstanceGroupRequest} message TestIamPermissionsRegionInstanceGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionInstanceGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionInstantSnapshotRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionInstanceGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1.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.v1.TestIamPermissionsRegionInstantSnapshotRequest} TestIamPermissionsRegionInstantSnapshotRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest} TestIamPermissionsRegionInstanceGroupRequest * @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) { + 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.v1.TestIamPermissionsRegionInstantSnapshotRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -600545,30 +622309,30 @@ }; /** - * Decodes a TestIamPermissionsRegionInstantSnapshotRequest 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.v1.TestIamPermissionsRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest} TestIamPermissionsRegionInstantSnapshotRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest} TestIamPermissionsRegionInstanceGroupRequest * @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) { + TestIamPermissionsRegionInstanceGroupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionInstantSnapshotRequest message. + * Verifies a TestIamPermissionsRegionInstanceGroupRequest message. * @function verify - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest * @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) { + TestIamPermissionsRegionInstanceGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -600589,17 +622353,17 @@ }; /** - * Creates a TestIamPermissionsRegionInstantSnapshotRequest 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.v1.TestIamPermissionsRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest} TestIamPermissionsRegionInstantSnapshotRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest} TestIamPermissionsRegionInstanceGroupRequest */ - TestIamPermissionsRegionInstantSnapshotRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest) + TestIamPermissionsRegionInstanceGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest) return object; - var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest(); + var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -600608,22 +622372,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1.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 TestIamPermissionsRegionInstanceGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest * @static - * @param {google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest} message TestIamPermissionsRegionInstantSnapshotRequest + * @param {google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest} message TestIamPermissionsRegionInstanceGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionInstantSnapshotRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionInstanceGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -600645,55 +622409,55 @@ }; /** - * Converts this TestIamPermissionsRegionInstantSnapshotRequest to JSON. + * Converts this TestIamPermissionsRegionInstanceGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionInstantSnapshotRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionInstanceGroupRequest.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 TestIamPermissionsRegionInstanceGroupRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionInstantSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionInstanceGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionInstanceGroupRequest"; }; - return TestIamPermissionsRegionInstantSnapshotRequest; + return TestIamPermissionsRegionInstanceGroupRequest; })(); - v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest = (function() { + v1.TestIamPermissionsRegionInstantSnapshotGroupRequest = (function() { /** - * Properties of a TestIamPermissionsRegionNetworkFirewallPolicyRequest. + * Properties of a TestIamPermissionsRegionInstantSnapshotGroupRequest. * @memberof google.cloud.compute.v1 - * @interface ITestIamPermissionsRegionNetworkFirewallPolicyRequest - * @property {string|null} [project] TestIamPermissionsRegionNetworkFirewallPolicyRequest project - * @property {string|null} [region] TestIamPermissionsRegionNetworkFirewallPolicyRequest region - * @property {string|null} [resource] TestIamPermissionsRegionNetworkFirewallPolicyRequest resource - * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionNetworkFirewallPolicyRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionInstantSnapshotGroupRequest + * @property {string|null} [project] TestIamPermissionsRegionInstantSnapshotGroupRequest project + * @property {string|null} [region] TestIamPermissionsRegionInstantSnapshotGroupRequest region + * @property {string|null} [resource] TestIamPermissionsRegionInstantSnapshotGroupRequest resource + * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionInstantSnapshotGroupRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionNetworkFirewallPolicyRequest. + * Constructs a new TestIamPermissionsRegionInstantSnapshotGroupRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a TestIamPermissionsRegionNetworkFirewallPolicyRequest. - * @implements ITestIamPermissionsRegionNetworkFirewallPolicyRequest + * @classdesc Represents a TestIamPermissionsRegionInstantSnapshotGroupRequest. + * @implements ITestIamPermissionsRegionInstantSnapshotGroupRequest * @constructor - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionNetworkFirewallPolicyRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotGroupRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionNetworkFirewallPolicyRequest(properties) { + function TestIamPermissionsRegionInstantSnapshotGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -600701,59 +622465,59 @@ } /** - * TestIamPermissionsRegionNetworkFirewallPolicyRequest project. + * TestIamPermissionsRegionInstantSnapshotGroupRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest * @instance */ - TestIamPermissionsRegionNetworkFirewallPolicyRequest.prototype.project = ""; + TestIamPermissionsRegionInstantSnapshotGroupRequest.prototype.project = ""; /** - * TestIamPermissionsRegionNetworkFirewallPolicyRequest region. + * TestIamPermissionsRegionInstantSnapshotGroupRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest * @instance */ - TestIamPermissionsRegionNetworkFirewallPolicyRequest.prototype.region = ""; + TestIamPermissionsRegionInstantSnapshotGroupRequest.prototype.region = ""; /** - * TestIamPermissionsRegionNetworkFirewallPolicyRequest resource. + * TestIamPermissionsRegionInstantSnapshotGroupRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest * @instance */ - TestIamPermissionsRegionNetworkFirewallPolicyRequest.prototype.resource = ""; + TestIamPermissionsRegionInstantSnapshotGroupRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionNetworkFirewallPolicyRequest testPermissionsRequestResource. + * TestIamPermissionsRegionInstantSnapshotGroupRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest * @instance */ - TestIamPermissionsRegionNetworkFirewallPolicyRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionInstantSnapshotGroupRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionNetworkFirewallPolicyRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionInstantSnapshotGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionNetworkFirewallPolicyRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest} TestIamPermissionsRegionNetworkFirewallPolicyRequest instance + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest} TestIamPermissionsRegionInstantSnapshotGroupRequest instance */ - TestIamPermissionsRegionNetworkFirewallPolicyRequest.create = function create(properties) { - return new TestIamPermissionsRegionNetworkFirewallPolicyRequest(properties); + TestIamPermissionsRegionInstantSnapshotGroupRequest.create = function create(properties) { + return new TestIamPermissionsRegionInstantSnapshotGroupRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionNetworkFirewallPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionInstantSnapshotGroupRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionNetworkFirewallPolicyRequest} message TestIamPermissionsRegionNetworkFirewallPolicyRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotGroupRequest} message TestIamPermissionsRegionInstantSnapshotGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionNetworkFirewallPolicyRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionInstantSnapshotGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -600768,33 +622532,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionNetworkFirewallPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionInstantSnapshotGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionNetworkFirewallPolicyRequest} message TestIamPermissionsRegionNetworkFirewallPolicyRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotGroupRequest} message TestIamPermissionsRegionInstantSnapshotGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionNetworkFirewallPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionInstantSnapshotGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionNetworkFirewallPolicyRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionInstantSnapshotGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest} TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest} TestIamPermissionsRegionInstantSnapshotGroupRequest * @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) { + TestIamPermissionsRegionInstantSnapshotGroupRequest.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.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -600825,30 +622589,30 @@ }; /** - * Decodes a TestIamPermissionsRegionNetworkFirewallPolicyRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionInstantSnapshotGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest} TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest} TestIamPermissionsRegionInstantSnapshotGroupRequest * @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) { + TestIamPermissionsRegionInstantSnapshotGroupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionNetworkFirewallPolicyRequest message. + * Verifies a TestIamPermissionsRegionInstantSnapshotGroupRequest message. * @function verify - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest * @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) { + TestIamPermissionsRegionInstantSnapshotGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -600869,17 +622633,17 @@ }; /** - * Creates a TestIamPermissionsRegionNetworkFirewallPolicyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionInstantSnapshotGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest} TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest} TestIamPermissionsRegionInstantSnapshotGroupRequest */ - TestIamPermissionsRegionNetworkFirewallPolicyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest) + TestIamPermissionsRegionInstantSnapshotGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest) return object; - var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest(); + var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -600888,22 +622652,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1.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 TestIamPermissionsRegionInstantSnapshotGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest * @static - * @param {google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest} message TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @param {google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest} message TestIamPermissionsRegionInstantSnapshotGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionNetworkFirewallPolicyRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionInstantSnapshotGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -600925,55 +622689,55 @@ }; /** - * Converts this TestIamPermissionsRegionNetworkFirewallPolicyRequest to JSON. + * Converts this TestIamPermissionsRegionInstantSnapshotGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionNetworkFirewallPolicyRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionInstantSnapshotGroupRequest.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 TestIamPermissionsRegionInstantSnapshotGroupRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionNetworkFirewallPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionInstantSnapshotGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest"; }; - return TestIamPermissionsRegionNetworkFirewallPolicyRequest; + return TestIamPermissionsRegionInstantSnapshotGroupRequest; })(); - v1.TestIamPermissionsRegionNotificationEndpointRequest = (function() { + v1.TestIamPermissionsRegionInstantSnapshotRequest = (function() { /** - * Properties of a TestIamPermissionsRegionNotificationEndpointRequest. + * Properties of a TestIamPermissionsRegionInstantSnapshotRequest. * @memberof google.cloud.compute.v1 - * @interface ITestIamPermissionsRegionNotificationEndpointRequest - * @property {string|null} [project] TestIamPermissionsRegionNotificationEndpointRequest project - * @property {string|null} [region] TestIamPermissionsRegionNotificationEndpointRequest region - * @property {string|null} [resource] TestIamPermissionsRegionNotificationEndpointRequest resource - * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionNotificationEndpointRequest 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.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionInstantSnapshotRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionNotificationEndpointRequest. + * Constructs a new TestIamPermissionsRegionInstantSnapshotRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a TestIamPermissionsRegionNotificationEndpointRequest. - * @implements ITestIamPermissionsRegionNotificationEndpointRequest + * @classdesc Represents a TestIamPermissionsRegionInstantSnapshotRequest. + * @implements ITestIamPermissionsRegionInstantSnapshotRequest * @constructor - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionNotificationEndpointRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionNotificationEndpointRequest(properties) { + function TestIamPermissionsRegionInstantSnapshotRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -600981,59 +622745,59 @@ } /** - * TestIamPermissionsRegionNotificationEndpointRequest project. + * TestIamPermissionsRegionInstantSnapshotRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest * @instance */ - TestIamPermissionsRegionNotificationEndpointRequest.prototype.project = ""; + TestIamPermissionsRegionInstantSnapshotRequest.prototype.project = ""; /** - * TestIamPermissionsRegionNotificationEndpointRequest region. + * TestIamPermissionsRegionInstantSnapshotRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest * @instance */ - TestIamPermissionsRegionNotificationEndpointRequest.prototype.region = ""; + TestIamPermissionsRegionInstantSnapshotRequest.prototype.region = ""; /** - * TestIamPermissionsRegionNotificationEndpointRequest resource. + * TestIamPermissionsRegionInstantSnapshotRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest * @instance */ - TestIamPermissionsRegionNotificationEndpointRequest.prototype.resource = ""; + TestIamPermissionsRegionInstantSnapshotRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionNotificationEndpointRequest testPermissionsRequestResource. + * TestIamPermissionsRegionInstantSnapshotRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest * @instance */ - TestIamPermissionsRegionNotificationEndpointRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionInstantSnapshotRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionNotificationEndpointRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionInstantSnapshotRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionNotificationEndpointRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest} TestIamPermissionsRegionNotificationEndpointRequest instance + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest} TestIamPermissionsRegionInstantSnapshotRequest instance */ - TestIamPermissionsRegionNotificationEndpointRequest.create = function create(properties) { - return new TestIamPermissionsRegionNotificationEndpointRequest(properties); + TestIamPermissionsRegionInstantSnapshotRequest.create = function create(properties) { + return new TestIamPermissionsRegionInstantSnapshotRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionNotificationEndpointRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionNotificationEndpointRequest} message TestIamPermissionsRegionNotificationEndpointRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotRequest} message TestIamPermissionsRegionInstantSnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionNotificationEndpointRequest.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")) @@ -601048,33 +622812,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionNotificationEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionNotificationEndpointRequest} message TestIamPermissionsRegionNotificationEndpointRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotRequest} message TestIamPermissionsRegionInstantSnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionNotificationEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionNotificationEndpointRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionInstantSnapshotRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest + * @memberof google.cloud.compute.v1.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.v1.TestIamPermissionsRegionNotificationEndpointRequest} TestIamPermissionsRegionNotificationEndpointRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest} TestIamPermissionsRegionInstantSnapshotRequest * @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) { + 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.v1.TestIamPermissionsRegionNotificationEndpointRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -601105,30 +622869,30 @@ }; /** - * Decodes a TestIamPermissionsRegionNotificationEndpointRequest 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.v1.TestIamPermissionsRegionNotificationEndpointRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest} TestIamPermissionsRegionNotificationEndpointRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest} TestIamPermissionsRegionInstantSnapshotRequest * @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) { + TestIamPermissionsRegionInstantSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionNotificationEndpointRequest message. + * Verifies a TestIamPermissionsRegionInstantSnapshotRequest message. * @function verify - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest * @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) { + TestIamPermissionsRegionInstantSnapshotRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -601149,17 +622913,17 @@ }; /** - * Creates a TestIamPermissionsRegionNotificationEndpointRequest 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.v1.TestIamPermissionsRegionNotificationEndpointRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest} TestIamPermissionsRegionNotificationEndpointRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest} TestIamPermissionsRegionInstantSnapshotRequest */ - TestIamPermissionsRegionNotificationEndpointRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest) + TestIamPermissionsRegionInstantSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest) return object; - var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest(); + var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -601168,22 +622932,582 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1.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 TestIamPermissionsRegionInstantSnapshotRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest} message TestIamPermissionsRegionNotificationEndpointRequest + * @param {google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest} message TestIamPermissionsRegionInstantSnapshotRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionNotificationEndpointRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionInstantSnapshotRequest.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.v1.TestPermissionsRequest.toObject(message.testPermissionsRequestResource, options); + return object; + }; + + /** + * Converts this TestIamPermissionsRegionInstantSnapshotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest + * @instance + * @returns {Object.} JSON object + */ + TestIamPermissionsRegionInstantSnapshotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TestIamPermissionsRegionInstantSnapshotRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TestIamPermissionsRegionInstantSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest"; + }; + + return TestIamPermissionsRegionInstantSnapshotRequest; + })(); + + v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest = (function() { + + /** + * Properties of a TestIamPermissionsRegionNetworkFirewallPolicyRequest. + * @memberof google.cloud.compute.v1 + * @interface ITestIamPermissionsRegionNetworkFirewallPolicyRequest + * @property {string|null} [project] TestIamPermissionsRegionNetworkFirewallPolicyRequest project + * @property {string|null} [region] TestIamPermissionsRegionNetworkFirewallPolicyRequest region + * @property {string|null} [resource] TestIamPermissionsRegionNetworkFirewallPolicyRequest resource + * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionNetworkFirewallPolicyRequest testPermissionsRequestResource + */ + + /** + * Constructs a new TestIamPermissionsRegionNetworkFirewallPolicyRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a TestIamPermissionsRegionNetworkFirewallPolicyRequest. + * @implements ITestIamPermissionsRegionNetworkFirewallPolicyRequest + * @constructor + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionNetworkFirewallPolicyRequest=} [properties] Properties to set + */ + function TestIamPermissionsRegionNetworkFirewallPolicyRequest(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]]; + } + + /** + * TestIamPermissionsRegionNetworkFirewallPolicyRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @instance + */ + TestIamPermissionsRegionNetworkFirewallPolicyRequest.prototype.project = ""; + + /** + * TestIamPermissionsRegionNetworkFirewallPolicyRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @instance + */ + TestIamPermissionsRegionNetworkFirewallPolicyRequest.prototype.region = ""; + + /** + * TestIamPermissionsRegionNetworkFirewallPolicyRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @instance + */ + TestIamPermissionsRegionNetworkFirewallPolicyRequest.prototype.resource = ""; + + /** + * TestIamPermissionsRegionNetworkFirewallPolicyRequest testPermissionsRequestResource. + * @member {google.cloud.compute.v1.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @instance + */ + TestIamPermissionsRegionNetworkFirewallPolicyRequest.prototype.testPermissionsRequestResource = null; + + /** + * Creates a new TestIamPermissionsRegionNetworkFirewallPolicyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionNetworkFirewallPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest} TestIamPermissionsRegionNetworkFirewallPolicyRequest instance + */ + TestIamPermissionsRegionNetworkFirewallPolicyRequest.create = function create(properties) { + return new TestIamPermissionsRegionNetworkFirewallPolicyRequest(properties); + }; + + /** + * Encodes the specified TestIamPermissionsRegionNetworkFirewallPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionNetworkFirewallPolicyRequest} message TestIamPermissionsRegionNetworkFirewallPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsRegionNetworkFirewallPolicyRequest.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.v1.TestPermissionsRequest.encode(message.testPermissionsRequestResource, writer.uint32(/* id 439214758, wireType 2 =*/3513718066).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TestIamPermissionsRegionNetworkFirewallPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionNetworkFirewallPolicyRequest} message TestIamPermissionsRegionNetworkFirewallPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsRegionNetworkFirewallPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TestIamPermissionsRegionNetworkFirewallPolicyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.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.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest} TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest(); + 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.v1.TestPermissionsRequest.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TestIamPermissionsRegionNetworkFirewallPolicyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest} TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TestIamPermissionsRegionNetworkFirewallPolicyRequest message. + * @function verify + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @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) { + 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.v1.TestPermissionsRequest.verify(message.testPermissionsRequestResource); + if (error) + return "testPermissionsRequestResource." + error; + } + return null; + }; + + /** + * Creates a TestIamPermissionsRegionNetworkFirewallPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest} TestIamPermissionsRegionNetworkFirewallPolicyRequest + */ + TestIamPermissionsRegionNetworkFirewallPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest) + return object; + var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest(); + 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.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest.testPermissionsRequestResource: object expected"); + message.testPermissionsRequestResource = $root.google.cloud.compute.v1.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); + } + return message; + }; + + /** + * Creates a plain object from a TestIamPermissionsRegionNetworkFirewallPolicyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @static + * @param {google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest} message TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TestIamPermissionsRegionNetworkFirewallPolicyRequest.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.v1.TestPermissionsRequest.toObject(message.testPermissionsRequestResource, options); + return object; + }; + + /** + * Converts this TestIamPermissionsRegionNetworkFirewallPolicyRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @instance + * @returns {Object.} JSON object + */ + TestIamPermissionsRegionNetworkFirewallPolicyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TestIamPermissionsRegionNetworkFirewallPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest"; + }; + + return TestIamPermissionsRegionNetworkFirewallPolicyRequest; + })(); + + v1.TestIamPermissionsRegionNotificationEndpointRequest = (function() { + + /** + * Properties of a TestIamPermissionsRegionNotificationEndpointRequest. + * @memberof google.cloud.compute.v1 + * @interface ITestIamPermissionsRegionNotificationEndpointRequest + * @property {string|null} [project] TestIamPermissionsRegionNotificationEndpointRequest project + * @property {string|null} [region] TestIamPermissionsRegionNotificationEndpointRequest region + * @property {string|null} [resource] TestIamPermissionsRegionNotificationEndpointRequest resource + * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionNotificationEndpointRequest testPermissionsRequestResource + */ + + /** + * Constructs a new TestIamPermissionsRegionNotificationEndpointRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a TestIamPermissionsRegionNotificationEndpointRequest. + * @implements ITestIamPermissionsRegionNotificationEndpointRequest + * @constructor + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionNotificationEndpointRequest=} [properties] Properties to set + */ + function TestIamPermissionsRegionNotificationEndpointRequest(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]]; + } + + /** + * TestIamPermissionsRegionNotificationEndpointRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest + * @instance + */ + TestIamPermissionsRegionNotificationEndpointRequest.prototype.project = ""; + + /** + * TestIamPermissionsRegionNotificationEndpointRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest + * @instance + */ + TestIamPermissionsRegionNotificationEndpointRequest.prototype.region = ""; + + /** + * TestIamPermissionsRegionNotificationEndpointRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest + * @instance + */ + TestIamPermissionsRegionNotificationEndpointRequest.prototype.resource = ""; + + /** + * TestIamPermissionsRegionNotificationEndpointRequest testPermissionsRequestResource. + * @member {google.cloud.compute.v1.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest + * @instance + */ + TestIamPermissionsRegionNotificationEndpointRequest.prototype.testPermissionsRequestResource = null; + + /** + * Creates a new TestIamPermissionsRegionNotificationEndpointRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionNotificationEndpointRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest} TestIamPermissionsRegionNotificationEndpointRequest instance + */ + TestIamPermissionsRegionNotificationEndpointRequest.create = function create(properties) { + return new TestIamPermissionsRegionNotificationEndpointRequest(properties); + }; + + /** + * Encodes the specified TestIamPermissionsRegionNotificationEndpointRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionNotificationEndpointRequest} message TestIamPermissionsRegionNotificationEndpointRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsRegionNotificationEndpointRequest.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.v1.TestPermissionsRequest.encode(message.testPermissionsRequestResource, writer.uint32(/* id 439214758, wireType 2 =*/3513718066).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TestIamPermissionsRegionNotificationEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionNotificationEndpointRequest} message TestIamPermissionsRegionNotificationEndpointRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsRegionNotificationEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TestIamPermissionsRegionNotificationEndpointRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.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.v1.TestIamPermissionsRegionNotificationEndpointRequest} TestIamPermissionsRegionNotificationEndpointRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest(); + 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.v1.TestPermissionsRequest.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TestIamPermissionsRegionNotificationEndpointRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest} TestIamPermissionsRegionNotificationEndpointRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TestIamPermissionsRegionNotificationEndpointRequest message. + * @function verify + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest + * @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) { + 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.v1.TestPermissionsRequest.verify(message.testPermissionsRequestResource); + if (error) + return "testPermissionsRequestResource." + error; + } + return null; + }; + + /** + * Creates a TestIamPermissionsRegionNotificationEndpointRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest} TestIamPermissionsRegionNotificationEndpointRequest + */ + TestIamPermissionsRegionNotificationEndpointRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest) + return object; + var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest(); + 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.v1.TestIamPermissionsRegionNotificationEndpointRequest.testPermissionsRequestResource: object expected"); + message.testPermissionsRequestResource = $root.google.cloud.compute.v1.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); + } + return message; + }; + + /** + * Creates a plain object from a TestIamPermissionsRegionNotificationEndpointRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest + * @static + * @param {google.cloud.compute.v1.TestIamPermissionsRegionNotificationEndpointRequest} message TestIamPermissionsRegionNotificationEndpointRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TestIamPermissionsRegionNotificationEndpointRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -601233,6 +623557,286 @@ return TestIamPermissionsRegionNotificationEndpointRequest; })(); + v1.TestIamPermissionsRegionSnapshotRequest = (function() { + + /** + * Properties of a TestIamPermissionsRegionSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @interface ITestIamPermissionsRegionSnapshotRequest + * @property {string|null} [project] TestIamPermissionsRegionSnapshotRequest project + * @property {string|null} [region] TestIamPermissionsRegionSnapshotRequest region + * @property {string|null} [resource] TestIamPermissionsRegionSnapshotRequest resource + * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionSnapshotRequest testPermissionsRequestResource + */ + + /** + * Constructs a new TestIamPermissionsRegionSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a TestIamPermissionsRegionSnapshotRequest. + * @implements ITestIamPermissionsRegionSnapshotRequest + * @constructor + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionSnapshotRequest=} [properties] Properties to set + */ + function TestIamPermissionsRegionSnapshotRequest(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]]; + } + + /** + * TestIamPermissionsRegionSnapshotRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest + * @instance + */ + TestIamPermissionsRegionSnapshotRequest.prototype.project = ""; + + /** + * TestIamPermissionsRegionSnapshotRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest + * @instance + */ + TestIamPermissionsRegionSnapshotRequest.prototype.region = ""; + + /** + * TestIamPermissionsRegionSnapshotRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest + * @instance + */ + TestIamPermissionsRegionSnapshotRequest.prototype.resource = ""; + + /** + * TestIamPermissionsRegionSnapshotRequest testPermissionsRequestResource. + * @member {google.cloud.compute.v1.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest + * @instance + */ + TestIamPermissionsRegionSnapshotRequest.prototype.testPermissionsRequestResource = null; + + /** + * Creates a new TestIamPermissionsRegionSnapshotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest} TestIamPermissionsRegionSnapshotRequest instance + */ + TestIamPermissionsRegionSnapshotRequest.create = function create(properties) { + return new TestIamPermissionsRegionSnapshotRequest(properties); + }; + + /** + * Encodes the specified TestIamPermissionsRegionSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionSnapshotRequest} message TestIamPermissionsRegionSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsRegionSnapshotRequest.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.v1.TestPermissionsRequest.encode(message.testPermissionsRequestResource, writer.uint32(/* id 439214758, wireType 2 =*/3513718066).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TestIamPermissionsRegionSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionSnapshotRequest} message TestIamPermissionsRegionSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsRegionSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TestIamPermissionsRegionSnapshotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.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.v1.TestIamPermissionsRegionSnapshotRequest} TestIamPermissionsRegionSnapshotRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest(); + 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.v1.TestPermissionsRequest.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TestIamPermissionsRegionSnapshotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest} TestIamPermissionsRegionSnapshotRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TestIamPermissionsRegionSnapshotRequest message. + * @function verify + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest + * @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) { + 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.v1.TestPermissionsRequest.verify(message.testPermissionsRequestResource); + if (error) + return "testPermissionsRequestResource." + error; + } + return null; + }; + + /** + * Creates a TestIamPermissionsRegionSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest} TestIamPermissionsRegionSnapshotRequest + */ + TestIamPermissionsRegionSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest) + return object; + var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest(); + 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.v1.TestIamPermissionsRegionSnapshotRequest.testPermissionsRequestResource: object expected"); + message.testPermissionsRequestResource = $root.google.cloud.compute.v1.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); + } + return message; + }; + + /** + * Creates a plain object from a TestIamPermissionsRegionSnapshotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest} message TestIamPermissionsRegionSnapshotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TestIamPermissionsRegionSnapshotRequest.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.v1.TestPermissionsRequest.toObject(message.testPermissionsRequestResource, options); + return object; + }; + + /** + * Converts this TestIamPermissionsRegionSnapshotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest + * @instance + * @returns {Object.} JSON object + */ + TestIamPermissionsRegionSnapshotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TestIamPermissionsRegionSnapshotRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TestIamPermissionsRegionSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest"; + }; + + return TestIamPermissionsRegionSnapshotRequest; + })(); + v1.TestIamPermissionsReservationBlockRequest = (function() { /** @@ -609950,6 +632554,1251 @@ return UpdateInstanceRequest; })(); + v1.UpdateKmsKeyDiskRequest = (function() { + + /** + * Properties of an UpdateKmsKeyDiskRequest. + * @memberof google.cloud.compute.v1 + * @interface IUpdateKmsKeyDiskRequest + * @property {string|null} [disk] UpdateKmsKeyDiskRequest disk + * @property {google.cloud.compute.v1.IDiskUpdateKmsKeyRequest|null} [diskUpdateKmsKeyRequestResource] UpdateKmsKeyDiskRequest diskUpdateKmsKeyRequestResource + * @property {string|null} [project] UpdateKmsKeyDiskRequest project + * @property {string|null} [requestId] UpdateKmsKeyDiskRequest requestId + * @property {string|null} [zone] UpdateKmsKeyDiskRequest zone + */ + + /** + * Constructs a new UpdateKmsKeyDiskRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an UpdateKmsKeyDiskRequest. + * @implements IUpdateKmsKeyDiskRequest + * @constructor + * @param {google.cloud.compute.v1.IUpdateKmsKeyDiskRequest=} [properties] Properties to set + */ + function UpdateKmsKeyDiskRequest(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]]; + } + + /** + * UpdateKmsKeyDiskRequest disk. + * @member {string} disk + * @memberof google.cloud.compute.v1.UpdateKmsKeyDiskRequest + * @instance + */ + UpdateKmsKeyDiskRequest.prototype.disk = ""; + + /** + * UpdateKmsKeyDiskRequest diskUpdateKmsKeyRequestResource. + * @member {google.cloud.compute.v1.IDiskUpdateKmsKeyRequest|null|undefined} diskUpdateKmsKeyRequestResource + * @memberof google.cloud.compute.v1.UpdateKmsKeyDiskRequest + * @instance + */ + UpdateKmsKeyDiskRequest.prototype.diskUpdateKmsKeyRequestResource = null; + + /** + * UpdateKmsKeyDiskRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.UpdateKmsKeyDiskRequest + * @instance + */ + UpdateKmsKeyDiskRequest.prototype.project = ""; + + /** + * UpdateKmsKeyDiskRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.UpdateKmsKeyDiskRequest + * @instance + */ + UpdateKmsKeyDiskRequest.prototype.requestId = null; + + /** + * UpdateKmsKeyDiskRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.UpdateKmsKeyDiskRequest + * @instance + */ + UpdateKmsKeyDiskRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(UpdateKmsKeyDiskRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new UpdateKmsKeyDiskRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.UpdateKmsKeyDiskRequest + * @static + * @param {google.cloud.compute.v1.IUpdateKmsKeyDiskRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.UpdateKmsKeyDiskRequest} UpdateKmsKeyDiskRequest instance + */ + UpdateKmsKeyDiskRequest.create = function create(properties) { + return new UpdateKmsKeyDiskRequest(properties); + }; + + /** + * Encodes the specified UpdateKmsKeyDiskRequest message. Does not implicitly {@link google.cloud.compute.v1.UpdateKmsKeyDiskRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.UpdateKmsKeyDiskRequest + * @static + * @param {google.cloud.compute.v1.IUpdateKmsKeyDiskRequest} message UpdateKmsKeyDiskRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateKmsKeyDiskRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.disk != null && Object.hasOwnProperty.call(message, "disk")) + writer.uint32(/* id 3083677, wireType 2 =*/24669418).string(message.disk); + 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.diskUpdateKmsKeyRequestResource != null && Object.hasOwnProperty.call(message, "diskUpdateKmsKeyRequestResource")) + $root.google.cloud.compute.v1.DiskUpdateKmsKeyRequest.encode(message.diskUpdateKmsKeyRequestResource, writer.uint32(/* id 178025952, wireType 2 =*/1424207618).fork()).ldelim(); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + return writer; + }; + + /** + * Encodes the specified UpdateKmsKeyDiskRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.UpdateKmsKeyDiskRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.UpdateKmsKeyDiskRequest + * @static + * @param {google.cloud.compute.v1.IUpdateKmsKeyDiskRequest} message UpdateKmsKeyDiskRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateKmsKeyDiskRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateKmsKeyDiskRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.UpdateKmsKeyDiskRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.UpdateKmsKeyDiskRequest} UpdateKmsKeyDiskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateKmsKeyDiskRequest.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.v1.UpdateKmsKeyDiskRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 3083677: { + message.disk = reader.string(); + break; + } + case 178025952: { + message.diskUpdateKmsKeyRequestResource = $root.google.cloud.compute.v1.DiskUpdateKmsKeyRequest.decode(reader, reader.uint32()); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateKmsKeyDiskRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.UpdateKmsKeyDiskRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.UpdateKmsKeyDiskRequest} UpdateKmsKeyDiskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateKmsKeyDiskRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateKmsKeyDiskRequest message. + * @function verify + * @memberof google.cloud.compute.v1.UpdateKmsKeyDiskRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateKmsKeyDiskRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.disk != null && message.hasOwnProperty("disk")) + if (!$util.isString(message.disk)) + return "disk: string expected"; + if (message.diskUpdateKmsKeyRequestResource != null && message.hasOwnProperty("diskUpdateKmsKeyRequestResource")) { + var error = $root.google.cloud.compute.v1.DiskUpdateKmsKeyRequest.verify(message.diskUpdateKmsKeyRequestResource); + if (error) + return "diskUpdateKmsKeyRequestResource." + error; + } + 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.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates an UpdateKmsKeyDiskRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.UpdateKmsKeyDiskRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.UpdateKmsKeyDiskRequest} UpdateKmsKeyDiskRequest + */ + UpdateKmsKeyDiskRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.UpdateKmsKeyDiskRequest) + return object; + var message = new $root.google.cloud.compute.v1.UpdateKmsKeyDiskRequest(); + if (object.disk != null) + message.disk = String(object.disk); + if (object.diskUpdateKmsKeyRequestResource != null) { + if (typeof object.diskUpdateKmsKeyRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1.UpdateKmsKeyDiskRequest.diskUpdateKmsKeyRequestResource: object expected"); + message.diskUpdateKmsKeyRequestResource = $root.google.cloud.compute.v1.DiskUpdateKmsKeyRequest.fromObject(object.diskUpdateKmsKeyRequestResource); + } + if (object.project != null) + message.project = String(object.project); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from an UpdateKmsKeyDiskRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.UpdateKmsKeyDiskRequest + * @static + * @param {google.cloud.compute.v1.UpdateKmsKeyDiskRequest} message UpdateKmsKeyDiskRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateKmsKeyDiskRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.disk = ""; + object.zone = ""; + object.diskUpdateKmsKeyRequestResource = null; + object.project = ""; + } + if (message.disk != null && message.hasOwnProperty("disk")) + object.disk = message.disk; + 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.diskUpdateKmsKeyRequestResource != null && message.hasOwnProperty("diskUpdateKmsKeyRequestResource")) + object.diskUpdateKmsKeyRequestResource = $root.google.cloud.compute.v1.DiskUpdateKmsKeyRequest.toObject(message.diskUpdateKmsKeyRequestResource, options); + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + return object; + }; + + /** + * Converts this UpdateKmsKeyDiskRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.UpdateKmsKeyDiskRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateKmsKeyDiskRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdateKmsKeyDiskRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.UpdateKmsKeyDiskRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateKmsKeyDiskRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.UpdateKmsKeyDiskRequest"; + }; + + return UpdateKmsKeyDiskRequest; + })(); + + v1.UpdateKmsKeyRegionDiskRequest = (function() { + + /** + * Properties of an UpdateKmsKeyRegionDiskRequest. + * @memberof google.cloud.compute.v1 + * @interface IUpdateKmsKeyRegionDiskRequest + * @property {string|null} [disk] UpdateKmsKeyRegionDiskRequest disk + * @property {string|null} [project] UpdateKmsKeyRegionDiskRequest project + * @property {string|null} [region] UpdateKmsKeyRegionDiskRequest region + * @property {google.cloud.compute.v1.IRegionDiskUpdateKmsKeyRequest|null} [regionDiskUpdateKmsKeyRequestResource] UpdateKmsKeyRegionDiskRequest regionDiskUpdateKmsKeyRequestResource + * @property {string|null} [requestId] UpdateKmsKeyRegionDiskRequest requestId + */ + + /** + * Constructs a new UpdateKmsKeyRegionDiskRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an UpdateKmsKeyRegionDiskRequest. + * @implements IUpdateKmsKeyRegionDiskRequest + * @constructor + * @param {google.cloud.compute.v1.IUpdateKmsKeyRegionDiskRequest=} [properties] Properties to set + */ + function UpdateKmsKeyRegionDiskRequest(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]]; + } + + /** + * UpdateKmsKeyRegionDiskRequest disk. + * @member {string} disk + * @memberof google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest + * @instance + */ + UpdateKmsKeyRegionDiskRequest.prototype.disk = ""; + + /** + * UpdateKmsKeyRegionDiskRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest + * @instance + */ + UpdateKmsKeyRegionDiskRequest.prototype.project = ""; + + /** + * UpdateKmsKeyRegionDiskRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest + * @instance + */ + UpdateKmsKeyRegionDiskRequest.prototype.region = ""; + + /** + * UpdateKmsKeyRegionDiskRequest regionDiskUpdateKmsKeyRequestResource. + * @member {google.cloud.compute.v1.IRegionDiskUpdateKmsKeyRequest|null|undefined} regionDiskUpdateKmsKeyRequestResource + * @memberof google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest + * @instance + */ + UpdateKmsKeyRegionDiskRequest.prototype.regionDiskUpdateKmsKeyRequestResource = null; + + /** + * UpdateKmsKeyRegionDiskRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest + * @instance + */ + UpdateKmsKeyRegionDiskRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(UpdateKmsKeyRegionDiskRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new UpdateKmsKeyRegionDiskRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest + * @static + * @param {google.cloud.compute.v1.IUpdateKmsKeyRegionDiskRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest} UpdateKmsKeyRegionDiskRequest instance + */ + UpdateKmsKeyRegionDiskRequest.create = function create(properties) { + return new UpdateKmsKeyRegionDiskRequest(properties); + }; + + /** + * Encodes the specified UpdateKmsKeyRegionDiskRequest message. Does not implicitly {@link google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest + * @static + * @param {google.cloud.compute.v1.IUpdateKmsKeyRegionDiskRequest} message UpdateKmsKeyRegionDiskRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateKmsKeyRegionDiskRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.disk != null && Object.hasOwnProperty.call(message, "disk")) + writer.uint32(/* id 3083677, wireType 2 =*/24669418).string(message.disk); + if (message.regionDiskUpdateKmsKeyRequestResource != null && Object.hasOwnProperty.call(message, "regionDiskUpdateKmsKeyRequestResource")) + $root.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest.encode(message.regionDiskUpdateKmsKeyRequestResource, writer.uint32(/* id 10015819, wireType 2 =*/80126554).fork()).ldelim(); + 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); + return writer; + }; + + /** + * Encodes the specified UpdateKmsKeyRegionDiskRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest + * @static + * @param {google.cloud.compute.v1.IUpdateKmsKeyRegionDiskRequest} message UpdateKmsKeyRegionDiskRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateKmsKeyRegionDiskRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateKmsKeyRegionDiskRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest} UpdateKmsKeyRegionDiskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateKmsKeyRegionDiskRequest.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.v1.UpdateKmsKeyRegionDiskRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 3083677: { + message.disk = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 10015819: { + message.regionDiskUpdateKmsKeyRequestResource = $root.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest.decode(reader, reader.uint32()); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateKmsKeyRegionDiskRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest} UpdateKmsKeyRegionDiskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateKmsKeyRegionDiskRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateKmsKeyRegionDiskRequest message. + * @function verify + * @memberof google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateKmsKeyRegionDiskRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.disk != null && message.hasOwnProperty("disk")) + if (!$util.isString(message.disk)) + return "disk: 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.regionDiskUpdateKmsKeyRequestResource != null && message.hasOwnProperty("regionDiskUpdateKmsKeyRequestResource")) { + var error = $root.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest.verify(message.regionDiskUpdateKmsKeyRequestResource); + if (error) + return "regionDiskUpdateKmsKeyRequestResource." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + return null; + }; + + /** + * Creates an UpdateKmsKeyRegionDiskRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest} UpdateKmsKeyRegionDiskRequest + */ + UpdateKmsKeyRegionDiskRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest) + return object; + var message = new $root.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest(); + if (object.disk != null) + message.disk = String(object.disk); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.regionDiskUpdateKmsKeyRequestResource != null) { + if (typeof object.regionDiskUpdateKmsKeyRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest.regionDiskUpdateKmsKeyRequestResource: object expected"); + message.regionDiskUpdateKmsKeyRequestResource = $root.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest.fromObject(object.regionDiskUpdateKmsKeyRequestResource); + } + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from an UpdateKmsKeyRegionDiskRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest + * @static + * @param {google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest} message UpdateKmsKeyRegionDiskRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateKmsKeyRegionDiskRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.disk = ""; + object.regionDiskUpdateKmsKeyRequestResource = null; + object.region = ""; + object.project = ""; + } + if (message.disk != null && message.hasOwnProperty("disk")) + object.disk = message.disk; + if (message.regionDiskUpdateKmsKeyRequestResource != null && message.hasOwnProperty("regionDiskUpdateKmsKeyRequestResource")) + object.regionDiskUpdateKmsKeyRequestResource = $root.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest.toObject(message.regionDiskUpdateKmsKeyRequestResource, options); + 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; + return object; + }; + + /** + * Converts this UpdateKmsKeyRegionDiskRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateKmsKeyRegionDiskRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdateKmsKeyRegionDiskRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateKmsKeyRegionDiskRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest"; + }; + + return UpdateKmsKeyRegionDiskRequest; + })(); + + v1.UpdateKmsKeyRegionSnapshotRequest = (function() { + + /** + * Properties of an UpdateKmsKeyRegionSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @interface IUpdateKmsKeyRegionSnapshotRequest + * @property {string|null} [project] UpdateKmsKeyRegionSnapshotRequest project + * @property {string|null} [region] UpdateKmsKeyRegionSnapshotRequest region + * @property {google.cloud.compute.v1.IRegionSnapshotUpdateKmsKeyRequest|null} [regionSnapshotUpdateKmsKeyRequestResource] UpdateKmsKeyRegionSnapshotRequest regionSnapshotUpdateKmsKeyRequestResource + * @property {string|null} [requestId] UpdateKmsKeyRegionSnapshotRequest requestId + * @property {string|null} [snapshot] UpdateKmsKeyRegionSnapshotRequest snapshot + */ + + /** + * Constructs a new UpdateKmsKeyRegionSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an UpdateKmsKeyRegionSnapshotRequest. + * @implements IUpdateKmsKeyRegionSnapshotRequest + * @constructor + * @param {google.cloud.compute.v1.IUpdateKmsKeyRegionSnapshotRequest=} [properties] Properties to set + */ + function UpdateKmsKeyRegionSnapshotRequest(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]]; + } + + /** + * UpdateKmsKeyRegionSnapshotRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest + * @instance + */ + UpdateKmsKeyRegionSnapshotRequest.prototype.project = ""; + + /** + * UpdateKmsKeyRegionSnapshotRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest + * @instance + */ + UpdateKmsKeyRegionSnapshotRequest.prototype.region = ""; + + /** + * UpdateKmsKeyRegionSnapshotRequest regionSnapshotUpdateKmsKeyRequestResource. + * @member {google.cloud.compute.v1.IRegionSnapshotUpdateKmsKeyRequest|null|undefined} regionSnapshotUpdateKmsKeyRequestResource + * @memberof google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest + * @instance + */ + UpdateKmsKeyRegionSnapshotRequest.prototype.regionSnapshotUpdateKmsKeyRequestResource = null; + + /** + * UpdateKmsKeyRegionSnapshotRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest + * @instance + */ + UpdateKmsKeyRegionSnapshotRequest.prototype.requestId = null; + + /** + * UpdateKmsKeyRegionSnapshotRequest snapshot. + * @member {string} snapshot + * @memberof google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest + * @instance + */ + UpdateKmsKeyRegionSnapshotRequest.prototype.snapshot = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(UpdateKmsKeyRegionSnapshotRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new UpdateKmsKeyRegionSnapshotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IUpdateKmsKeyRegionSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest} UpdateKmsKeyRegionSnapshotRequest instance + */ + UpdateKmsKeyRegionSnapshotRequest.create = function create(properties) { + return new UpdateKmsKeyRegionSnapshotRequest(properties); + }; + + /** + * Encodes the specified UpdateKmsKeyRegionSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IUpdateKmsKeyRegionSnapshotRequest} message UpdateKmsKeyRegionSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateKmsKeyRegionSnapshotRequest.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.regionSnapshotUpdateKmsKeyRequestResource != null && Object.hasOwnProperty.call(message, "regionSnapshotUpdateKmsKeyRequestResource")) + $root.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest.encode(message.regionSnapshotUpdateKmsKeyRequestResource, writer.uint32(/* id 279384818, wireType 2 =*/2235078546).fork()).ldelim(); + if (message.snapshot != null && Object.hasOwnProperty.call(message, "snapshot")) + writer.uint32(/* id 284874180, wireType 2 =*/2278993442).string(message.snapshot); + return writer; + }; + + /** + * Encodes the specified UpdateKmsKeyRegionSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IUpdateKmsKeyRegionSnapshotRequest} message UpdateKmsKeyRegionSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateKmsKeyRegionSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateKmsKeyRegionSnapshotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest} UpdateKmsKeyRegionSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateKmsKeyRegionSnapshotRequest.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.v1.UpdateKmsKeyRegionSnapshotRequest(); + 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 279384818: { + message.regionSnapshotUpdateKmsKeyRequestResource = $root.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest.decode(reader, reader.uint32()); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + case 284874180: { + message.snapshot = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateKmsKeyRegionSnapshotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest} UpdateKmsKeyRegionSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateKmsKeyRegionSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateKmsKeyRegionSnapshotRequest message. + * @function verify + * @memberof google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateKmsKeyRegionSnapshotRequest.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.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.regionSnapshotUpdateKmsKeyRequestResource != null && message.hasOwnProperty("regionSnapshotUpdateKmsKeyRequestResource")) { + var error = $root.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest.verify(message.regionSnapshotUpdateKmsKeyRequestResource); + if (error) + return "regionSnapshotUpdateKmsKeyRequestResource." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + if (message.snapshot != null && message.hasOwnProperty("snapshot")) + if (!$util.isString(message.snapshot)) + return "snapshot: string expected"; + return null; + }; + + /** + * Creates an UpdateKmsKeyRegionSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest} UpdateKmsKeyRegionSnapshotRequest + */ + UpdateKmsKeyRegionSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest) + return object; + var message = new $root.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.regionSnapshotUpdateKmsKeyRequestResource != null) { + if (typeof object.regionSnapshotUpdateKmsKeyRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest.regionSnapshotUpdateKmsKeyRequestResource: object expected"); + message.regionSnapshotUpdateKmsKeyRequestResource = $root.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest.fromObject(object.regionSnapshotUpdateKmsKeyRequestResource); + } + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.snapshot != null) + message.snapshot = String(object.snapshot); + return message; + }; + + /** + * Creates a plain object from an UpdateKmsKeyRegionSnapshotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest} message UpdateKmsKeyRegionSnapshotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateKmsKeyRegionSnapshotRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.regionSnapshotUpdateKmsKeyRequestResource = null; + object.snapshot = ""; + } + 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.regionSnapshotUpdateKmsKeyRequestResource != null && message.hasOwnProperty("regionSnapshotUpdateKmsKeyRequestResource")) + object.regionSnapshotUpdateKmsKeyRequestResource = $root.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest.toObject(message.regionSnapshotUpdateKmsKeyRequestResource, options); + if (message.snapshot != null && message.hasOwnProperty("snapshot")) + object.snapshot = message.snapshot; + return object; + }; + + /** + * Converts this UpdateKmsKeyRegionSnapshotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateKmsKeyRegionSnapshotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdateKmsKeyRegionSnapshotRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateKmsKeyRegionSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest"; + }; + + return UpdateKmsKeyRegionSnapshotRequest; + })(); + + v1.UpdateKmsKeySnapshotRequest = (function() { + + /** + * Properties of an UpdateKmsKeySnapshotRequest. + * @memberof google.cloud.compute.v1 + * @interface IUpdateKmsKeySnapshotRequest + * @property {string|null} [project] UpdateKmsKeySnapshotRequest project + * @property {string|null} [requestId] UpdateKmsKeySnapshotRequest requestId + * @property {string|null} [snapshot] UpdateKmsKeySnapshotRequest snapshot + * @property {google.cloud.compute.v1.ISnapshotUpdateKmsKeyRequest|null} [snapshotUpdateKmsKeyRequestResource] UpdateKmsKeySnapshotRequest snapshotUpdateKmsKeyRequestResource + */ + + /** + * Constructs a new UpdateKmsKeySnapshotRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an UpdateKmsKeySnapshotRequest. + * @implements IUpdateKmsKeySnapshotRequest + * @constructor + * @param {google.cloud.compute.v1.IUpdateKmsKeySnapshotRequest=} [properties] Properties to set + */ + function UpdateKmsKeySnapshotRequest(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]]; + } + + /** + * UpdateKmsKeySnapshotRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.UpdateKmsKeySnapshotRequest + * @instance + */ + UpdateKmsKeySnapshotRequest.prototype.project = ""; + + /** + * UpdateKmsKeySnapshotRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.UpdateKmsKeySnapshotRequest + * @instance + */ + UpdateKmsKeySnapshotRequest.prototype.requestId = null; + + /** + * UpdateKmsKeySnapshotRequest snapshot. + * @member {string} snapshot + * @memberof google.cloud.compute.v1.UpdateKmsKeySnapshotRequest + * @instance + */ + UpdateKmsKeySnapshotRequest.prototype.snapshot = ""; + + /** + * UpdateKmsKeySnapshotRequest snapshotUpdateKmsKeyRequestResource. + * @member {google.cloud.compute.v1.ISnapshotUpdateKmsKeyRequest|null|undefined} snapshotUpdateKmsKeyRequestResource + * @memberof google.cloud.compute.v1.UpdateKmsKeySnapshotRequest + * @instance + */ + UpdateKmsKeySnapshotRequest.prototype.snapshotUpdateKmsKeyRequestResource = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(UpdateKmsKeySnapshotRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new UpdateKmsKeySnapshotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.UpdateKmsKeySnapshotRequest + * @static + * @param {google.cloud.compute.v1.IUpdateKmsKeySnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.UpdateKmsKeySnapshotRequest} UpdateKmsKeySnapshotRequest instance + */ + UpdateKmsKeySnapshotRequest.create = function create(properties) { + return new UpdateKmsKeySnapshotRequest(properties); + }; + + /** + * Encodes the specified UpdateKmsKeySnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.UpdateKmsKeySnapshotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.UpdateKmsKeySnapshotRequest + * @static + * @param {google.cloud.compute.v1.IUpdateKmsKeySnapshotRequest} message UpdateKmsKeySnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateKmsKeySnapshotRequest.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.snapshotUpdateKmsKeyRequestResource != null && Object.hasOwnProperty.call(message, "snapshotUpdateKmsKeyRequestResource")) + $root.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest.encode(message.snapshotUpdateKmsKeyRequestResource, writer.uint32(/* id 103145991, wireType 2 =*/825167930).fork()).ldelim(); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.snapshot != null && Object.hasOwnProperty.call(message, "snapshot")) + writer.uint32(/* id 284874180, wireType 2 =*/2278993442).string(message.snapshot); + return writer; + }; + + /** + * Encodes the specified UpdateKmsKeySnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.UpdateKmsKeySnapshotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.UpdateKmsKeySnapshotRequest + * @static + * @param {google.cloud.compute.v1.IUpdateKmsKeySnapshotRequest} message UpdateKmsKeySnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateKmsKeySnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateKmsKeySnapshotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.UpdateKmsKeySnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.UpdateKmsKeySnapshotRequest} UpdateKmsKeySnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateKmsKeySnapshotRequest.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.v1.UpdateKmsKeySnapshotRequest(); + 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 284874180: { + message.snapshot = reader.string(); + break; + } + case 103145991: { + message.snapshotUpdateKmsKeyRequestResource = $root.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateKmsKeySnapshotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.UpdateKmsKeySnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.UpdateKmsKeySnapshotRequest} UpdateKmsKeySnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateKmsKeySnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateKmsKeySnapshotRequest message. + * @function verify + * @memberof google.cloud.compute.v1.UpdateKmsKeySnapshotRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateKmsKeySnapshotRequest.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.snapshot != null && message.hasOwnProperty("snapshot")) + if (!$util.isString(message.snapshot)) + return "snapshot: string expected"; + if (message.snapshotUpdateKmsKeyRequestResource != null && message.hasOwnProperty("snapshotUpdateKmsKeyRequestResource")) { + var error = $root.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest.verify(message.snapshotUpdateKmsKeyRequestResource); + if (error) + return "snapshotUpdateKmsKeyRequestResource." + error; + } + return null; + }; + + /** + * Creates an UpdateKmsKeySnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.UpdateKmsKeySnapshotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.UpdateKmsKeySnapshotRequest} UpdateKmsKeySnapshotRequest + */ + UpdateKmsKeySnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest) + return object; + var message = new $root.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.snapshot != null) + message.snapshot = String(object.snapshot); + if (object.snapshotUpdateKmsKeyRequestResource != null) { + if (typeof object.snapshotUpdateKmsKeyRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1.UpdateKmsKeySnapshotRequest.snapshotUpdateKmsKeyRequestResource: object expected"); + message.snapshotUpdateKmsKeyRequestResource = $root.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest.fromObject(object.snapshotUpdateKmsKeyRequestResource); + } + return message; + }; + + /** + * Creates a plain object from an UpdateKmsKeySnapshotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.UpdateKmsKeySnapshotRequest + * @static + * @param {google.cloud.compute.v1.UpdateKmsKeySnapshotRequest} message UpdateKmsKeySnapshotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateKmsKeySnapshotRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.snapshotUpdateKmsKeyRequestResource = null; + object.project = ""; + object.snapshot = ""; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.snapshotUpdateKmsKeyRequestResource != null && message.hasOwnProperty("snapshotUpdateKmsKeyRequestResource")) + object.snapshotUpdateKmsKeyRequestResource = $root.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest.toObject(message.snapshotUpdateKmsKeyRequestResource, options); + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.snapshot != null && message.hasOwnProperty("snapshot")) + object.snapshot = message.snapshot; + return object; + }; + + /** + * Converts this UpdateKmsKeySnapshotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.UpdateKmsKeySnapshotRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateKmsKeySnapshotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdateKmsKeySnapshotRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.UpdateKmsKeySnapshotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateKmsKeySnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.UpdateKmsKeySnapshotRequest"; + }; + + return UpdateKmsKeySnapshotRequest; + })(); + v1.UpdateLicenseRequest = (function() { /** @@ -616201,6 +640050,323 @@ return UpdateUrlMapRequest; })(); + v1.UpdateZoneVmExtensionPolicyRequest = (function() { + + /** + * Properties of an UpdateZoneVmExtensionPolicyRequest. + * @memberof google.cloud.compute.v1 + * @interface IUpdateZoneVmExtensionPolicyRequest + * @property {string|null} [project] UpdateZoneVmExtensionPolicyRequest project + * @property {string|null} [requestId] UpdateZoneVmExtensionPolicyRequest requestId + * @property {string|null} [vmExtensionPolicy] UpdateZoneVmExtensionPolicyRequest vmExtensionPolicy + * @property {google.cloud.compute.v1.IVmExtensionPolicy|null} [vmExtensionPolicyResource] UpdateZoneVmExtensionPolicyRequest vmExtensionPolicyResource + * @property {string|null} [zone] UpdateZoneVmExtensionPolicyRequest zone + */ + + /** + * Constructs a new UpdateZoneVmExtensionPolicyRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an UpdateZoneVmExtensionPolicyRequest. + * @implements IUpdateZoneVmExtensionPolicyRequest + * @constructor + * @param {google.cloud.compute.v1.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.v1.UpdateZoneVmExtensionPolicyRequest + * @instance + */ + UpdateZoneVmExtensionPolicyRequest.prototype.project = ""; + + /** + * UpdateZoneVmExtensionPolicyRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest + * @instance + */ + UpdateZoneVmExtensionPolicyRequest.prototype.requestId = null; + + /** + * UpdateZoneVmExtensionPolicyRequest vmExtensionPolicy. + * @member {string} vmExtensionPolicy + * @memberof google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest + * @instance + */ + UpdateZoneVmExtensionPolicyRequest.prototype.vmExtensionPolicy = ""; + + /** + * UpdateZoneVmExtensionPolicyRequest vmExtensionPolicyResource. + * @member {google.cloud.compute.v1.IVmExtensionPolicy|null|undefined} vmExtensionPolicyResource + * @memberof google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest + * @instance + */ + UpdateZoneVmExtensionPolicyRequest.prototype.vmExtensionPolicyResource = null; + + /** + * UpdateZoneVmExtensionPolicyRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.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.v1.UpdateZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1.IUpdateZoneVmExtensionPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest} UpdateZoneVmExtensionPolicyRequest instance + */ + UpdateZoneVmExtensionPolicyRequest.create = function create(properties) { + return new UpdateZoneVmExtensionPolicyRequest(properties); + }; + + /** + * Encodes the specified UpdateZoneVmExtensionPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.UpdateZoneVmExtensionPolicyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.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.v1.UpdateZoneVmExtensionPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.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.v1.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.v1.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.v1.UpdateZoneVmExtensionPolicyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest} UpdateZoneVmExtensionPolicyRequest + */ + UpdateZoneVmExtensionPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest) + return object; + var message = new $root.google.cloud.compute.v1.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.v1.UpdateZoneVmExtensionPolicyRequest.vmExtensionPolicyResource: object expected"); + message.vmExtensionPolicyResource = $root.google.cloud.compute.v1.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.v1.UpdateZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1.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.v1.VmExtensionPolicy.toObject(message.vmExtensionPolicyResource, options); + return object; + }; + + /** + * Converts this UpdateZoneVmExtensionPolicyRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.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.v1.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.v1.UpdateZoneVmExtensionPolicyRequest"; + }; + + return UpdateZoneVmExtensionPolicyRequest; + })(); + v1.UrlMap = (function() { /** @@ -623736,6 +647902,1915 @@ return VmEndpointNatMappingsList; })(); + v1.VmExtensionPolicy = (function() { + + /** + * Properties of a VmExtensionPolicy. + * @memberof google.cloud.compute.v1 + * @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.v1 + * @classdesc Represents a VmExtensionPolicy. + * @implements IVmExtensionPolicy + * @constructor + * @param {google.cloud.compute.v1.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.v1.VmExtensionPolicy + * @instance + */ + VmExtensionPolicy.prototype.creationTimestamp = null; + + /** + * VmExtensionPolicy description. + * @member {string|null|undefined} description + * @memberof google.cloud.compute.v1.VmExtensionPolicy + * @instance + */ + VmExtensionPolicy.prototype.description = null; + + /** + * VmExtensionPolicy extensionPolicies. + * @member {Object.} extensionPolicies + * @memberof google.cloud.compute.v1.VmExtensionPolicy + * @instance + */ + VmExtensionPolicy.prototype.extensionPolicies = $util.emptyObject; + + /** + * VmExtensionPolicy globalResourceLink. + * @member {string|null|undefined} globalResourceLink + * @memberof google.cloud.compute.v1.VmExtensionPolicy + * @instance + */ + VmExtensionPolicy.prototype.globalResourceLink = null; + + /** + * VmExtensionPolicy id. + * @member {number|Long|null|undefined} id + * @memberof google.cloud.compute.v1.VmExtensionPolicy + * @instance + */ + VmExtensionPolicy.prototype.id = null; + + /** + * VmExtensionPolicy instanceSelectors. + * @member {Array.} instanceSelectors + * @memberof google.cloud.compute.v1.VmExtensionPolicy + * @instance + */ + VmExtensionPolicy.prototype.instanceSelectors = $util.emptyArray; + + /** + * VmExtensionPolicy kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.VmExtensionPolicy + * @instance + */ + VmExtensionPolicy.prototype.kind = null; + + /** + * VmExtensionPolicy managedByGlobal. + * @member {boolean|null|undefined} managedByGlobal + * @memberof google.cloud.compute.v1.VmExtensionPolicy + * @instance + */ + VmExtensionPolicy.prototype.managedByGlobal = null; + + /** + * VmExtensionPolicy name. + * @member {string|null|undefined} name + * @memberof google.cloud.compute.v1.VmExtensionPolicy + * @instance + */ + VmExtensionPolicy.prototype.name = null; + + /** + * VmExtensionPolicy priority. + * @member {number|null|undefined} priority + * @memberof google.cloud.compute.v1.VmExtensionPolicy + * @instance + */ + VmExtensionPolicy.prototype.priority = null; + + /** + * VmExtensionPolicy selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.VmExtensionPolicy + * @instance + */ + VmExtensionPolicy.prototype.selfLink = null; + + /** + * VmExtensionPolicy selfLinkWithId. + * @member {string|null|undefined} selfLinkWithId + * @memberof google.cloud.compute.v1.VmExtensionPolicy + * @instance + */ + VmExtensionPolicy.prototype.selfLinkWithId = null; + + /** + * VmExtensionPolicy state. + * @member {string|null|undefined} state + * @memberof google.cloud.compute.v1.VmExtensionPolicy + * @instance + */ + VmExtensionPolicy.prototype.state = null; + + /** + * VmExtensionPolicy updateTimestamp. + * @member {string|null|undefined} updateTimestamp + * @memberof google.cloud.compute.v1.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.v1.VmExtensionPolicy + * @static + * @param {google.cloud.compute.v1.IVmExtensionPolicy=} [properties] Properties to set + * @returns {google.cloud.compute.v1.VmExtensionPolicy} VmExtensionPolicy instance + */ + VmExtensionPolicy.create = function create(properties) { + return new VmExtensionPolicy(properties); + }; + + /** + * Encodes the specified VmExtensionPolicy message. Does not implicitly {@link google.cloud.compute.v1.VmExtensionPolicy.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.VmExtensionPolicy + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.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.v1.VmExtensionPolicy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.VmExtensionPolicy + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.VmExtensionPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.VmExtensionPolicy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.VmExtensionPolicy} VmExtensionPolicy + */ + VmExtensionPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.VmExtensionPolicy) + return object; + var message = new $root.google.cloud.compute.v1.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.v1.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.v1.VmExtensionPolicy.extensionPolicies: object expected"); + message.extensionPolicies[keys[i]] = $root.google.cloud.compute.v1.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.v1.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.v1.VmExtensionPolicy.instanceSelectors: object expected"); + message.instanceSelectors[i] = $root.google.cloud.compute.v1.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.v1.VmExtensionPolicy + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.VmExtensionPolicyInstanceSelector.toObject(message.instanceSelectors[j], options); + } + return object; + }; + + /** + * Converts this VmExtensionPolicy to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.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.v1.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.v1.VmExtensionPolicy"; + }; + + /** + * State enum. + * @name google.cloud.compute.v1.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; + })(); + + v1.VmExtensionPolicyExtensionPolicy = (function() { + + /** + * Properties of a VmExtensionPolicyExtensionPolicy. + * @memberof google.cloud.compute.v1 + * @interface IVmExtensionPolicyExtensionPolicy + * @property {string|null} [pinnedVersion] VmExtensionPolicyExtensionPolicy pinnedVersion + * @property {string|null} [stringConfig] VmExtensionPolicyExtensionPolicy stringConfig + */ + + /** + * Constructs a new VmExtensionPolicyExtensionPolicy. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a VmExtensionPolicyExtensionPolicy. + * @implements IVmExtensionPolicyExtensionPolicy + * @constructor + * @param {google.cloud.compute.v1.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.v1.VmExtensionPolicyExtensionPolicy + * @instance + */ + VmExtensionPolicyExtensionPolicy.prototype.pinnedVersion = null; + + /** + * VmExtensionPolicyExtensionPolicy stringConfig. + * @member {string|null|undefined} stringConfig + * @memberof google.cloud.compute.v1.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.v1.VmExtensionPolicyExtensionPolicy + * @static + * @param {google.cloud.compute.v1.IVmExtensionPolicyExtensionPolicy=} [properties] Properties to set + * @returns {google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy} VmExtensionPolicyExtensionPolicy instance + */ + VmExtensionPolicyExtensionPolicy.create = function create(properties) { + return new VmExtensionPolicyExtensionPolicy(properties); + }; + + /** + * Encodes the specified VmExtensionPolicyExtensionPolicy message. Does not implicitly {@link google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy + * @static + * @param {google.cloud.compute.v1.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.v1.VmExtensionPolicyExtensionPolicy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.VmExtensionPolicyExtensionPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.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.v1.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.v1.VmExtensionPolicyExtensionPolicy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy} VmExtensionPolicyExtensionPolicy + */ + VmExtensionPolicyExtensionPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy) + return object; + var message = new $root.google.cloud.compute.v1.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.v1.VmExtensionPolicyExtensionPolicy + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.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.v1.VmExtensionPolicyExtensionPolicy"; + }; + + return VmExtensionPolicyExtensionPolicy; + })(); + + v1.VmExtensionPolicyInstanceSelector = (function() { + + /** + * Properties of a VmExtensionPolicyInstanceSelector. + * @memberof google.cloud.compute.v1 + * @interface IVmExtensionPolicyInstanceSelector + * @property {google.cloud.compute.v1.IVmExtensionPolicyLabelSelector|null} [labelSelector] VmExtensionPolicyInstanceSelector labelSelector + */ + + /** + * Constructs a new VmExtensionPolicyInstanceSelector. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a VmExtensionPolicyInstanceSelector. + * @implements IVmExtensionPolicyInstanceSelector + * @constructor + * @param {google.cloud.compute.v1.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.v1.IVmExtensionPolicyLabelSelector|null|undefined} labelSelector + * @memberof google.cloud.compute.v1.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.v1.VmExtensionPolicyInstanceSelector + * @static + * @param {google.cloud.compute.v1.IVmExtensionPolicyInstanceSelector=} [properties] Properties to set + * @returns {google.cloud.compute.v1.VmExtensionPolicyInstanceSelector} VmExtensionPolicyInstanceSelector instance + */ + VmExtensionPolicyInstanceSelector.create = function create(properties) { + return new VmExtensionPolicyInstanceSelector(properties); + }; + + /** + * Encodes the specified VmExtensionPolicyInstanceSelector message. Does not implicitly {@link google.cloud.compute.v1.VmExtensionPolicyInstanceSelector.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.VmExtensionPolicyInstanceSelector + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.VmExtensionPolicyInstanceSelector.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.VmExtensionPolicyInstanceSelector + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.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.v1.VmExtensionPolicyInstanceSelector(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 349780170: { + message.labelSelector = $root.google.cloud.compute.v1.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.v1.VmExtensionPolicyInstanceSelector + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.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.v1.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.v1.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.v1.VmExtensionPolicyInstanceSelector + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.VmExtensionPolicyInstanceSelector} VmExtensionPolicyInstanceSelector + */ + VmExtensionPolicyInstanceSelector.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector) + return object; + var message = new $root.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector(); + if (object.labelSelector != null) { + if (typeof object.labelSelector !== "object") + throw TypeError(".google.cloud.compute.v1.VmExtensionPolicyInstanceSelector.labelSelector: object expected"); + message.labelSelector = $root.google.cloud.compute.v1.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.v1.VmExtensionPolicyInstanceSelector + * @static + * @param {google.cloud.compute.v1.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.v1.VmExtensionPolicyLabelSelector.toObject(message.labelSelector, options); + if (options.oneofs) + object._labelSelector = "labelSelector"; + } + return object; + }; + + /** + * Converts this VmExtensionPolicyInstanceSelector to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.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.v1.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.v1.VmExtensionPolicyInstanceSelector"; + }; + + return VmExtensionPolicyInstanceSelector; + })(); + + v1.VmExtensionPolicyLabelSelector = (function() { + + /** + * Properties of a VmExtensionPolicyLabelSelector. + * @memberof google.cloud.compute.v1 + * @interface IVmExtensionPolicyLabelSelector + * @property {Object.|null} [inclusionLabels] VmExtensionPolicyLabelSelector inclusionLabels + */ + + /** + * Constructs a new VmExtensionPolicyLabelSelector. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a VmExtensionPolicyLabelSelector. + * @implements IVmExtensionPolicyLabelSelector + * @constructor + * @param {google.cloud.compute.v1.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.v1.VmExtensionPolicyLabelSelector + * @instance + */ + VmExtensionPolicyLabelSelector.prototype.inclusionLabels = $util.emptyObject; + + /** + * Creates a new VmExtensionPolicyLabelSelector instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.VmExtensionPolicyLabelSelector + * @static + * @param {google.cloud.compute.v1.IVmExtensionPolicyLabelSelector=} [properties] Properties to set + * @returns {google.cloud.compute.v1.VmExtensionPolicyLabelSelector} VmExtensionPolicyLabelSelector instance + */ + VmExtensionPolicyLabelSelector.create = function create(properties) { + return new VmExtensionPolicyLabelSelector(properties); + }; + + /** + * Encodes the specified VmExtensionPolicyLabelSelector message. Does not implicitly {@link google.cloud.compute.v1.VmExtensionPolicyLabelSelector.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.VmExtensionPolicyLabelSelector + * @static + * @param {google.cloud.compute.v1.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.v1.VmExtensionPolicyLabelSelector.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.VmExtensionPolicyLabelSelector + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.VmExtensionPolicyLabelSelector + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.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.v1.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.v1.VmExtensionPolicyLabelSelector + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.VmExtensionPolicyLabelSelector} VmExtensionPolicyLabelSelector + */ + VmExtensionPolicyLabelSelector.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.VmExtensionPolicyLabelSelector) + return object; + var message = new $root.google.cloud.compute.v1.VmExtensionPolicyLabelSelector(); + if (object.inclusionLabels) { + if (typeof object.inclusionLabels !== "object") + throw TypeError(".google.cloud.compute.v1.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.v1.VmExtensionPolicyLabelSelector + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.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.v1.VmExtensionPolicyLabelSelector"; + }; + + return VmExtensionPolicyLabelSelector; + })(); + + v1.VmExtensionPolicyList = (function() { + + /** + * Properties of a VmExtensionPolicyList. + * @memberof google.cloud.compute.v1 + * @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.v1.IWarning|null} [warning] VmExtensionPolicyList warning + */ + + /** + * Constructs a new VmExtensionPolicyList. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a VmExtensionPolicyList. + * @implements IVmExtensionPolicyList + * @constructor + * @param {google.cloud.compute.v1.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.v1.VmExtensionPolicyList + * @instance + */ + VmExtensionPolicyList.prototype.etag = null; + + /** + * VmExtensionPolicyList id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1.VmExtensionPolicyList + * @instance + */ + VmExtensionPolicyList.prototype.id = null; + + /** + * VmExtensionPolicyList items. + * @member {Array.} items + * @memberof google.cloud.compute.v1.VmExtensionPolicyList + * @instance + */ + VmExtensionPolicyList.prototype.items = $util.emptyArray; + + /** + * VmExtensionPolicyList kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.VmExtensionPolicyList + * @instance + */ + VmExtensionPolicyList.prototype.kind = null; + + /** + * VmExtensionPolicyList nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1.VmExtensionPolicyList + * @instance + */ + VmExtensionPolicyList.prototype.nextPageToken = null; + + /** + * VmExtensionPolicyList selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.VmExtensionPolicyList + * @instance + */ + VmExtensionPolicyList.prototype.selfLink = null; + + /** + * VmExtensionPolicyList unreachables. + * @member {Array.} unreachables + * @memberof google.cloud.compute.v1.VmExtensionPolicyList + * @instance + */ + VmExtensionPolicyList.prototype.unreachables = $util.emptyArray; + + /** + * VmExtensionPolicyList warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.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.v1.VmExtensionPolicyList + * @static + * @param {google.cloud.compute.v1.IVmExtensionPolicyList=} [properties] Properties to set + * @returns {google.cloud.compute.v1.VmExtensionPolicyList} VmExtensionPolicyList instance + */ + VmExtensionPolicyList.create = function create(properties) { + return new VmExtensionPolicyList(properties); + }; + + /** + * Encodes the specified VmExtensionPolicyList message. Does not implicitly {@link google.cloud.compute.v1.VmExtensionPolicyList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.VmExtensionPolicyList + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.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.v1.VmExtensionPolicyList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.VmExtensionPolicyList + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.VmExtensionPolicyList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.VmExtensionPolicyList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.VmExtensionPolicyList} VmExtensionPolicyList + */ + VmExtensionPolicyList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.VmExtensionPolicyList) + return object; + var message = new $root.google.cloud.compute.v1.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.v1.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.v1.VmExtensionPolicyList.items: object expected"); + message.items[i] = $root.google.cloud.compute.v1.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.v1.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.v1.VmExtensionPolicyList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.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.v1.VmExtensionPolicyList + * @static + * @param {google.cloud.compute.v1.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.v1.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.v1.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.v1.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.v1.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.v1.VmExtensionPolicyList"; + }; + + return VmExtensionPolicyList; + })(); + v1.VpnGateway = (function() { /** @@ -640468,6 +666543,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1.BackendBuckets|aggregatedList}. + * @memberof google.cloud.compute.v1.BackendBuckets + * @typedef AggregatedListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.BackendBucketAggregatedList} [response] BackendBucketAggregatedList + */ + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1.BackendBuckets + * @instance + * @param {google.cloud.compute.v1.IAggregatedListBackendBucketsRequest} request AggregatedListBackendBucketsRequest message or plain object + * @param {google.cloud.compute.v1.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.v1.AggregatedListBackendBucketsRequest, $root.google.cloud.compute.v1.BackendBucketAggregatedList, request, callback); + }, "name", { value: "AggregatedList" }); + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1.BackendBuckets + * @instance + * @param {google.cloud.compute.v1.IAggregatedListBackendBucketsRequest} request AggregatedListBackendBucketsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1.BackendBuckets|delete_}. * @memberof google.cloud.compute.v1.BackendBuckets @@ -640666,6 +666774,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1.BackendBuckets|listUsable}. + * @memberof google.cloud.compute.v1.BackendBuckets + * @typedef ListUsableCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.BackendBucketListUsable} [response] BackendBucketListUsable + */ + + /** + * Calls ListUsable. + * @function listUsable + * @memberof google.cloud.compute.v1.BackendBuckets + * @instance + * @param {google.cloud.compute.v1.IListUsableBackendBucketsRequest} request ListUsableBackendBucketsRequest message or plain object + * @param {google.cloud.compute.v1.BackendBuckets.ListUsableCallback} callback Node-style callback called with the error, if any, and BackendBucketListUsable + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(BackendBuckets.prototype.listUsable = function listUsable(request, callback) { + return this.rpcCall(listUsable, $root.google.cloud.compute.v1.ListUsableBackendBucketsRequest, $root.google.cloud.compute.v1.BackendBucketListUsable, request, callback); + }, "name", { value: "ListUsable" }); + + /** + * Calls ListUsable. + * @function listUsable + * @memberof google.cloud.compute.v1.BackendBuckets + * @instance + * @param {google.cloud.compute.v1.IListUsableBackendBucketsRequest} request ListUsableBackendBucketsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1.BackendBuckets|patch}. * @memberof google.cloud.compute.v1.BackendBuckets @@ -642423,6 +668564,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1.Disks|updateKmsKey}. + * @memberof google.cloud.compute.v1.Disks + * @typedef UpdateKmsKeyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls UpdateKmsKey. + * @function updateKmsKey + * @memberof google.cloud.compute.v1.Disks + * @instance + * @param {google.cloud.compute.v1.IUpdateKmsKeyDiskRequest} request UpdateKmsKeyDiskRequest message or plain object + * @param {google.cloud.compute.v1.Disks.UpdateKmsKeyCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Disks.prototype.updateKmsKey = function updateKmsKey(request, callback) { + return this.rpcCall(updateKmsKey, $root.google.cloud.compute.v1.UpdateKmsKeyDiskRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "UpdateKmsKey" }); + + /** + * Calls UpdateKmsKey. + * @function updateKmsKey + * @memberof google.cloud.compute.v1.Disks + * @instance + * @param {google.cloud.compute.v1.IUpdateKmsKeyDiskRequest} request UpdateKmsKeyDiskRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return Disks; })(); @@ -649726,6 +675900,272 @@ return Instances; })(); + v1.InstantSnapshotGroups = (function() { + + /** + * Constructs a new InstantSnapshotGroups service. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InstantSnapshotGroups + * @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 InstantSnapshotGroups(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (InstantSnapshotGroups.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = InstantSnapshotGroups; + + /** + * Creates new InstantSnapshotGroups service using the specified rpc implementation. + * @function create + * @memberof google.cloud.compute.v1.InstantSnapshotGroups + * @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 {InstantSnapshotGroups} RPC service. Useful where requests and/or responses are streamed. + */ + InstantSnapshotGroups.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.compute.v1.InstantSnapshotGroups|delete_}. + * @memberof google.cloud.compute.v1.InstantSnapshotGroups + * @typedef DeleteCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1.InstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1.IDeleteInstantSnapshotGroupRequest} request DeleteInstantSnapshotGroupRequest message or plain object + * @param {google.cloud.compute.v1.InstantSnapshotGroups.DeleteCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(InstantSnapshotGroups.prototype["delete"] = function delete_(request, callback) { + return this.rpcCall(delete_, $root.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Delete" }); + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1.InstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1.IDeleteInstantSnapshotGroupRequest} request DeleteInstantSnapshotGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.InstantSnapshotGroups|get}. + * @memberof google.cloud.compute.v1.InstantSnapshotGroups + * @typedef GetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.InstantSnapshotGroup} [response] InstantSnapshotGroup + */ + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.InstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1.IGetInstantSnapshotGroupRequest} request GetInstantSnapshotGroupRequest message or plain object + * @param {google.cloud.compute.v1.InstantSnapshotGroups.GetCallback} callback Node-style callback called with the error, if any, and InstantSnapshotGroup + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(InstantSnapshotGroups.prototype.get = function get(request, callback) { + return this.rpcCall(get, $root.google.cloud.compute.v1.GetInstantSnapshotGroupRequest, $root.google.cloud.compute.v1.InstantSnapshotGroup, request, callback); + }, "name", { value: "Get" }); + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.InstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1.IGetInstantSnapshotGroupRequest} request GetInstantSnapshotGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.InstantSnapshotGroups|getIamPolicy}. + * @memberof google.cloud.compute.v1.InstantSnapshotGroups + * @typedef GetIamPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Policy} [response] Policy + */ + + /** + * Calls GetIamPolicy. + * @function getIamPolicy + * @memberof google.cloud.compute.v1.InstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1.IGetIamPolicyInstantSnapshotGroupRequest} request GetIamPolicyInstantSnapshotGroupRequest message or plain object + * @param {google.cloud.compute.v1.InstantSnapshotGroups.GetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(InstantSnapshotGroups.prototype.getIamPolicy = function getIamPolicy(request, callback) { + return this.rpcCall(getIamPolicy, $root.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest, $root.google.cloud.compute.v1.Policy, request, callback); + }, "name", { value: "GetIamPolicy" }); + + /** + * Calls GetIamPolicy. + * @function getIamPolicy + * @memberof google.cloud.compute.v1.InstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1.IGetIamPolicyInstantSnapshotGroupRequest} request GetIamPolicyInstantSnapshotGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.InstantSnapshotGroups|insert}. + * @memberof google.cloud.compute.v1.InstantSnapshotGroups + * @typedef InsertCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1.InstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1.IInsertInstantSnapshotGroupRequest} request InsertInstantSnapshotGroupRequest message or plain object + * @param {google.cloud.compute.v1.InstantSnapshotGroups.InsertCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(InstantSnapshotGroups.prototype.insert = function insert(request, callback) { + return this.rpcCall(insert, $root.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Insert" }); + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1.InstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1.IInsertInstantSnapshotGroupRequest} request InsertInstantSnapshotGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.InstantSnapshotGroups|list}. + * @memberof google.cloud.compute.v1.InstantSnapshotGroups + * @typedef ListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.ListInstantSnapshotGroups} [response] ListInstantSnapshotGroups + */ + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.InstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1.IListInstantSnapshotGroupsRequest} request ListInstantSnapshotGroupsRequest message or plain object + * @param {google.cloud.compute.v1.InstantSnapshotGroups.ListCallback} callback Node-style callback called with the error, if any, and ListInstantSnapshotGroups + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(InstantSnapshotGroups.prototype.list = function list(request, callback) { + return this.rpcCall(list, $root.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest, $root.google.cloud.compute.v1.ListInstantSnapshotGroups, request, callback); + }, "name", { value: "List" }); + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.InstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1.IListInstantSnapshotGroupsRequest} request ListInstantSnapshotGroupsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.InstantSnapshotGroups|setIamPolicy}. + * @memberof google.cloud.compute.v1.InstantSnapshotGroups + * @typedef SetIamPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Policy} [response] Policy + */ + + /** + * Calls SetIamPolicy. + * @function setIamPolicy + * @memberof google.cloud.compute.v1.InstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1.ISetIamPolicyInstantSnapshotGroupRequest} request SetIamPolicyInstantSnapshotGroupRequest message or plain object + * @param {google.cloud.compute.v1.InstantSnapshotGroups.SetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(InstantSnapshotGroups.prototype.setIamPolicy = function setIamPolicy(request, callback) { + return this.rpcCall(setIamPolicy, $root.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest, $root.google.cloud.compute.v1.Policy, request, callback); + }, "name", { value: "SetIamPolicy" }); + + /** + * Calls SetIamPolicy. + * @function setIamPolicy + * @memberof google.cloud.compute.v1.InstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1.ISetIamPolicyInstantSnapshotGroupRequest} request SetIamPolicyInstantSnapshotGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.InstantSnapshotGroups|testIamPermissions}. + * @memberof google.cloud.compute.v1.InstantSnapshotGroups + * @typedef TestIamPermissionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.TestPermissionsResponse} [response] TestPermissionsResponse + */ + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1.InstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotGroupRequest} request TestIamPermissionsInstantSnapshotGroupRequest message or plain object + * @param {google.cloud.compute.v1.InstantSnapshotGroups.TestIamPermissionsCallback} callback Node-style callback called with the error, if any, and TestPermissionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(InstantSnapshotGroups.prototype.testIamPermissions = function testIamPermissions(request, callback) { + return this.rpcCall(testIamPermissions, $root.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest, $root.google.cloud.compute.v1.TestPermissionsResponse, request, callback); + }, "name", { value: "TestIamPermissions" }); + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1.InstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotGroupRequest} request TestIamPermissionsInstantSnapshotGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return InstantSnapshotGroups; + })(); + v1.InstantSnapshots = (function() { /** @@ -657733,6 +684173,338 @@ return RegionAutoscalers; })(); + v1.RegionBackendBuckets = (function() { + + /** + * Constructs a new RegionBackendBuckets service. + * @memberof google.cloud.compute.v1 + * @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.v1.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.v1.RegionBackendBuckets|delete_}. + * @memberof google.cloud.compute.v1.RegionBackendBuckets + * @typedef DeleteCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1.IDeleteRegionBackendBucketRequest} request DeleteRegionBackendBucketRequest message or plain object + * @param {google.cloud.compute.v1.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.v1.DeleteRegionBackendBucketRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Delete" }); + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1.IDeleteRegionBackendBucketRequest} request DeleteRegionBackendBucketRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionBackendBuckets|get}. + * @memberof google.cloud.compute.v1.RegionBackendBuckets + * @typedef GetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.BackendBucket} [response] BackendBucket + */ + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1.IGetRegionBackendBucketRequest} request GetRegionBackendBucketRequest message or plain object + * @param {google.cloud.compute.v1.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.v1.GetRegionBackendBucketRequest, $root.google.cloud.compute.v1.BackendBucket, request, callback); + }, "name", { value: "Get" }); + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1.IGetRegionBackendBucketRequest} request GetRegionBackendBucketRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionBackendBuckets|getIamPolicy}. + * @memberof google.cloud.compute.v1.RegionBackendBuckets + * @typedef GetIamPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Policy} [response] Policy + */ + + /** + * Calls GetIamPolicy. + * @function getIamPolicy + * @memberof google.cloud.compute.v1.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1.IGetIamPolicyRegionBackendBucketRequest} request GetIamPolicyRegionBackendBucketRequest message or plain object + * @param {google.cloud.compute.v1.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.v1.GetIamPolicyRegionBackendBucketRequest, $root.google.cloud.compute.v1.Policy, request, callback); + }, "name", { value: "GetIamPolicy" }); + + /** + * Calls GetIamPolicy. + * @function getIamPolicy + * @memberof google.cloud.compute.v1.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1.IGetIamPolicyRegionBackendBucketRequest} request GetIamPolicyRegionBackendBucketRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionBackendBuckets|insert}. + * @memberof google.cloud.compute.v1.RegionBackendBuckets + * @typedef InsertCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1.IInsertRegionBackendBucketRequest} request InsertRegionBackendBucketRequest message or plain object + * @param {google.cloud.compute.v1.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.v1.InsertRegionBackendBucketRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Insert" }); + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1.IInsertRegionBackendBucketRequest} request InsertRegionBackendBucketRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionBackendBuckets|list}. + * @memberof google.cloud.compute.v1.RegionBackendBuckets + * @typedef ListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.BackendBucketList} [response] BackendBucketList + */ + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1.IListRegionBackendBucketsRequest} request ListRegionBackendBucketsRequest message or plain object + * @param {google.cloud.compute.v1.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.v1.ListRegionBackendBucketsRequest, $root.google.cloud.compute.v1.BackendBucketList, request, callback); + }, "name", { value: "List" }); + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1.IListRegionBackendBucketsRequest} request ListRegionBackendBucketsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionBackendBuckets|listUsable}. + * @memberof google.cloud.compute.v1.RegionBackendBuckets + * @typedef ListUsableCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.BackendBucketListUsable} [response] BackendBucketListUsable + */ + + /** + * Calls ListUsable. + * @function listUsable + * @memberof google.cloud.compute.v1.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1.IListUsableRegionBackendBucketsRequest} request ListUsableRegionBackendBucketsRequest message or plain object + * @param {google.cloud.compute.v1.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.v1.ListUsableRegionBackendBucketsRequest, $root.google.cloud.compute.v1.BackendBucketListUsable, request, callback); + }, "name", { value: "ListUsable" }); + + /** + * Calls ListUsable. + * @function listUsable + * @memberof google.cloud.compute.v1.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1.IListUsableRegionBackendBucketsRequest} request ListUsableRegionBackendBucketsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionBackendBuckets|patch}. + * @memberof google.cloud.compute.v1.RegionBackendBuckets + * @typedef PatchCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Patch. + * @function patch + * @memberof google.cloud.compute.v1.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1.IPatchRegionBackendBucketRequest} request PatchRegionBackendBucketRequest message or plain object + * @param {google.cloud.compute.v1.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.v1.PatchRegionBackendBucketRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Patch" }); + + /** + * Calls Patch. + * @function patch + * @memberof google.cloud.compute.v1.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1.IPatchRegionBackendBucketRequest} request PatchRegionBackendBucketRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionBackendBuckets|setIamPolicy}. + * @memberof google.cloud.compute.v1.RegionBackendBuckets + * @typedef SetIamPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Policy} [response] Policy + */ + + /** + * Calls SetIamPolicy. + * @function setIamPolicy + * @memberof google.cloud.compute.v1.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1.ISetIamPolicyRegionBackendBucketRequest} request SetIamPolicyRegionBackendBucketRequest message or plain object + * @param {google.cloud.compute.v1.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.v1.SetIamPolicyRegionBackendBucketRequest, $root.google.cloud.compute.v1.Policy, request, callback); + }, "name", { value: "SetIamPolicy" }); + + /** + * Calls SetIamPolicy. + * @function setIamPolicy + * @memberof google.cloud.compute.v1.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1.ISetIamPolicyRegionBackendBucketRequest} request SetIamPolicyRegionBackendBucketRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionBackendBuckets|testIamPermissions}. + * @memberof google.cloud.compute.v1.RegionBackendBuckets + * @typedef TestIamPermissionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.TestPermissionsResponse} [response] TestPermissionsResponse + */ + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionBackendBucketRequest} request TestIamPermissionsRegionBackendBucketRequest message or plain object + * @param {google.cloud.compute.v1.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.v1.TestIamPermissionsRegionBackendBucketRequest, $root.google.cloud.compute.v1.TestPermissionsResponse, request, callback); + }, "name", { value: "TestIamPermissions" }); + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionBackendBucketRequest} request TestIamPermissionsRegionBackendBucketRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return RegionBackendBuckets; + })(); + v1.RegionBackendServices = (function() { /** @@ -658495,6 +685267,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1.RegionCompositeHealthChecks|getHealth}. + * @memberof google.cloud.compute.v1.RegionCompositeHealthChecks + * @typedef GetHealthCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.CompositeHealthCheckHealth} [response] CompositeHealthCheckHealth + */ + + /** + * Calls GetHealth. + * @function getHealth + * @memberof google.cloud.compute.v1.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1.IGetHealthRegionCompositeHealthCheckRequest} request GetHealthRegionCompositeHealthCheckRequest message or plain object + * @param {google.cloud.compute.v1.RegionCompositeHealthChecks.GetHealthCallback} callback Node-style callback called with the error, if any, and CompositeHealthCheckHealth + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionCompositeHealthChecks.prototype.getHealth = function getHealth(request, callback) { + return this.rpcCall(getHealth, $root.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest, $root.google.cloud.compute.v1.CompositeHealthCheckHealth, request, callback); + }, "name", { value: "GetHealth" }); + + /** + * Calls GetHealth. + * @function getHealth + * @memberof google.cloud.compute.v1.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1.IGetHealthRegionCompositeHealthCheckRequest} request GetHealthRegionCompositeHealthCheckRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1.RegionCompositeHealthChecks|insert}. * @memberof google.cloud.compute.v1.RegionCompositeHealthChecks @@ -659324,6 +686129,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1.RegionDisks|updateKmsKey}. + * @memberof google.cloud.compute.v1.RegionDisks + * @typedef UpdateKmsKeyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls UpdateKmsKey. + * @function updateKmsKey + * @memberof google.cloud.compute.v1.RegionDisks + * @instance + * @param {google.cloud.compute.v1.IUpdateKmsKeyRegionDiskRequest} request UpdateKmsKeyRegionDiskRequest message or plain object + * @param {google.cloud.compute.v1.RegionDisks.UpdateKmsKeyCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionDisks.prototype.updateKmsKey = function updateKmsKey(request, callback) { + return this.rpcCall(updateKmsKey, $root.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "UpdateKmsKey" }); + + /** + * Calls UpdateKmsKey. + * @function updateKmsKey + * @memberof google.cloud.compute.v1.RegionDisks + * @instance + * @param {google.cloud.compute.v1.IUpdateKmsKeyRegionDiskRequest} request UpdateKmsKeyRegionDiskRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return RegionDisks; })(); @@ -660256,6 +687094,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1.RegionHealthSources|getHealth}. + * @memberof google.cloud.compute.v1.RegionHealthSources + * @typedef GetHealthCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.HealthSourceHealth} [response] HealthSourceHealth + */ + + /** + * Calls GetHealth. + * @function getHealth + * @memberof google.cloud.compute.v1.RegionHealthSources + * @instance + * @param {google.cloud.compute.v1.IGetHealthRegionHealthSourceRequest} request GetHealthRegionHealthSourceRequest message or plain object + * @param {google.cloud.compute.v1.RegionHealthSources.GetHealthCallback} callback Node-style callback called with the error, if any, and HealthSourceHealth + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionHealthSources.prototype.getHealth = function getHealth(request, callback) { + return this.rpcCall(getHealth, $root.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest, $root.google.cloud.compute.v1.HealthSourceHealth, request, callback); + }, "name", { value: "GetHealth" }); + + /** + * Calls GetHealth. + * @function getHealth + * @memberof google.cloud.compute.v1.RegionHealthSources + * @instance + * @param {google.cloud.compute.v1.IGetHealthRegionHealthSourceRequest} request GetHealthRegionHealthSourceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1.RegionHealthSources|insert}. * @memberof google.cloud.compute.v1.RegionHealthSources @@ -660391,6 +687262,206 @@ return RegionHealthSources; })(); + v1.RegionInstanceGroupManagerResizeRequests = (function() { + + /** + * Constructs a new RegionInstanceGroupManagerResizeRequests service. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a RegionInstanceGroupManagerResizeRequests + * @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 RegionInstanceGroupManagerResizeRequests(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (RegionInstanceGroupManagerResizeRequests.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = RegionInstanceGroupManagerResizeRequests; + + /** + * Creates new RegionInstanceGroupManagerResizeRequests service using the specified rpc implementation. + * @function create + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests + * @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 {RegionInstanceGroupManagerResizeRequests} RPC service. Useful where requests and/or responses are streamed. + */ + RegionInstanceGroupManagerResizeRequests.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests|cancel}. + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests + * @typedef CancelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Cancel. + * @function cancel + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests + * @instance + * @param {google.cloud.compute.v1.ICancelRegionInstanceGroupManagerResizeRequestRequest} request CancelRegionInstanceGroupManagerResizeRequestRequest message or plain object + * @param {google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests.CancelCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionInstanceGroupManagerResizeRequests.prototype.cancel = function cancel(request, callback) { + return this.rpcCall(cancel, $root.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Cancel" }); + + /** + * Calls Cancel. + * @function cancel + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests + * @instance + * @param {google.cloud.compute.v1.ICancelRegionInstanceGroupManagerResizeRequestRequest} request CancelRegionInstanceGroupManagerResizeRequestRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests|delete_}. + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests + * @typedef DeleteCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests + * @instance + * @param {google.cloud.compute.v1.IDeleteRegionInstanceGroupManagerResizeRequestRequest} request DeleteRegionInstanceGroupManagerResizeRequestRequest message or plain object + * @param {google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests.DeleteCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionInstanceGroupManagerResizeRequests.prototype["delete"] = function delete_(request, callback) { + return this.rpcCall(delete_, $root.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Delete" }); + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests + * @instance + * @param {google.cloud.compute.v1.IDeleteRegionInstanceGroupManagerResizeRequestRequest} request DeleteRegionInstanceGroupManagerResizeRequestRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests|get}. + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests + * @typedef GetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.InstanceGroupManagerResizeRequest} [response] InstanceGroupManagerResizeRequest + */ + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests + * @instance + * @param {google.cloud.compute.v1.IGetRegionInstanceGroupManagerResizeRequestRequest} request GetRegionInstanceGroupManagerResizeRequestRequest message or plain object + * @param {google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests.GetCallback} callback Node-style callback called with the error, if any, and InstanceGroupManagerResizeRequest + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionInstanceGroupManagerResizeRequests.prototype.get = function get(request, callback) { + return this.rpcCall(get, $root.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest, $root.google.cloud.compute.v1.InstanceGroupManagerResizeRequest, request, callback); + }, "name", { value: "Get" }); + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests + * @instance + * @param {google.cloud.compute.v1.IGetRegionInstanceGroupManagerResizeRequestRequest} request GetRegionInstanceGroupManagerResizeRequestRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests|insert}. + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests + * @typedef InsertCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests + * @instance + * @param {google.cloud.compute.v1.IInsertRegionInstanceGroupManagerResizeRequestRequest} request InsertRegionInstanceGroupManagerResizeRequestRequest message or plain object + * @param {google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests.InsertCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionInstanceGroupManagerResizeRequests.prototype.insert = function insert(request, callback) { + return this.rpcCall(insert, $root.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Insert" }); + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests + * @instance + * @param {google.cloud.compute.v1.IInsertRegionInstanceGroupManagerResizeRequestRequest} request InsertRegionInstanceGroupManagerResizeRequestRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests|list}. + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests + * @typedef ListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse} [response] RegionInstanceGroupManagerResizeRequestsListResponse + */ + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests + * @instance + * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagerResizeRequestsRequest} request ListRegionInstanceGroupManagerResizeRequestsRequest message or plain object + * @param {google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests.ListCallback} callback Node-style callback called with the error, if any, and RegionInstanceGroupManagerResizeRequestsListResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionInstanceGroupManagerResizeRequests.prototype.list = function list(request, callback) { + return this.rpcCall(list, $root.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest, $root.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse, request, callback); + }, "name", { value: "List" }); + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests + * @instance + * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagerResizeRequestsRequest} request ListRegionInstanceGroupManagerResizeRequestsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return RegionInstanceGroupManagerResizeRequests; + })(); + v1.RegionInstanceGroupManagers = (function() { /** @@ -661620,6 +688691,272 @@ return RegionInstances; })(); + v1.RegionInstantSnapshotGroups = (function() { + + /** + * Constructs a new RegionInstantSnapshotGroups service. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a RegionInstantSnapshotGroups + * @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 RegionInstantSnapshotGroups(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (RegionInstantSnapshotGroups.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = RegionInstantSnapshotGroups; + + /** + * Creates new RegionInstantSnapshotGroups service using the specified rpc implementation. + * @function create + * @memberof google.cloud.compute.v1.RegionInstantSnapshotGroups + * @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 {RegionInstantSnapshotGroups} RPC service. Useful where requests and/or responses are streamed. + */ + RegionInstantSnapshotGroups.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstantSnapshotGroups|delete_}. + * @memberof google.cloud.compute.v1.RegionInstantSnapshotGroups + * @typedef DeleteCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1.RegionInstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1.IDeleteRegionInstantSnapshotGroupRequest} request DeleteRegionInstantSnapshotGroupRequest message or plain object + * @param {google.cloud.compute.v1.RegionInstantSnapshotGroups.DeleteCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionInstantSnapshotGroups.prototype["delete"] = function delete_(request, callback) { + return this.rpcCall(delete_, $root.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Delete" }); + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1.RegionInstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1.IDeleteRegionInstantSnapshotGroupRequest} request DeleteRegionInstantSnapshotGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstantSnapshotGroups|get}. + * @memberof google.cloud.compute.v1.RegionInstantSnapshotGroups + * @typedef GetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.InstantSnapshotGroup} [response] InstantSnapshotGroup + */ + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.RegionInstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1.IGetRegionInstantSnapshotGroupRequest} request GetRegionInstantSnapshotGroupRequest message or plain object + * @param {google.cloud.compute.v1.RegionInstantSnapshotGroups.GetCallback} callback Node-style callback called with the error, if any, and InstantSnapshotGroup + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionInstantSnapshotGroups.prototype.get = function get(request, callback) { + return this.rpcCall(get, $root.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest, $root.google.cloud.compute.v1.InstantSnapshotGroup, request, callback); + }, "name", { value: "Get" }); + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.RegionInstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1.IGetRegionInstantSnapshotGroupRequest} request GetRegionInstantSnapshotGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstantSnapshotGroups|getIamPolicy}. + * @memberof google.cloud.compute.v1.RegionInstantSnapshotGroups + * @typedef GetIamPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Policy} [response] Policy + */ + + /** + * Calls GetIamPolicy. + * @function getIamPolicy + * @memberof google.cloud.compute.v1.RegionInstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotGroupRequest} request GetIamPolicyRegionInstantSnapshotGroupRequest message or plain object + * @param {google.cloud.compute.v1.RegionInstantSnapshotGroups.GetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionInstantSnapshotGroups.prototype.getIamPolicy = function getIamPolicy(request, callback) { + return this.rpcCall(getIamPolicy, $root.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest, $root.google.cloud.compute.v1.Policy, request, callback); + }, "name", { value: "GetIamPolicy" }); + + /** + * Calls GetIamPolicy. + * @function getIamPolicy + * @memberof google.cloud.compute.v1.RegionInstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotGroupRequest} request GetIamPolicyRegionInstantSnapshotGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstantSnapshotGroups|insert}. + * @memberof google.cloud.compute.v1.RegionInstantSnapshotGroups + * @typedef InsertCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1.RegionInstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1.IInsertRegionInstantSnapshotGroupRequest} request InsertRegionInstantSnapshotGroupRequest message or plain object + * @param {google.cloud.compute.v1.RegionInstantSnapshotGroups.InsertCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionInstantSnapshotGroups.prototype.insert = function insert(request, callback) { + return this.rpcCall(insert, $root.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Insert" }); + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1.RegionInstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1.IInsertRegionInstantSnapshotGroupRequest} request InsertRegionInstantSnapshotGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstantSnapshotGroups|list}. + * @memberof google.cloud.compute.v1.RegionInstantSnapshotGroups + * @typedef ListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.ListInstantSnapshotGroups} [response] ListInstantSnapshotGroups + */ + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.RegionInstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1.IListRegionInstantSnapshotGroupsRequest} request ListRegionInstantSnapshotGroupsRequest message or plain object + * @param {google.cloud.compute.v1.RegionInstantSnapshotGroups.ListCallback} callback Node-style callback called with the error, if any, and ListInstantSnapshotGroups + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionInstantSnapshotGroups.prototype.list = function list(request, callback) { + return this.rpcCall(list, $root.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest, $root.google.cloud.compute.v1.ListInstantSnapshotGroups, request, callback); + }, "name", { value: "List" }); + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.RegionInstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1.IListRegionInstantSnapshotGroupsRequest} request ListRegionInstantSnapshotGroupsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstantSnapshotGroups|setIamPolicy}. + * @memberof google.cloud.compute.v1.RegionInstantSnapshotGroups + * @typedef SetIamPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Policy} [response] Policy + */ + + /** + * Calls SetIamPolicy. + * @function setIamPolicy + * @memberof google.cloud.compute.v1.RegionInstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotGroupRequest} request SetIamPolicyRegionInstantSnapshotGroupRequest message or plain object + * @param {google.cloud.compute.v1.RegionInstantSnapshotGroups.SetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionInstantSnapshotGroups.prototype.setIamPolicy = function setIamPolicy(request, callback) { + return this.rpcCall(setIamPolicy, $root.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest, $root.google.cloud.compute.v1.Policy, request, callback); + }, "name", { value: "SetIamPolicy" }); + + /** + * Calls SetIamPolicy. + * @function setIamPolicy + * @memberof google.cloud.compute.v1.RegionInstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotGroupRequest} request SetIamPolicyRegionInstantSnapshotGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionInstantSnapshotGroups|testIamPermissions}. + * @memberof google.cloud.compute.v1.RegionInstantSnapshotGroups + * @typedef TestIamPermissionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.TestPermissionsResponse} [response] TestPermissionsResponse + */ + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1.RegionInstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotGroupRequest} request TestIamPermissionsRegionInstantSnapshotGroupRequest message or plain object + * @param {google.cloud.compute.v1.RegionInstantSnapshotGroups.TestIamPermissionsCallback} callback Node-style callback called with the error, if any, and TestPermissionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionInstantSnapshotGroups.prototype.testIamPermissions = function testIamPermissions(request, callback) { + return this.rpcCall(testIamPermissions, $root.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest, $root.google.cloud.compute.v1.TestPermissionsResponse, request, callback); + }, "name", { value: "TestIamPermissions" }); + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1.RegionInstantSnapshotGroups + * @instance + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotGroupRequest} request TestIamPermissionsRegionInstantSnapshotGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return RegionInstantSnapshotGroups; + })(); + v1.RegionInstantSnapshots = (function() { /** @@ -663546,6 +690883,439 @@ return RegionSecurityPolicies; })(); + v1.RegionSnapshotSettings = (function() { + + /** + * Constructs a new RegionSnapshotSettings service. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a RegionSnapshotSettings + * @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 RegionSnapshotSettings(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (RegionSnapshotSettings.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = RegionSnapshotSettings; + + /** + * Creates new RegionSnapshotSettings service using the specified rpc implementation. + * @function create + * @memberof google.cloud.compute.v1.RegionSnapshotSettings + * @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 {RegionSnapshotSettings} RPC service. Useful where requests and/or responses are streamed. + */ + RegionSnapshotSettings.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionSnapshotSettings|get}. + * @memberof google.cloud.compute.v1.RegionSnapshotSettings + * @typedef GetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.SnapshotSettings} [response] SnapshotSettings + */ + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.RegionSnapshotSettings + * @instance + * @param {google.cloud.compute.v1.IGetRegionSnapshotSettingRequest} request GetRegionSnapshotSettingRequest message or plain object + * @param {google.cloud.compute.v1.RegionSnapshotSettings.GetCallback} callback Node-style callback called with the error, if any, and SnapshotSettings + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionSnapshotSettings.prototype.get = function get(request, callback) { + return this.rpcCall(get, $root.google.cloud.compute.v1.GetRegionSnapshotSettingRequest, $root.google.cloud.compute.v1.SnapshotSettings, request, callback); + }, "name", { value: "Get" }); + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.RegionSnapshotSettings + * @instance + * @param {google.cloud.compute.v1.IGetRegionSnapshotSettingRequest} request GetRegionSnapshotSettingRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionSnapshotSettings|patch}. + * @memberof google.cloud.compute.v1.RegionSnapshotSettings + * @typedef PatchCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Patch. + * @function patch + * @memberof google.cloud.compute.v1.RegionSnapshotSettings + * @instance + * @param {google.cloud.compute.v1.IPatchRegionSnapshotSettingRequest} request PatchRegionSnapshotSettingRequest message or plain object + * @param {google.cloud.compute.v1.RegionSnapshotSettings.PatchCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionSnapshotSettings.prototype.patch = function patch(request, callback) { + return this.rpcCall(patch, $root.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Patch" }); + + /** + * Calls Patch. + * @function patch + * @memberof google.cloud.compute.v1.RegionSnapshotSettings + * @instance + * @param {google.cloud.compute.v1.IPatchRegionSnapshotSettingRequest} request PatchRegionSnapshotSettingRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return RegionSnapshotSettings; + })(); + + v1.RegionSnapshots = (function() { + + /** + * Constructs a new RegionSnapshots service. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a RegionSnapshots + * @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 RegionSnapshots(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (RegionSnapshots.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = RegionSnapshots; + + /** + * Creates new RegionSnapshots service using the specified rpc implementation. + * @function create + * @memberof google.cloud.compute.v1.RegionSnapshots + * @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 {RegionSnapshots} RPC service. Useful where requests and/or responses are streamed. + */ + RegionSnapshots.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionSnapshots|delete_}. + * @memberof google.cloud.compute.v1.RegionSnapshots + * @typedef DeleteCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1.RegionSnapshots + * @instance + * @param {google.cloud.compute.v1.IDeleteRegionSnapshotRequest} request DeleteRegionSnapshotRequest message or plain object + * @param {google.cloud.compute.v1.RegionSnapshots.DeleteCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionSnapshots.prototype["delete"] = function delete_(request, callback) { + return this.rpcCall(delete_, $root.google.cloud.compute.v1.DeleteRegionSnapshotRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Delete" }); + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1.RegionSnapshots + * @instance + * @param {google.cloud.compute.v1.IDeleteRegionSnapshotRequest} request DeleteRegionSnapshotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionSnapshots|get}. + * @memberof google.cloud.compute.v1.RegionSnapshots + * @typedef GetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Snapshot} [response] Snapshot + */ + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.RegionSnapshots + * @instance + * @param {google.cloud.compute.v1.IGetRegionSnapshotRequest} request GetRegionSnapshotRequest message or plain object + * @param {google.cloud.compute.v1.RegionSnapshots.GetCallback} callback Node-style callback called with the error, if any, and Snapshot + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionSnapshots.prototype.get = function get(request, callback) { + return this.rpcCall(get, $root.google.cloud.compute.v1.GetRegionSnapshotRequest, $root.google.cloud.compute.v1.Snapshot, request, callback); + }, "name", { value: "Get" }); + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.RegionSnapshots + * @instance + * @param {google.cloud.compute.v1.IGetRegionSnapshotRequest} request GetRegionSnapshotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionSnapshots|getIamPolicy}. + * @memberof google.cloud.compute.v1.RegionSnapshots + * @typedef GetIamPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Policy} [response] Policy + */ + + /** + * Calls GetIamPolicy. + * @function getIamPolicy + * @memberof google.cloud.compute.v1.RegionSnapshots + * @instance + * @param {google.cloud.compute.v1.IGetIamPolicyRegionSnapshotRequest} request GetIamPolicyRegionSnapshotRequest message or plain object + * @param {google.cloud.compute.v1.RegionSnapshots.GetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionSnapshots.prototype.getIamPolicy = function getIamPolicy(request, callback) { + return this.rpcCall(getIamPolicy, $root.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest, $root.google.cloud.compute.v1.Policy, request, callback); + }, "name", { value: "GetIamPolicy" }); + + /** + * Calls GetIamPolicy. + * @function getIamPolicy + * @memberof google.cloud.compute.v1.RegionSnapshots + * @instance + * @param {google.cloud.compute.v1.IGetIamPolicyRegionSnapshotRequest} request GetIamPolicyRegionSnapshotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionSnapshots|insert}. + * @memberof google.cloud.compute.v1.RegionSnapshots + * @typedef InsertCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1.RegionSnapshots + * @instance + * @param {google.cloud.compute.v1.IInsertRegionSnapshotRequest} request InsertRegionSnapshotRequest message or plain object + * @param {google.cloud.compute.v1.RegionSnapshots.InsertCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionSnapshots.prototype.insert = function insert(request, callback) { + return this.rpcCall(insert, $root.google.cloud.compute.v1.InsertRegionSnapshotRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Insert" }); + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1.RegionSnapshots + * @instance + * @param {google.cloud.compute.v1.IInsertRegionSnapshotRequest} request InsertRegionSnapshotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionSnapshots|list}. + * @memberof google.cloud.compute.v1.RegionSnapshots + * @typedef ListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.SnapshotList} [response] SnapshotList + */ + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.RegionSnapshots + * @instance + * @param {google.cloud.compute.v1.IListRegionSnapshotsRequest} request ListRegionSnapshotsRequest message or plain object + * @param {google.cloud.compute.v1.RegionSnapshots.ListCallback} callback Node-style callback called with the error, if any, and SnapshotList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionSnapshots.prototype.list = function list(request, callback) { + return this.rpcCall(list, $root.google.cloud.compute.v1.ListRegionSnapshotsRequest, $root.google.cloud.compute.v1.SnapshotList, request, callback); + }, "name", { value: "List" }); + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.RegionSnapshots + * @instance + * @param {google.cloud.compute.v1.IListRegionSnapshotsRequest} request ListRegionSnapshotsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionSnapshots|setIamPolicy}. + * @memberof google.cloud.compute.v1.RegionSnapshots + * @typedef SetIamPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Policy} [response] Policy + */ + + /** + * Calls SetIamPolicy. + * @function setIamPolicy + * @memberof google.cloud.compute.v1.RegionSnapshots + * @instance + * @param {google.cloud.compute.v1.ISetIamPolicyRegionSnapshotRequest} request SetIamPolicyRegionSnapshotRequest message or plain object + * @param {google.cloud.compute.v1.RegionSnapshots.SetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionSnapshots.prototype.setIamPolicy = function setIamPolicy(request, callback) { + return this.rpcCall(setIamPolicy, $root.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest, $root.google.cloud.compute.v1.Policy, request, callback); + }, "name", { value: "SetIamPolicy" }); + + /** + * Calls SetIamPolicy. + * @function setIamPolicy + * @memberof google.cloud.compute.v1.RegionSnapshots + * @instance + * @param {google.cloud.compute.v1.ISetIamPolicyRegionSnapshotRequest} request SetIamPolicyRegionSnapshotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionSnapshots|setLabels}. + * @memberof google.cloud.compute.v1.RegionSnapshots + * @typedef SetLabelsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls SetLabels. + * @function setLabels + * @memberof google.cloud.compute.v1.RegionSnapshots + * @instance + * @param {google.cloud.compute.v1.ISetLabelsRegionSnapshotRequest} request SetLabelsRegionSnapshotRequest message or plain object + * @param {google.cloud.compute.v1.RegionSnapshots.SetLabelsCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionSnapshots.prototype.setLabels = function setLabels(request, callback) { + return this.rpcCall(setLabels, $root.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "SetLabels" }); + + /** + * Calls SetLabels. + * @function setLabels + * @memberof google.cloud.compute.v1.RegionSnapshots + * @instance + * @param {google.cloud.compute.v1.ISetLabelsRegionSnapshotRequest} request SetLabelsRegionSnapshotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionSnapshots|testIamPermissions}. + * @memberof google.cloud.compute.v1.RegionSnapshots + * @typedef TestIamPermissionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.TestPermissionsResponse} [response] TestPermissionsResponse + */ + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1.RegionSnapshots + * @instance + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionSnapshotRequest} request TestIamPermissionsRegionSnapshotRequest message or plain object + * @param {google.cloud.compute.v1.RegionSnapshots.TestIamPermissionsCallback} callback Node-style callback called with the error, if any, and TestPermissionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionSnapshots.prototype.testIamPermissions = function testIamPermissions(request, callback) { + return this.rpcCall(testIamPermissions, $root.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest, $root.google.cloud.compute.v1.TestPermissionsResponse, request, callback); + }, "name", { value: "TestIamPermissions" }); + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1.RegionSnapshots + * @instance + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionSnapshotRequest} request TestIamPermissionsRegionSnapshotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionSnapshots|updateKmsKey}. + * @memberof google.cloud.compute.v1.RegionSnapshots + * @typedef UpdateKmsKeyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls UpdateKmsKey. + * @function updateKmsKey + * @memberof google.cloud.compute.v1.RegionSnapshots + * @instance + * @param {google.cloud.compute.v1.IUpdateKmsKeyRegionSnapshotRequest} request UpdateKmsKeyRegionSnapshotRequest message or plain object + * @param {google.cloud.compute.v1.RegionSnapshots.UpdateKmsKeyCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionSnapshots.prototype.updateKmsKey = function updateKmsKey(request, callback) { + return this.rpcCall(updateKmsKey, $root.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "UpdateKmsKey" }); + + /** + * Calls UpdateKmsKey. + * @function updateKmsKey + * @memberof google.cloud.compute.v1.RegionSnapshots + * @instance + * @param {google.cloud.compute.v1.IUpdateKmsKeyRegionSnapshotRequest} request UpdateKmsKeyRegionSnapshotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return RegionSnapshots; + })(); + v1.RegionSslCertificates = (function() { /** @@ -668399,6 +696169,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1.Snapshots|updateKmsKey}. + * @memberof google.cloud.compute.v1.Snapshots + * @typedef UpdateKmsKeyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls UpdateKmsKey. + * @function updateKmsKey + * @memberof google.cloud.compute.v1.Snapshots + * @instance + * @param {google.cloud.compute.v1.IUpdateKmsKeySnapshotRequest} request UpdateKmsKeySnapshotRequest message or plain object + * @param {google.cloud.compute.v1.Snapshots.UpdateKmsKeyCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Snapshots.prototype.updateKmsKey = function updateKmsKey(request, callback) { + return this.rpcCall(updateKmsKey, $root.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "UpdateKmsKey" }); + + /** + * Calls UpdateKmsKey. + * @function updateKmsKey + * @memberof google.cloud.compute.v1.Snapshots + * @instance + * @param {google.cloud.compute.v1.IUpdateKmsKeySnapshotRequest} request UpdateKmsKeySnapshotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return Snapshots; })(); @@ -673553,6 +701356,206 @@ return ZoneOperations; })(); + v1.ZoneVmExtensionPolicies = (function() { + + /** + * Constructs a new ZoneVmExtensionPolicies service. + * @memberof google.cloud.compute.v1 + * @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.v1.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.v1.ZoneVmExtensionPolicies|delete_}. + * @memberof google.cloud.compute.v1.ZoneVmExtensionPolicies + * @typedef DeleteCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1.ZoneVmExtensionPolicies + * @instance + * @param {google.cloud.compute.v1.IDeleteZoneVmExtensionPolicyRequest} request DeleteZoneVmExtensionPolicyRequest message or plain object + * @param {google.cloud.compute.v1.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.v1.DeleteZoneVmExtensionPolicyRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Delete" }); + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1.ZoneVmExtensionPolicies + * @instance + * @param {google.cloud.compute.v1.IDeleteZoneVmExtensionPolicyRequest} request DeleteZoneVmExtensionPolicyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.ZoneVmExtensionPolicies|get}. + * @memberof google.cloud.compute.v1.ZoneVmExtensionPolicies + * @typedef GetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.VmExtensionPolicy} [response] VmExtensionPolicy + */ + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.ZoneVmExtensionPolicies + * @instance + * @param {google.cloud.compute.v1.IGetZoneVmExtensionPolicyRequest} request GetZoneVmExtensionPolicyRequest message or plain object + * @param {google.cloud.compute.v1.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.v1.GetZoneVmExtensionPolicyRequest, $root.google.cloud.compute.v1.VmExtensionPolicy, request, callback); + }, "name", { value: "Get" }); + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.ZoneVmExtensionPolicies + * @instance + * @param {google.cloud.compute.v1.IGetZoneVmExtensionPolicyRequest} request GetZoneVmExtensionPolicyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.ZoneVmExtensionPolicies|insert}. + * @memberof google.cloud.compute.v1.ZoneVmExtensionPolicies + * @typedef InsertCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1.ZoneVmExtensionPolicies + * @instance + * @param {google.cloud.compute.v1.IInsertZoneVmExtensionPolicyRequest} request InsertZoneVmExtensionPolicyRequest message or plain object + * @param {google.cloud.compute.v1.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.v1.InsertZoneVmExtensionPolicyRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Insert" }); + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1.ZoneVmExtensionPolicies + * @instance + * @param {google.cloud.compute.v1.IInsertZoneVmExtensionPolicyRequest} request InsertZoneVmExtensionPolicyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.ZoneVmExtensionPolicies|list}. + * @memberof google.cloud.compute.v1.ZoneVmExtensionPolicies + * @typedef ListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.VmExtensionPolicyList} [response] VmExtensionPolicyList + */ + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.ZoneVmExtensionPolicies + * @instance + * @param {google.cloud.compute.v1.IListZoneVmExtensionPoliciesRequest} request ListZoneVmExtensionPoliciesRequest message or plain object + * @param {google.cloud.compute.v1.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.v1.ListZoneVmExtensionPoliciesRequest, $root.google.cloud.compute.v1.VmExtensionPolicyList, request, callback); + }, "name", { value: "List" }); + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.ZoneVmExtensionPolicies + * @instance + * @param {google.cloud.compute.v1.IListZoneVmExtensionPoliciesRequest} request ListZoneVmExtensionPoliciesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.ZoneVmExtensionPolicies|update}. + * @memberof google.cloud.compute.v1.ZoneVmExtensionPolicies + * @typedef UpdateCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Update. + * @function update + * @memberof google.cloud.compute.v1.ZoneVmExtensionPolicies + * @instance + * @param {google.cloud.compute.v1.IUpdateZoneVmExtensionPolicyRequest} request UpdateZoneVmExtensionPolicyRequest message or plain object + * @param {google.cloud.compute.v1.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.v1.UpdateZoneVmExtensionPolicyRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Update" }); + + /** + * Calls Update. + * @function update + * @memberof google.cloud.compute.v1.ZoneVmExtensionPolicies + * @instance + * @param {google.cloud.compute.v1.IUpdateZoneVmExtensionPolicyRequest} request UpdateZoneVmExtensionPolicyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return ZoneVmExtensionPolicies; + })(); + v1.Zones = (function() { /** @@ -727341,6 +755344,7 @@ * @property {number|null} [maxUtilization] Backend maxUtilization * @property {google.cloud.compute.v1beta.IBackendBackendOrchestrationInfo|null} [orchestrationInfo] Backend orchestrationInfo * @property {string|null} [preference] Backend preference + * @property {string|null} [service] Backend service * @property {string|null} [trafficDuration] Backend trafficDuration */ @@ -727504,6 +755508,14 @@ */ Backend.prototype.preference = null; + /** + * Backend service. + * @member {string|null|undefined} service + * @memberof google.cloud.compute.v1beta.Backend + * @instance + */ + Backend.prototype.service = null; + /** * Backend trafficDuration. * @member {string|null|undefined} trafficDuration @@ -727617,6 +755629,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(Backend.prototype, "_service", { + get: $util.oneOfGetter($oneOfFields = ["service"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(Backend.prototype, "_trafficDuration", { get: $util.oneOfGetter($oneOfFields = ["trafficDuration"]), @@ -727675,6 +755693,8 @@ writer.uint32(/* id 307928706, wireType 0 =*/2463429648).int32(message.maxInFlightRequestsPerEndpoint); if (message.capacityScaler != null && Object.hasOwnProperty.call(message, "capacityScaler")) writer.uint32(/* id 315958157, wireType 5 =*/2527665261).float(message.capacityScaler); + if (message.service != null && Object.hasOwnProperty.call(message, "service")) + writer.uint32(/* id 373540533, wireType 2 =*/2988324266).string(message.service); if (message.maxRate != null && Object.hasOwnProperty.call(message, "maxRate")) writer.uint32(/* id 408035035, wireType 0 =*/3264280280).int32(message.maxRate); if (message.description != null && Object.hasOwnProperty.call(message, "description")) @@ -727796,6 +755816,10 @@ message.preference = reader.string(); break; } + case 373540533: { + message.service = reader.string(); + break; + } case 11618710: { message.trafficDuration = reader.string(); break; @@ -727933,6 +755957,11 @@ if (!$util.isString(message.preference)) return "preference: string expected"; } + if (message.service != null && message.hasOwnProperty("service")) { + properties._service = 1; + if (!$util.isString(message.service)) + return "service: string expected"; + } if (message.trafficDuration != null && message.hasOwnProperty("trafficDuration")) { properties._trafficDuration = 1; if (!$util.isString(message.trafficDuration)) @@ -728000,6 +756029,8 @@ } if (object.preference != null) message.preference = String(object.preference); + if (object.service != null) + message.service = String(object.service); if (object.trafficDuration != null) message.trafficDuration = String(object.trafficDuration); return message; @@ -728090,6 +756121,11 @@ if (options.oneofs) object._capacityScaler = "capacityScaler"; } + if (message.service != null && message.hasOwnProperty("service")) { + object.service = message.service; + if (options.oneofs) + object._service = "service"; + } if (message.maxRate != null && message.hasOwnProperty("maxRate")) { object.maxRate = message.maxRate; if (options.oneofs) @@ -756925,6 +784961,7 @@ * @property {google.cloud.compute.v1beta.ILicenseResourceCommitment|null} [licenseResource] Commitment licenseResource * @property {Array.|null} [mergeSourceCommitments] Commitment mergeSourceCommitments * @property {string|null} [name] Commitment name + * @property {google.cloud.compute.v1beta.ICommitmentParams|null} [params] Commitment params * @property {string|null} [plan] Commitment plan * @property {string|null} [region] Commitment region * @property {Array.|null} [reservations] Commitment reservations @@ -757053,6 +785090,14 @@ */ Commitment.prototype.name = null; + /** + * Commitment params. + * @member {google.cloud.compute.v1beta.ICommitmentParams|null|undefined} params + * @memberof google.cloud.compute.v1beta.Commitment + * @instance + */ + Commitment.prototype.params = null; + /** * Commitment plan. * @member {string|null|undefined} plan @@ -757204,6 +785249,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(Commitment.prototype, "_params", { + get: $util.oneOfGetter($oneOfFields = ["params"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(Commitment.prototype, "_plan", { get: $util.oneOfGetter($oneOfFields = ["plan"]), @@ -757296,6 +785347,8 @@ writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); if (message.category != null && Object.hasOwnProperty.call(message, "category")) writer.uint32(/* id 50511102, wireType 2 =*/404088818).string(message.category); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.google.cloud.compute.v1beta.CommitmentParams.encode(message.params, writer.uint32(/* id 78313862, wireType 2 =*/626510898).fork()).ldelim(); if (message.startTimestamp != null && Object.hasOwnProperty.call(message, "startTimestamp")) writer.uint32(/* id 83645817, wireType 2 =*/669166538).string(message.startTimestamp); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -757420,6 +785473,10 @@ message.name = reader.string(); break; } + case 78313862: { + message.params = $root.google.cloud.compute.v1beta.CommitmentParams.decode(reader, reader.uint32()); + break; + } case 3443497: { message.plan = reader.string(); break; @@ -757571,6 +785628,14 @@ if (!$util.isString(message.name)) return "name: string expected"; } + if (message.params != null && message.hasOwnProperty("params")) { + properties._params = 1; + { + var error = $root.google.cloud.compute.v1beta.CommitmentParams.verify(message.params); + if (error) + return "params." + error; + } + } if (message.plan != null && message.hasOwnProperty("plan")) { properties._plan = 1; if (!$util.isString(message.plan)) @@ -757696,6 +785761,11 @@ } if (object.name != null) message.name = String(object.name); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".google.cloud.compute.v1beta.Commitment.params: object expected"); + message.params = $root.google.cloud.compute.v1beta.CommitmentParams.fromObject(object.params); + } if (object.plan != null) message.plan = String(object.plan); if (object.region != null) @@ -757797,6 +785867,11 @@ if (options.oneofs) object._category = "category"; } + if (message.params != null && message.hasOwnProperty("params")) { + object.params = $root.google.cloud.compute.v1beta.CommitmentParams.toObject(message.params, options); + if (options.oneofs) + object._params = "params"; + } if (message.startTimestamp != null && message.hasOwnProperty("startTimestamp")) { object.startTimestamp = message.startTimestamp; if (options.oneofs) @@ -758920,6 +786995,246 @@ return CommitmentList; })(); + v1beta.CommitmentParams = (function() { + + /** + * Properties of a CommitmentParams. + * @memberof google.cloud.compute.v1beta + * @interface ICommitmentParams + * @property {Object.|null} [resourceManagerTags] CommitmentParams resourceManagerTags + */ + + /** + * Constructs a new CommitmentParams. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a CommitmentParams. + * @implements ICommitmentParams + * @constructor + * @param {google.cloud.compute.v1beta.ICommitmentParams=} [properties] Properties to set + */ + function CommitmentParams(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]]; + } + + /** + * CommitmentParams resourceManagerTags. + * @member {Object.} resourceManagerTags + * @memberof google.cloud.compute.v1beta.CommitmentParams + * @instance + */ + CommitmentParams.prototype.resourceManagerTags = $util.emptyObject; + + /** + * Creates a new CommitmentParams instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.CommitmentParams + * @static + * @param {google.cloud.compute.v1beta.ICommitmentParams=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.CommitmentParams} CommitmentParams instance + */ + CommitmentParams.create = function create(properties) { + return new CommitmentParams(properties); + }; + + /** + * Encodes the specified CommitmentParams message. Does not implicitly {@link google.cloud.compute.v1beta.CommitmentParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.CommitmentParams + * @static + * @param {google.cloud.compute.v1beta.ICommitmentParams} message CommitmentParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CommitmentParams.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 CommitmentParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.CommitmentParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.CommitmentParams + * @static + * @param {google.cloud.compute.v1beta.ICommitmentParams} message CommitmentParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CommitmentParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CommitmentParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.CommitmentParams + * @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.CommitmentParams} CommitmentParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CommitmentParams.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.CommitmentParams(), 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 a CommitmentParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.CommitmentParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.CommitmentParams} CommitmentParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CommitmentParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CommitmentParams message. + * @function verify + * @memberof google.cloud.compute.v1beta.CommitmentParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CommitmentParams.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 a CommitmentParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.CommitmentParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.CommitmentParams} CommitmentParams + */ + CommitmentParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.CommitmentParams) + return object; + var message = new $root.google.cloud.compute.v1beta.CommitmentParams(); + if (object.resourceManagerTags) { + if (typeof object.resourceManagerTags !== "object") + throw TypeError(".google.cloud.compute.v1beta.CommitmentParams.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 a CommitmentParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.CommitmentParams + * @static + * @param {google.cloud.compute.v1beta.CommitmentParams} message CommitmentParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CommitmentParams.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 CommitmentParams to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.CommitmentParams + * @instance + * @returns {Object.} JSON object + */ + CommitmentParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CommitmentParams + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.CommitmentParams + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CommitmentParams.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.CommitmentParams"; + }; + + return CommitmentParams; + })(); + v1beta.CommitmentResourceStatus = (function() { /** @@ -760434,6 +788749,320 @@ return CompositeHealthCheckAggregatedList; })(); + v1beta.CompositeHealthCheckHealth = (function() { + + /** + * Properties of a CompositeHealthCheckHealth. + * @memberof google.cloud.compute.v1beta + * @interface ICompositeHealthCheckHealth + * @property {Array.|null} [healthSources] CompositeHealthCheckHealth healthSources + * @property {string|null} [healthState] CompositeHealthCheckHealth healthState + * @property {string|null} [kind] CompositeHealthCheckHealth kind + */ + + /** + * Constructs a new CompositeHealthCheckHealth. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a CompositeHealthCheckHealth. + * @implements ICompositeHealthCheckHealth + * @constructor + * @param {google.cloud.compute.v1beta.ICompositeHealthCheckHealth=} [properties] Properties to set + */ + function CompositeHealthCheckHealth(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]]; + } + + /** + * CompositeHealthCheckHealth healthSources. + * @member {Array.} healthSources + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckHealth + * @instance + */ + CompositeHealthCheckHealth.prototype.healthSources = $util.emptyArray; + + /** + * CompositeHealthCheckHealth healthState. + * @member {string|null|undefined} healthState + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckHealth + * @instance + */ + CompositeHealthCheckHealth.prototype.healthState = null; + + /** + * CompositeHealthCheckHealth kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckHealth + * @instance + */ + CompositeHealthCheckHealth.prototype.kind = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheckHealth.prototype, "_healthState", { + get: $util.oneOfGetter($oneOfFields = ["healthState"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheckHealth.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CompositeHealthCheckHealth instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckHealth + * @static + * @param {google.cloud.compute.v1beta.ICompositeHealthCheckHealth=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.CompositeHealthCheckHealth} CompositeHealthCheckHealth instance + */ + CompositeHealthCheckHealth.create = function create(properties) { + return new CompositeHealthCheckHealth(properties); + }; + + /** + * Encodes the specified CompositeHealthCheckHealth message. Does not implicitly {@link google.cloud.compute.v1beta.CompositeHealthCheckHealth.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckHealth + * @static + * @param {google.cloud.compute.v1beta.ICompositeHealthCheckHealth} message CompositeHealthCheckHealth message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompositeHealthCheckHealth.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.healthState != null && Object.hasOwnProperty.call(message, "healthState")) + writer.uint32(/* id 324007150, wireType 2 =*/2592057202).string(message.healthState); + if (message.healthSources != null && message.healthSources.length) + for (var i = 0; i < message.healthSources.length; ++i) + $root.google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth.encode(message.healthSources[i], writer.uint32(/* id 397879509, wireType 2 =*/3183036074).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CompositeHealthCheckHealth message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.CompositeHealthCheckHealth.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckHealth + * @static + * @param {google.cloud.compute.v1beta.ICompositeHealthCheckHealth} message CompositeHealthCheckHealth message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompositeHealthCheckHealth.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CompositeHealthCheckHealth message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckHealth + * @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.CompositeHealthCheckHealth} CompositeHealthCheckHealth + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompositeHealthCheckHealth.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.CompositeHealthCheckHealth(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 397879509: { + if (!(message.healthSources && message.healthSources.length)) + message.healthSources = []; + message.healthSources.push($root.google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth.decode(reader, reader.uint32())); + break; + } + case 324007150: { + message.healthState = reader.string(); + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CompositeHealthCheckHealth message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckHealth + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.CompositeHealthCheckHealth} CompositeHealthCheckHealth + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompositeHealthCheckHealth.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CompositeHealthCheckHealth message. + * @function verify + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckHealth + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompositeHealthCheckHealth.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + 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) { + var error = $root.google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth.verify(message.healthSources[i]); + if (error) + return "healthSources." + error; + } + } + if (message.healthState != null && message.hasOwnProperty("healthState")) { + properties._healthState = 1; + if (!$util.isString(message.healthState)) + return "healthState: string expected"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + return null; + }; + + /** + * Creates a CompositeHealthCheckHealth message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckHealth + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.CompositeHealthCheckHealth} CompositeHealthCheckHealth + */ + CompositeHealthCheckHealth.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.CompositeHealthCheckHealth) + return object; + var message = new $root.google.cloud.compute.v1beta.CompositeHealthCheckHealth(); + if (object.healthSources) { + if (!Array.isArray(object.healthSources)) + throw TypeError(".google.cloud.compute.v1beta.CompositeHealthCheckHealth.healthSources: array expected"); + message.healthSources = []; + for (var i = 0; i < object.healthSources.length; ++i) { + if (typeof object.healthSources[i] !== "object") + throw TypeError(".google.cloud.compute.v1beta.CompositeHealthCheckHealth.healthSources: object expected"); + message.healthSources[i] = $root.google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth.fromObject(object.healthSources[i]); + } + } + if (object.healthState != null) + message.healthState = String(object.healthState); + if (object.kind != null) + message.kind = String(object.kind); + return message; + }; + + /** + * Creates a plain object from a CompositeHealthCheckHealth message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckHealth + * @static + * @param {google.cloud.compute.v1beta.CompositeHealthCheckHealth} message CompositeHealthCheckHealth + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CompositeHealthCheckHealth.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.healthSources = []; + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.healthState != null && message.hasOwnProperty("healthState")) { + object.healthState = message.healthState; + if (options.oneofs) + object._healthState = "healthState"; + } + if (message.healthSources && message.healthSources.length) { + object.healthSources = []; + for (var j = 0; j < message.healthSources.length; ++j) + object.healthSources[j] = $root.google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth.toObject(message.healthSources[j], options); + } + return object; + }; + + /** + * Converts this CompositeHealthCheckHealth to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckHealth + * @instance + * @returns {Object.} JSON object + */ + CompositeHealthCheckHealth.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CompositeHealthCheckHealth + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckHealth + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CompositeHealthCheckHealth.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.CompositeHealthCheckHealth"; + }; + + /** + * HealthState enum. + * @name google.cloud.compute.v1beta.CompositeHealthCheckHealth.HealthState + * @enum {number} + * @property {number} UNDEFINED_HEALTH_STATE=0 UNDEFINED_HEALTH_STATE value + * @property {number} HEALTHY=439801213 HEALTHY value + * @property {number} UNHEALTHY=462118084 UNHEALTHY value + * @property {number} UNKNOWN=433141802 UNKNOWN value + */ + CompositeHealthCheckHealth.HealthState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_HEALTH_STATE"] = 0; + values[valuesById[439801213] = "HEALTHY"] = 439801213; + values[valuesById[462118084] = "UNHEALTHY"] = 462118084; + values[valuesById[433141802] = "UNKNOWN"] = 433141802; + return values; + })(); + + return CompositeHealthCheckHealth; + })(); + v1beta.CompositeHealthCheckList = (function() { /** @@ -760835,6 +789464,275 @@ return CompositeHealthCheckList; })(); + v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth = (function() { + + /** + * Properties of a CompositeHealthChecksGetHealthResponseHealthSourceHealth. + * @memberof google.cloud.compute.v1beta + * @interface ICompositeHealthChecksGetHealthResponseHealthSourceHealth + * @property {string|null} [healthState] CompositeHealthChecksGetHealthResponseHealthSourceHealth healthState + * @property {string|null} [source] CompositeHealthChecksGetHealthResponseHealthSourceHealth source + */ + + /** + * Constructs a new CompositeHealthChecksGetHealthResponseHealthSourceHealth. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a CompositeHealthChecksGetHealthResponseHealthSourceHealth. + * @implements ICompositeHealthChecksGetHealthResponseHealthSourceHealth + * @constructor + * @param {google.cloud.compute.v1beta.ICompositeHealthChecksGetHealthResponseHealthSourceHealth=} [properties] Properties to set + */ + function CompositeHealthChecksGetHealthResponseHealthSourceHealth(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]]; + } + + /** + * CompositeHealthChecksGetHealthResponseHealthSourceHealth healthState. + * @member {string|null|undefined} healthState + * @memberof google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @instance + */ + CompositeHealthChecksGetHealthResponseHealthSourceHealth.prototype.healthState = null; + + /** + * CompositeHealthChecksGetHealthResponseHealthSourceHealth source. + * @member {string|null|undefined} source + * @memberof google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @instance + */ + CompositeHealthChecksGetHealthResponseHealthSourceHealth.prototype.source = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthChecksGetHealthResponseHealthSourceHealth.prototype, "_healthState", { + get: $util.oneOfGetter($oneOfFields = ["healthState"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthChecksGetHealthResponseHealthSourceHealth.prototype, "_source", { + get: $util.oneOfGetter($oneOfFields = ["source"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CompositeHealthChecksGetHealthResponseHealthSourceHealth instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @static + * @param {google.cloud.compute.v1beta.ICompositeHealthChecksGetHealthResponseHealthSourceHealth=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth} CompositeHealthChecksGetHealthResponseHealthSourceHealth instance + */ + CompositeHealthChecksGetHealthResponseHealthSourceHealth.create = function create(properties) { + return new CompositeHealthChecksGetHealthResponseHealthSourceHealth(properties); + }; + + /** + * Encodes the specified CompositeHealthChecksGetHealthResponseHealthSourceHealth message. Does not implicitly {@link google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @static + * @param {google.cloud.compute.v1beta.ICompositeHealthChecksGetHealthResponseHealthSourceHealth} message CompositeHealthChecksGetHealthResponseHealthSourceHealth message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompositeHealthChecksGetHealthResponseHealthSourceHealth.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.source != null && Object.hasOwnProperty.call(message, "source")) + writer.uint32(/* id 177235995, wireType 2 =*/1417887962).string(message.source); + if (message.healthState != null && Object.hasOwnProperty.call(message, "healthState")) + writer.uint32(/* id 324007150, wireType 2 =*/2592057202).string(message.healthState); + return writer; + }; + + /** + * Encodes the specified CompositeHealthChecksGetHealthResponseHealthSourceHealth message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @static + * @param {google.cloud.compute.v1beta.ICompositeHealthChecksGetHealthResponseHealthSourceHealth} message CompositeHealthChecksGetHealthResponseHealthSourceHealth message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompositeHealthChecksGetHealthResponseHealthSourceHealth.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CompositeHealthChecksGetHealthResponseHealthSourceHealth message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @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.CompositeHealthChecksGetHealthResponseHealthSourceHealth} CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompositeHealthChecksGetHealthResponseHealthSourceHealth.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.CompositeHealthChecksGetHealthResponseHealthSourceHealth(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 324007150: { + message.healthState = reader.string(); + break; + } + case 177235995: { + message.source = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CompositeHealthChecksGetHealthResponseHealthSourceHealth message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth} CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompositeHealthChecksGetHealthResponseHealthSourceHealth.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CompositeHealthChecksGetHealthResponseHealthSourceHealth message. + * @function verify + * @memberof google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompositeHealthChecksGetHealthResponseHealthSourceHealth.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.healthState != null && message.hasOwnProperty("healthState")) { + properties._healthState = 1; + if (!$util.isString(message.healthState)) + return "healthState: string expected"; + } + if (message.source != null && message.hasOwnProperty("source")) { + properties._source = 1; + if (!$util.isString(message.source)) + return "source: string expected"; + } + return null; + }; + + /** + * Creates a CompositeHealthChecksGetHealthResponseHealthSourceHealth message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth} CompositeHealthChecksGetHealthResponseHealthSourceHealth + */ + CompositeHealthChecksGetHealthResponseHealthSourceHealth.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth) + return object; + var message = new $root.google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth(); + if (object.healthState != null) + message.healthState = String(object.healthState); + if (object.source != null) + message.source = String(object.source); + return message; + }; + + /** + * Creates a plain object from a CompositeHealthChecksGetHealthResponseHealthSourceHealth message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @static + * @param {google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth} message CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CompositeHealthChecksGetHealthResponseHealthSourceHealth.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.source != null && message.hasOwnProperty("source")) { + object.source = message.source; + if (options.oneofs) + object._source = "source"; + } + if (message.healthState != null && message.hasOwnProperty("healthState")) { + object.healthState = message.healthState; + if (options.oneofs) + object._healthState = "healthState"; + } + return object; + }; + + /** + * Converts this CompositeHealthChecksGetHealthResponseHealthSourceHealth to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @instance + * @returns {Object.} JSON object + */ + CompositeHealthChecksGetHealthResponseHealthSourceHealth.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CompositeHealthChecksGetHealthResponseHealthSourceHealth.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth"; + }; + + /** + * HealthState enum. + * @name google.cloud.compute.v1beta.CompositeHealthChecksGetHealthResponseHealthSourceHealth.HealthState + * @enum {number} + * @property {number} UNDEFINED_HEALTH_STATE=0 UNDEFINED_HEALTH_STATE value + * @property {number} HEALTHY=439801213 HEALTHY value + * @property {number} UNHEALTHY=462118084 UNHEALTHY value + * @property {number} UNKNOWN=433141802 UNKNOWN value + */ + CompositeHealthChecksGetHealthResponseHealthSourceHealth.HealthState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_HEALTH_STATE"] = 0; + values[valuesById[439801213] = "HEALTHY"] = 439801213; + values[valuesById[462118084] = "UNHEALTHY"] = 462118084; + values[valuesById[433141802] = "UNKNOWN"] = 433141802; + return values; + })(); + + return CompositeHealthChecksGetHealthResponseHealthSourceHealth; + })(); + v1beta.CompositeHealthChecksScopedList = (function() { /** @@ -809697,6 +838595,224 @@ return DiskTypesScopedList; })(); + v1beta.DiskUpdateKmsKeyRequest = (function() { + + /** + * Properties of a DiskUpdateKmsKeyRequest. + * @memberof google.cloud.compute.v1beta + * @interface IDiskUpdateKmsKeyRequest + * @property {string|null} [kmsKeyName] DiskUpdateKmsKeyRequest kmsKeyName + */ + + /** + * Constructs a new DiskUpdateKmsKeyRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a DiskUpdateKmsKeyRequest. + * @implements IDiskUpdateKmsKeyRequest + * @constructor + * @param {google.cloud.compute.v1beta.IDiskUpdateKmsKeyRequest=} [properties] Properties to set + */ + function DiskUpdateKmsKeyRequest(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]]; + } + + /** + * DiskUpdateKmsKeyRequest kmsKeyName. + * @member {string|null|undefined} kmsKeyName + * @memberof google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest + * @instance + */ + DiskUpdateKmsKeyRequest.prototype.kmsKeyName = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(DiskUpdateKmsKeyRequest.prototype, "_kmsKeyName", { + get: $util.oneOfGetter($oneOfFields = ["kmsKeyName"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DiskUpdateKmsKeyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1beta.IDiskUpdateKmsKeyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest} DiskUpdateKmsKeyRequest instance + */ + DiskUpdateKmsKeyRequest.create = function create(properties) { + return new DiskUpdateKmsKeyRequest(properties); + }; + + /** + * Encodes the specified DiskUpdateKmsKeyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1beta.IDiskUpdateKmsKeyRequest} message DiskUpdateKmsKeyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DiskUpdateKmsKeyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName")) + writer.uint32(/* id 484373913, wireType 2 =*/3874991306).string(message.kmsKeyName); + return writer; + }; + + /** + * Encodes the specified DiskUpdateKmsKeyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1beta.IDiskUpdateKmsKeyRequest} message DiskUpdateKmsKeyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DiskUpdateKmsKeyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DiskUpdateKmsKeyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest + * @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.DiskUpdateKmsKeyRequest} DiskUpdateKmsKeyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DiskUpdateKmsKeyRequest.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.DiskUpdateKmsKeyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 484373913: { + message.kmsKeyName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DiskUpdateKmsKeyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest} DiskUpdateKmsKeyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DiskUpdateKmsKeyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DiskUpdateKmsKeyRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DiskUpdateKmsKeyRequest.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 a DiskUpdateKmsKeyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest} DiskUpdateKmsKeyRequest + */ + DiskUpdateKmsKeyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest(); + if (object.kmsKeyName != null) + message.kmsKeyName = String(object.kmsKeyName); + return message; + }; + + /** + * Creates a plain object from a DiskUpdateKmsKeyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest} message DiskUpdateKmsKeyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DiskUpdateKmsKeyRequest.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 DiskUpdateKmsKeyRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest + * @instance + * @returns {Object.} JSON object + */ + DiskUpdateKmsKeyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DiskUpdateKmsKeyRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DiskUpdateKmsKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest"; + }; + + return DiskUpdateKmsKeyRequest; + })(); + v1beta.DisksAddResourcePoliciesRequest = (function() { /** @@ -827359,6 +856475,7 @@ * @property {google.cloud.compute.v1beta.IDuration|null} [autoCreatedReservationsDuration] FutureReservation autoCreatedReservationsDuration * @property {boolean|null} [autoDeleteAutoCreatedReservations] FutureReservation autoDeleteAutoCreatedReservations * @property {google.cloud.compute.v1beta.IFutureReservationCommitmentInfo|null} [commitmentInfo] FutureReservation commitmentInfo + * @property {string|null} [confidentialComputeType] FutureReservation confidentialComputeType * @property {string|null} [creationTimestamp] FutureReservation creationTimestamp * @property {string|null} [deploymentType] FutureReservation deploymentType * @property {string|null} [description] FutureReservation description @@ -827367,6 +856484,7 @@ * @property {string|null} [kind] FutureReservation kind * @property {string|null} [name] FutureReservation name * @property {string|null} [namePrefix] FutureReservation namePrefix + * @property {google.cloud.compute.v1beta.IFutureReservationParams|null} [params] FutureReservation params * @property {string|null} [planningStatus] FutureReservation planningStatus * @property {string|null} [protectionTier] FutureReservation protectionTier * @property {string|null} [reservationMode] FutureReservation reservationMode @@ -827445,6 +856563,14 @@ */ FutureReservation.prototype.commitmentInfo = null; + /** + * FutureReservation confidentialComputeType. + * @member {string|null|undefined} confidentialComputeType + * @memberof google.cloud.compute.v1beta.FutureReservation + * @instance + */ + FutureReservation.prototype.confidentialComputeType = null; + /** * FutureReservation creationTimestamp. * @member {string|null|undefined} creationTimestamp @@ -827509,6 +856635,14 @@ */ FutureReservation.prototype.namePrefix = null; + /** + * FutureReservation params. + * @member {google.cloud.compute.v1beta.IFutureReservationParams|null|undefined} params + * @memberof google.cloud.compute.v1beta.FutureReservation + * @instance + */ + FutureReservation.prototype.params = null; + /** * FutureReservation planningStatus. * @member {string|null|undefined} planningStatus @@ -827652,6 +856786,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(FutureReservation.prototype, "_confidentialComputeType", { + get: $util.oneOfGetter($oneOfFields = ["confidentialComputeType"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(FutureReservation.prototype, "_creationTimestamp", { get: $util.oneOfGetter($oneOfFields = ["creationTimestamp"]), @@ -827700,6 +856840,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(FutureReservation.prototype, "_params", { + get: $util.oneOfGetter($oneOfFields = ["params"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(FutureReservation.prototype, "_planningStatus", { get: $util.oneOfGetter($oneOfFields = ["planningStatus"]), @@ -827816,6 +856962,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.params != null && Object.hasOwnProperty.call(message, "params")) + $root.google.cloud.compute.v1beta.FutureReservationParams.encode(message.params, writer.uint32(/* id 78313862, wireType 2 =*/626510898).fork()).ldelim(); if (message.specificSkuProperties != null && Object.hasOwnProperty.call(message, "specificSkuProperties")) $root.google.cloud.compute.v1beta.FutureReservationSpecificSKUProperties.encode(message.specificSkuProperties, writer.uint32(/* id 108887106, wireType 2 =*/871096850).fork()).ldelim(); if (message.commitmentInfo != null && Object.hasOwnProperty.call(message, "commitmentInfo")) @@ -827840,6 +856988,8 @@ $root.google.cloud.compute.v1beta.AllocationAggregateReservation.encode(message.aggregateReservation, writer.uint32(/* id 291567948, wireType 2 =*/2332543586).fork()).ldelim(); if (message.enableEmergentMaintenance != null && Object.hasOwnProperty.call(message, "enableEmergentMaintenance")) writer.uint32(/* id 353759497, wireType 0 =*/2830075976).bool(message.enableEmergentMaintenance); + if (message.confidentialComputeType != null && Object.hasOwnProperty.call(message, "confidentialComputeType")) + writer.uint32(/* id 386447257, wireType 2 =*/3091578058).string(message.confidentialComputeType); if (message.deploymentType != null && Object.hasOwnProperty.call(message, "deploymentType")) writer.uint32(/* id 396722292, wireType 2 =*/3173778338).string(message.deploymentType); if (message.advancedDeploymentControl != null && Object.hasOwnProperty.call(message, "advancedDeploymentControl")) @@ -827916,6 +857066,10 @@ message.commitmentInfo = $root.google.cloud.compute.v1beta.FutureReservationCommitmentInfo.decode(reader, reader.uint32()); break; } + case 386447257: { + message.confidentialComputeType = reader.string(); + break; + } case 30525366: { message.creationTimestamp = reader.string(); break; @@ -827948,6 +857102,10 @@ message.namePrefix = reader.string(); break; } + case 78313862: { + message.params = $root.google.cloud.compute.v1beta.FutureReservationParams.decode(reader, reader.uint32()); + break; + } case 19714836: { message.planningStatus = reader.string(); break; @@ -828078,6 +857236,11 @@ return "commitmentInfo." + error; } } + if (message.confidentialComputeType != null && message.hasOwnProperty("confidentialComputeType")) { + properties._confidentialComputeType = 1; + if (!$util.isString(message.confidentialComputeType)) + return "confidentialComputeType: string expected"; + } if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { properties._creationTimestamp = 1; if (!$util.isString(message.creationTimestamp)) @@ -828118,6 +857281,14 @@ if (!$util.isString(message.namePrefix)) return "namePrefix: string expected"; } + if (message.params != null && message.hasOwnProperty("params")) { + properties._params = 1; + { + var error = $root.google.cloud.compute.v1beta.FutureReservationParams.verify(message.params); + if (error) + return "params." + error; + } + } if (message.planningStatus != null && message.hasOwnProperty("planningStatus")) { properties._planningStatus = 1; if (!$util.isString(message.planningStatus)) @@ -828234,6 +857405,8 @@ throw TypeError(".google.cloud.compute.v1beta.FutureReservation.commitmentInfo: object expected"); message.commitmentInfo = $root.google.cloud.compute.v1beta.FutureReservationCommitmentInfo.fromObject(object.commitmentInfo); } + if (object.confidentialComputeType != null) + message.confidentialComputeType = String(object.confidentialComputeType); if (object.creationTimestamp != null) message.creationTimestamp = String(object.creationTimestamp); if (object.deploymentType != null) @@ -828257,6 +857430,11 @@ message.name = String(object.name); if (object.namePrefix != null) message.namePrefix = String(object.namePrefix); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".google.cloud.compute.v1beta.FutureReservation.params: object expected"); + message.params = $root.google.cloud.compute.v1beta.FutureReservationParams.fromObject(object.params); + } if (object.planningStatus != null) message.planningStatus = String(object.planningStatus); if (object.protectionTier != null) @@ -828349,6 +857527,11 @@ if (options.oneofs) object._selfLinkWithId = "selfLinkWithId"; } + if (message.params != null && message.hasOwnProperty("params")) { + object.params = $root.google.cloud.compute.v1beta.FutureReservationParams.toObject(message.params, options); + if (options.oneofs) + object._params = "params"; + } if (message.specificSkuProperties != null && message.hasOwnProperty("specificSkuProperties")) { object.specificSkuProperties = $root.google.cloud.compute.v1beta.FutureReservationSpecificSKUProperties.toObject(message.specificSkuProperties, options); if (options.oneofs) @@ -828409,6 +857592,11 @@ if (options.oneofs) object._enableEmergentMaintenance = "enableEmergentMaintenance"; } + if (message.confidentialComputeType != null && message.hasOwnProperty("confidentialComputeType")) { + object.confidentialComputeType = message.confidentialComputeType; + if (options.oneofs) + object._confidentialComputeType = "confidentialComputeType"; + } if (message.deploymentType != null && message.hasOwnProperty("deploymentType")) { object.deploymentType = message.deploymentType; if (options.oneofs) @@ -828478,6 +857666,22 @@ return typeUrlPrefix + "/google.cloud.compute.v1beta.FutureReservation"; }; + /** + * ConfidentialComputeType enum. + * @name google.cloud.compute.v1beta.FutureReservation.ConfidentialComputeType + * @enum {number} + * @property {number} UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE=0 UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE value + * @property {number} CONFIDENTIAL_COMPUTE_TYPE_TDX=301241954 CONFIDENTIAL_COMPUTE_TYPE_TDX value + * @property {number} CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED=42227601 CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED value + */ + FutureReservation.ConfidentialComputeType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE"] = 0; + values[valuesById[301241954] = "CONFIDENTIAL_COMPUTE_TYPE_TDX"] = 301241954; + values[valuesById[42227601] = "CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED"] = 42227601; + return values; + })(); + /** * DeploymentType enum. * @name google.cloud.compute.v1beta.FutureReservation.DeploymentType @@ -828889,6 +858093,246 @@ return FutureReservationCommitmentInfo; })(); + v1beta.FutureReservationParams = (function() { + + /** + * Properties of a FutureReservationParams. + * @memberof google.cloud.compute.v1beta + * @interface IFutureReservationParams + * @property {Object.|null} [resourceManagerTags] FutureReservationParams resourceManagerTags + */ + + /** + * Constructs a new FutureReservationParams. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a FutureReservationParams. + * @implements IFutureReservationParams + * @constructor + * @param {google.cloud.compute.v1beta.IFutureReservationParams=} [properties] Properties to set + */ + function FutureReservationParams(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]]; + } + + /** + * FutureReservationParams resourceManagerTags. + * @member {Object.} resourceManagerTags + * @memberof google.cloud.compute.v1beta.FutureReservationParams + * @instance + */ + FutureReservationParams.prototype.resourceManagerTags = $util.emptyObject; + + /** + * Creates a new FutureReservationParams instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.FutureReservationParams + * @static + * @param {google.cloud.compute.v1beta.IFutureReservationParams=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.FutureReservationParams} FutureReservationParams instance + */ + FutureReservationParams.create = function create(properties) { + return new FutureReservationParams(properties); + }; + + /** + * Encodes the specified FutureReservationParams message. Does not implicitly {@link google.cloud.compute.v1beta.FutureReservationParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.FutureReservationParams + * @static + * @param {google.cloud.compute.v1beta.IFutureReservationParams} message FutureReservationParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FutureReservationParams.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 FutureReservationParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.FutureReservationParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.FutureReservationParams + * @static + * @param {google.cloud.compute.v1beta.IFutureReservationParams} message FutureReservationParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FutureReservationParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FutureReservationParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.FutureReservationParams + * @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.FutureReservationParams} FutureReservationParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FutureReservationParams.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.FutureReservationParams(), 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 a FutureReservationParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.FutureReservationParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.FutureReservationParams} FutureReservationParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FutureReservationParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FutureReservationParams message. + * @function verify + * @memberof google.cloud.compute.v1beta.FutureReservationParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FutureReservationParams.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 a FutureReservationParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.FutureReservationParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.FutureReservationParams} FutureReservationParams + */ + FutureReservationParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.FutureReservationParams) + return object; + var message = new $root.google.cloud.compute.v1beta.FutureReservationParams(); + if (object.resourceManagerTags) { + if (typeof object.resourceManagerTags !== "object") + throw TypeError(".google.cloud.compute.v1beta.FutureReservationParams.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 a FutureReservationParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.FutureReservationParams + * @static + * @param {google.cloud.compute.v1beta.FutureReservationParams} message FutureReservationParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FutureReservationParams.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 FutureReservationParams to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.FutureReservationParams + * @instance + * @returns {Object.} JSON object + */ + FutureReservationParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FutureReservationParams + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.FutureReservationParams + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FutureReservationParams.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.FutureReservationParams"; + }; + + return FutureReservationParams; + })(); + v1beta.FutureReservationSpecificSKUProperties = (function() { /** @@ -844907,6 +874351,510 @@ return GetHealthRegionBackendServiceRequest; })(); + v1beta.GetHealthRegionCompositeHealthCheckRequest = (function() { + + /** + * Properties of a GetHealthRegionCompositeHealthCheckRequest. + * @memberof google.cloud.compute.v1beta + * @interface IGetHealthRegionCompositeHealthCheckRequest + * @property {string|null} [compositeHealthCheck] GetHealthRegionCompositeHealthCheckRequest compositeHealthCheck + * @property {string|null} [project] GetHealthRegionCompositeHealthCheckRequest project + * @property {string|null} [region] GetHealthRegionCompositeHealthCheckRequest region + */ + + /** + * Constructs a new GetHealthRegionCompositeHealthCheckRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GetHealthRegionCompositeHealthCheckRequest. + * @implements IGetHealthRegionCompositeHealthCheckRequest + * @constructor + * @param {google.cloud.compute.v1beta.IGetHealthRegionCompositeHealthCheckRequest=} [properties] Properties to set + */ + function GetHealthRegionCompositeHealthCheckRequest(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]]; + } + + /** + * GetHealthRegionCompositeHealthCheckRequest compositeHealthCheck. + * @member {string} compositeHealthCheck + * @memberof google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest + * @instance + */ + GetHealthRegionCompositeHealthCheckRequest.prototype.compositeHealthCheck = ""; + + /** + * GetHealthRegionCompositeHealthCheckRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest + * @instance + */ + GetHealthRegionCompositeHealthCheckRequest.prototype.project = ""; + + /** + * GetHealthRegionCompositeHealthCheckRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest + * @instance + */ + GetHealthRegionCompositeHealthCheckRequest.prototype.region = ""; + + /** + * Creates a new GetHealthRegionCompositeHealthCheckRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1beta.IGetHealthRegionCompositeHealthCheckRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest} GetHealthRegionCompositeHealthCheckRequest instance + */ + GetHealthRegionCompositeHealthCheckRequest.create = function create(properties) { + return new GetHealthRegionCompositeHealthCheckRequest(properties); + }; + + /** + * Encodes the specified GetHealthRegionCompositeHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1beta.IGetHealthRegionCompositeHealthCheckRequest} message GetHealthRegionCompositeHealthCheckRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetHealthRegionCompositeHealthCheckRequest.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 GetHealthRegionCompositeHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1beta.IGetHealthRegionCompositeHealthCheckRequest} message GetHealthRegionCompositeHealthCheckRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetHealthRegionCompositeHealthCheckRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetHealthRegionCompositeHealthCheckRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest + * @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.GetHealthRegionCompositeHealthCheckRequest} GetHealthRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetHealthRegionCompositeHealthCheckRequest.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.GetHealthRegionCompositeHealthCheckRequest(); + 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 GetHealthRegionCompositeHealthCheckRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest} GetHealthRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetHealthRegionCompositeHealthCheckRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetHealthRegionCompositeHealthCheckRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetHealthRegionCompositeHealthCheckRequest.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 GetHealthRegionCompositeHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest} GetHealthRegionCompositeHealthCheckRequest + */ + GetHealthRegionCompositeHealthCheckRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest(); + 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 GetHealthRegionCompositeHealthCheckRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest} message GetHealthRegionCompositeHealthCheckRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetHealthRegionCompositeHealthCheckRequest.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 GetHealthRegionCompositeHealthCheckRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest + * @instance + * @returns {Object.} JSON object + */ + GetHealthRegionCompositeHealthCheckRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetHealthRegionCompositeHealthCheckRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetHealthRegionCompositeHealthCheckRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest"; + }; + + return GetHealthRegionCompositeHealthCheckRequest; + })(); + + v1beta.GetHealthRegionHealthSourceRequest = (function() { + + /** + * Properties of a GetHealthRegionHealthSourceRequest. + * @memberof google.cloud.compute.v1beta + * @interface IGetHealthRegionHealthSourceRequest + * @property {string|null} [healthSource] GetHealthRegionHealthSourceRequest healthSource + * @property {string|null} [project] GetHealthRegionHealthSourceRequest project + * @property {string|null} [region] GetHealthRegionHealthSourceRequest region + */ + + /** + * Constructs a new GetHealthRegionHealthSourceRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GetHealthRegionHealthSourceRequest. + * @implements IGetHealthRegionHealthSourceRequest + * @constructor + * @param {google.cloud.compute.v1beta.IGetHealthRegionHealthSourceRequest=} [properties] Properties to set + */ + function GetHealthRegionHealthSourceRequest(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]]; + } + + /** + * GetHealthRegionHealthSourceRequest healthSource. + * @member {string} healthSource + * @memberof google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest + * @instance + */ + GetHealthRegionHealthSourceRequest.prototype.healthSource = ""; + + /** + * GetHealthRegionHealthSourceRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest + * @instance + */ + GetHealthRegionHealthSourceRequest.prototype.project = ""; + + /** + * GetHealthRegionHealthSourceRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest + * @instance + */ + GetHealthRegionHealthSourceRequest.prototype.region = ""; + + /** + * Creates a new GetHealthRegionHealthSourceRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest + * @static + * @param {google.cloud.compute.v1beta.IGetHealthRegionHealthSourceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest} GetHealthRegionHealthSourceRequest instance + */ + GetHealthRegionHealthSourceRequest.create = function create(properties) { + return new GetHealthRegionHealthSourceRequest(properties); + }; + + /** + * Encodes the specified GetHealthRegionHealthSourceRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest + * @static + * @param {google.cloud.compute.v1beta.IGetHealthRegionHealthSourceRequest} message GetHealthRegionHealthSourceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetHealthRegionHealthSourceRequest.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.healthSource != null && Object.hasOwnProperty.call(message, "healthSource")) + writer.uint32(/* id 376521566, wireType 2 =*/3012172530).string(message.healthSource); + return writer; + }; + + /** + * Encodes the specified GetHealthRegionHealthSourceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest + * @static + * @param {google.cloud.compute.v1beta.IGetHealthRegionHealthSourceRequest} message GetHealthRegionHealthSourceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetHealthRegionHealthSourceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetHealthRegionHealthSourceRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest + * @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.GetHealthRegionHealthSourceRequest} GetHealthRegionHealthSourceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetHealthRegionHealthSourceRequest.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.GetHealthRegionHealthSourceRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 376521566: { + message.healthSource = 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 GetHealthRegionHealthSourceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest} GetHealthRegionHealthSourceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetHealthRegionHealthSourceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetHealthRegionHealthSourceRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetHealthRegionHealthSourceRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.healthSource != null && message.hasOwnProperty("healthSource")) + if (!$util.isString(message.healthSource)) + return "healthSource: 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 GetHealthRegionHealthSourceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest} GetHealthRegionHealthSourceRequest + */ + GetHealthRegionHealthSourceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest(); + if (object.healthSource != null) + message.healthSource = String(object.healthSource); + 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 GetHealthRegionHealthSourceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest + * @static + * @param {google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest} message GetHealthRegionHealthSourceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetHealthRegionHealthSourceRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.healthSource = ""; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.healthSource != null && message.hasOwnProperty("healthSource")) + object.healthSource = message.healthSource; + return object; + }; + + /** + * Converts this GetHealthRegionHealthSourceRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest + * @instance + * @returns {Object.} JSON object + */ + GetHealthRegionHealthSourceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetHealthRegionHealthSourceRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetHealthRegionHealthSourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest"; + }; + + return GetHealthRegionHealthSourceRequest; + })(); + v1beta.GetHealthTargetPoolRequest = (function() { /** @@ -903622,6 +933570,320 @@ return HealthSourceAggregatedList; })(); + v1beta.HealthSourceHealth = (function() { + + /** + * Properties of a HealthSourceHealth. + * @memberof google.cloud.compute.v1beta + * @interface IHealthSourceHealth + * @property {string|null} [healthState] HealthSourceHealth healthState + * @property {string|null} [kind] HealthSourceHealth kind + * @property {Array.|null} [sources] HealthSourceHealth sources + */ + + /** + * Constructs a new HealthSourceHealth. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a HealthSourceHealth. + * @implements IHealthSourceHealth + * @constructor + * @param {google.cloud.compute.v1beta.IHealthSourceHealth=} [properties] Properties to set + */ + function HealthSourceHealth(properties) { + this.sources = []; + 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]]; + } + + /** + * HealthSourceHealth healthState. + * @member {string|null|undefined} healthState + * @memberof google.cloud.compute.v1beta.HealthSourceHealth + * @instance + */ + HealthSourceHealth.prototype.healthState = null; + + /** + * HealthSourceHealth kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1beta.HealthSourceHealth + * @instance + */ + HealthSourceHealth.prototype.kind = null; + + /** + * HealthSourceHealth sources. + * @member {Array.} sources + * @memberof google.cloud.compute.v1beta.HealthSourceHealth + * @instance + */ + HealthSourceHealth.prototype.sources = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSourceHealth.prototype, "_healthState", { + get: $util.oneOfGetter($oneOfFields = ["healthState"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSourceHealth.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HealthSourceHealth instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.HealthSourceHealth + * @static + * @param {google.cloud.compute.v1beta.IHealthSourceHealth=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.HealthSourceHealth} HealthSourceHealth instance + */ + HealthSourceHealth.create = function create(properties) { + return new HealthSourceHealth(properties); + }; + + /** + * Encodes the specified HealthSourceHealth message. Does not implicitly {@link google.cloud.compute.v1beta.HealthSourceHealth.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.HealthSourceHealth + * @static + * @param {google.cloud.compute.v1beta.IHealthSourceHealth} message HealthSourceHealth message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthSourceHealth.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.sources != null && message.sources.length) + for (var i = 0; i < message.sources.length; ++i) + $root.google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo.encode(message.sources[i], writer.uint32(/* id 125606840, wireType 2 =*/1004854722).fork()).ldelim(); + if (message.healthState != null && Object.hasOwnProperty.call(message, "healthState")) + writer.uint32(/* id 324007150, wireType 2 =*/2592057202).string(message.healthState); + return writer; + }; + + /** + * Encodes the specified HealthSourceHealth message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.HealthSourceHealth.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.HealthSourceHealth + * @static + * @param {google.cloud.compute.v1beta.IHealthSourceHealth} message HealthSourceHealth message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthSourceHealth.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HealthSourceHealth message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.HealthSourceHealth + * @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.HealthSourceHealth} HealthSourceHealth + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthSourceHealth.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.HealthSourceHealth(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 324007150: { + message.healthState = reader.string(); + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 125606840: { + if (!(message.sources && message.sources.length)) + message.sources = []; + message.sources.push($root.google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HealthSourceHealth message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.HealthSourceHealth + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.HealthSourceHealth} HealthSourceHealth + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthSourceHealth.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HealthSourceHealth message. + * @function verify + * @memberof google.cloud.compute.v1beta.HealthSourceHealth + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HealthSourceHealth.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.healthState != null && message.hasOwnProperty("healthState")) { + properties._healthState = 1; + if (!$util.isString(message.healthState)) + return "healthState: string expected"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.sources != null && message.hasOwnProperty("sources")) { + if (!Array.isArray(message.sources)) + return "sources: array expected"; + for (var i = 0; i < message.sources.length; ++i) { + var error = $root.google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo.verify(message.sources[i]); + if (error) + return "sources." + error; + } + } + return null; + }; + + /** + * Creates a HealthSourceHealth message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.HealthSourceHealth + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.HealthSourceHealth} HealthSourceHealth + */ + HealthSourceHealth.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.HealthSourceHealth) + return object; + var message = new $root.google.cloud.compute.v1beta.HealthSourceHealth(); + if (object.healthState != null) + message.healthState = String(object.healthState); + if (object.kind != null) + message.kind = String(object.kind); + if (object.sources) { + if (!Array.isArray(object.sources)) + throw TypeError(".google.cloud.compute.v1beta.HealthSourceHealth.sources: array expected"); + message.sources = []; + for (var i = 0; i < object.sources.length; ++i) { + if (typeof object.sources[i] !== "object") + throw TypeError(".google.cloud.compute.v1beta.HealthSourceHealth.sources: object expected"); + message.sources[i] = $root.google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo.fromObject(object.sources[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a HealthSourceHealth message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.HealthSourceHealth + * @static + * @param {google.cloud.compute.v1beta.HealthSourceHealth} message HealthSourceHealth + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HealthSourceHealth.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.sources = []; + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.sources && message.sources.length) { + object.sources = []; + for (var j = 0; j < message.sources.length; ++j) + object.sources[j] = $root.google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo.toObject(message.sources[j], options); + } + if (message.healthState != null && message.hasOwnProperty("healthState")) { + object.healthState = message.healthState; + if (options.oneofs) + object._healthState = "healthState"; + } + return object; + }; + + /** + * Converts this HealthSourceHealth to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.HealthSourceHealth + * @instance + * @returns {Object.} JSON object + */ + HealthSourceHealth.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HealthSourceHealth + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.HealthSourceHealth + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HealthSourceHealth.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.HealthSourceHealth"; + }; + + /** + * HealthState enum. + * @name google.cloud.compute.v1beta.HealthSourceHealth.HealthState + * @enum {number} + * @property {number} UNDEFINED_HEALTH_STATE=0 UNDEFINED_HEALTH_STATE value + * @property {number} HEALTHY=439801213 HEALTHY value + * @property {number} UNHEALTHY=462118084 UNHEALTHY value + * @property {number} UNKNOWN=433141802 UNKNOWN value + */ + HealthSourceHealth.HealthState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_HEALTH_STATE"] = 0; + values[valuesById[439801213] = "HEALTHY"] = 439801213; + values[valuesById[462118084] = "UNHEALTHY"] = 462118084; + values[valuesById[433141802] = "UNKNOWN"] = 433141802; + return values; + })(); + + return HealthSourceHealth; + })(); + v1beta.HealthSourceList = (function() { /** @@ -904023,6 +934285,586 @@ return HealthSourceList; })(); + v1beta.HealthSourcesGetHealthResponseSourceInfo = (function() { + + /** + * Properties of a HealthSourcesGetHealthResponseSourceInfo. + * @memberof google.cloud.compute.v1beta + * @interface IHealthSourcesGetHealthResponseSourceInfo + * @property {Array.|null} [backends] HealthSourcesGetHealthResponseSourceInfo backends + * @property {string|null} [forwardingRule] HealthSourcesGetHealthResponseSourceInfo forwardingRule + * @property {string|null} [source] HealthSourcesGetHealthResponseSourceInfo source + */ + + /** + * Constructs a new HealthSourcesGetHealthResponseSourceInfo. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a HealthSourcesGetHealthResponseSourceInfo. + * @implements IHealthSourcesGetHealthResponseSourceInfo + * @constructor + * @param {google.cloud.compute.v1beta.IHealthSourcesGetHealthResponseSourceInfo=} [properties] Properties to set + */ + function HealthSourcesGetHealthResponseSourceInfo(properties) { + this.backends = []; + 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]]; + } + + /** + * HealthSourcesGetHealthResponseSourceInfo backends. + * @member {Array.} backends + * @memberof google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo + * @instance + */ + HealthSourcesGetHealthResponseSourceInfo.prototype.backends = $util.emptyArray; + + /** + * HealthSourcesGetHealthResponseSourceInfo forwardingRule. + * @member {string|null|undefined} forwardingRule + * @memberof google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo + * @instance + */ + HealthSourcesGetHealthResponseSourceInfo.prototype.forwardingRule = null; + + /** + * HealthSourcesGetHealthResponseSourceInfo source. + * @member {string|null|undefined} source + * @memberof google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo + * @instance + */ + HealthSourcesGetHealthResponseSourceInfo.prototype.source = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSourcesGetHealthResponseSourceInfo.prototype, "_forwardingRule", { + get: $util.oneOfGetter($oneOfFields = ["forwardingRule"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSourcesGetHealthResponseSourceInfo.prototype, "_source", { + get: $util.oneOfGetter($oneOfFields = ["source"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HealthSourcesGetHealthResponseSourceInfo instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo + * @static + * @param {google.cloud.compute.v1beta.IHealthSourcesGetHealthResponseSourceInfo=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo} HealthSourcesGetHealthResponseSourceInfo instance + */ + HealthSourcesGetHealthResponseSourceInfo.create = function create(properties) { + return new HealthSourcesGetHealthResponseSourceInfo(properties); + }; + + /** + * Encodes the specified HealthSourcesGetHealthResponseSourceInfo message. Does not implicitly {@link google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo + * @static + * @param {google.cloud.compute.v1beta.IHealthSourcesGetHealthResponseSourceInfo} message HealthSourcesGetHealthResponseSourceInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthSourcesGetHealthResponseSourceInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.source != null && Object.hasOwnProperty.call(message, "source")) + writer.uint32(/* id 177235995, wireType 2 =*/1417887962).string(message.source); + if (message.forwardingRule != null && Object.hasOwnProperty.call(message, "forwardingRule")) + writer.uint32(/* id 269964030, wireType 2 =*/2159712242).string(message.forwardingRule); + if (message.backends != null && message.backends.length) + for (var i = 0; i < message.backends.length; ++i) + $root.google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo.encode(message.backends[i], writer.uint32(/* id 510839903, wireType 2 =*/4086719226).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified HealthSourcesGetHealthResponseSourceInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo + * @static + * @param {google.cloud.compute.v1beta.IHealthSourcesGetHealthResponseSourceInfo} message HealthSourcesGetHealthResponseSourceInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthSourcesGetHealthResponseSourceInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HealthSourcesGetHealthResponseSourceInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo + * @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.HealthSourcesGetHealthResponseSourceInfo} HealthSourcesGetHealthResponseSourceInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthSourcesGetHealthResponseSourceInfo.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.HealthSourcesGetHealthResponseSourceInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 510839903: { + if (!(message.backends && message.backends.length)) + message.backends = []; + message.backends.push($root.google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo.decode(reader, reader.uint32())); + break; + } + case 269964030: { + message.forwardingRule = reader.string(); + break; + } + case 177235995: { + message.source = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HealthSourcesGetHealthResponseSourceInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo} HealthSourcesGetHealthResponseSourceInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthSourcesGetHealthResponseSourceInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HealthSourcesGetHealthResponseSourceInfo message. + * @function verify + * @memberof google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HealthSourcesGetHealthResponseSourceInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.backends != null && message.hasOwnProperty("backends")) { + if (!Array.isArray(message.backends)) + return "backends: array expected"; + for (var i = 0; i < message.backends.length; ++i) { + var error = $root.google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo.verify(message.backends[i]); + if (error) + return "backends." + error; + } + } + if (message.forwardingRule != null && message.hasOwnProperty("forwardingRule")) { + properties._forwardingRule = 1; + if (!$util.isString(message.forwardingRule)) + return "forwardingRule: string expected"; + } + if (message.source != null && message.hasOwnProperty("source")) { + properties._source = 1; + if (!$util.isString(message.source)) + return "source: string expected"; + } + return null; + }; + + /** + * Creates a HealthSourcesGetHealthResponseSourceInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo} HealthSourcesGetHealthResponseSourceInfo + */ + HealthSourcesGetHealthResponseSourceInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo) + return object; + var message = new $root.google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo(); + if (object.backends) { + if (!Array.isArray(object.backends)) + throw TypeError(".google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo.backends: array expected"); + message.backends = []; + for (var i = 0; i < object.backends.length; ++i) { + if (typeof object.backends[i] !== "object") + throw TypeError(".google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo.backends: object expected"); + message.backends[i] = $root.google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo.fromObject(object.backends[i]); + } + } + if (object.forwardingRule != null) + message.forwardingRule = String(object.forwardingRule); + if (object.source != null) + message.source = String(object.source); + return message; + }; + + /** + * Creates a plain object from a HealthSourcesGetHealthResponseSourceInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo + * @static + * @param {google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo} message HealthSourcesGetHealthResponseSourceInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HealthSourcesGetHealthResponseSourceInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.backends = []; + if (message.source != null && message.hasOwnProperty("source")) { + object.source = message.source; + if (options.oneofs) + object._source = "source"; + } + if (message.forwardingRule != null && message.hasOwnProperty("forwardingRule")) { + object.forwardingRule = message.forwardingRule; + if (options.oneofs) + object._forwardingRule = "forwardingRule"; + } + if (message.backends && message.backends.length) { + object.backends = []; + for (var j = 0; j < message.backends.length; ++j) + object.backends[j] = $root.google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo.toObject(message.backends[j], options); + } + return object; + }; + + /** + * Converts this HealthSourcesGetHealthResponseSourceInfo to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo + * @instance + * @returns {Object.} JSON object + */ + HealthSourcesGetHealthResponseSourceInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HealthSourcesGetHealthResponseSourceInfo + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HealthSourcesGetHealthResponseSourceInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfo"; + }; + + return HealthSourcesGetHealthResponseSourceInfo; + })(); + + v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo = (function() { + + /** + * Properties of a HealthSourcesGetHealthResponseSourceInfoBackendInfo. + * @memberof google.cloud.compute.v1beta + * @interface IHealthSourcesGetHealthResponseSourceInfoBackendInfo + * @property {number|null} [endpointCount] HealthSourcesGetHealthResponseSourceInfoBackendInfo endpointCount + * @property {string|null} [group] HealthSourcesGetHealthResponseSourceInfoBackendInfo group + * @property {number|null} [healthyEndpointCount] HealthSourcesGetHealthResponseSourceInfoBackendInfo healthyEndpointCount + */ + + /** + * Constructs a new HealthSourcesGetHealthResponseSourceInfoBackendInfo. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a HealthSourcesGetHealthResponseSourceInfoBackendInfo. + * @implements IHealthSourcesGetHealthResponseSourceInfoBackendInfo + * @constructor + * @param {google.cloud.compute.v1beta.IHealthSourcesGetHealthResponseSourceInfoBackendInfo=} [properties] Properties to set + */ + function HealthSourcesGetHealthResponseSourceInfoBackendInfo(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]]; + } + + /** + * HealthSourcesGetHealthResponseSourceInfoBackendInfo endpointCount. + * @member {number|null|undefined} endpointCount + * @memberof google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @instance + */ + HealthSourcesGetHealthResponseSourceInfoBackendInfo.prototype.endpointCount = null; + + /** + * HealthSourcesGetHealthResponseSourceInfoBackendInfo group. + * @member {string|null|undefined} group + * @memberof google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @instance + */ + HealthSourcesGetHealthResponseSourceInfoBackendInfo.prototype.group = null; + + /** + * HealthSourcesGetHealthResponseSourceInfoBackendInfo healthyEndpointCount. + * @member {number|null|undefined} healthyEndpointCount + * @memberof google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @instance + */ + HealthSourcesGetHealthResponseSourceInfoBackendInfo.prototype.healthyEndpointCount = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSourcesGetHealthResponseSourceInfoBackendInfo.prototype, "_endpointCount", { + get: $util.oneOfGetter($oneOfFields = ["endpointCount"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSourcesGetHealthResponseSourceInfoBackendInfo.prototype, "_group", { + get: $util.oneOfGetter($oneOfFields = ["group"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSourcesGetHealthResponseSourceInfoBackendInfo.prototype, "_healthyEndpointCount", { + get: $util.oneOfGetter($oneOfFields = ["healthyEndpointCount"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HealthSourcesGetHealthResponseSourceInfoBackendInfo instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @static + * @param {google.cloud.compute.v1beta.IHealthSourcesGetHealthResponseSourceInfoBackendInfo=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo} HealthSourcesGetHealthResponseSourceInfoBackendInfo instance + */ + HealthSourcesGetHealthResponseSourceInfoBackendInfo.create = function create(properties) { + return new HealthSourcesGetHealthResponseSourceInfoBackendInfo(properties); + }; + + /** + * Encodes the specified HealthSourcesGetHealthResponseSourceInfoBackendInfo message. Does not implicitly {@link google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @static + * @param {google.cloud.compute.v1beta.IHealthSourcesGetHealthResponseSourceInfoBackendInfo} message HealthSourcesGetHealthResponseSourceInfoBackendInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthSourcesGetHealthResponseSourceInfoBackendInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.group != null && Object.hasOwnProperty.call(message, "group")) + writer.uint32(/* id 98629247, wireType 2 =*/789033978).string(message.group); + if (message.healthyEndpointCount != null && Object.hasOwnProperty.call(message, "healthyEndpointCount")) + writer.uint32(/* id 291284167, wireType 0 =*/2330273336).int32(message.healthyEndpointCount); + if (message.endpointCount != null && Object.hasOwnProperty.call(message, "endpointCount")) + writer.uint32(/* id 486641125, wireType 0 =*/3893129000).int32(message.endpointCount); + return writer; + }; + + /** + * Encodes the specified HealthSourcesGetHealthResponseSourceInfoBackendInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @static + * @param {google.cloud.compute.v1beta.IHealthSourcesGetHealthResponseSourceInfoBackendInfo} message HealthSourcesGetHealthResponseSourceInfoBackendInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthSourcesGetHealthResponseSourceInfoBackendInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HealthSourcesGetHealthResponseSourceInfoBackendInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @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.HealthSourcesGetHealthResponseSourceInfoBackendInfo} HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthSourcesGetHealthResponseSourceInfoBackendInfo.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.HealthSourcesGetHealthResponseSourceInfoBackendInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 486641125: { + message.endpointCount = reader.int32(); + break; + } + case 98629247: { + message.group = reader.string(); + break; + } + case 291284167: { + message.healthyEndpointCount = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HealthSourcesGetHealthResponseSourceInfoBackendInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo} HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthSourcesGetHealthResponseSourceInfoBackendInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HealthSourcesGetHealthResponseSourceInfoBackendInfo message. + * @function verify + * @memberof google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HealthSourcesGetHealthResponseSourceInfoBackendInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.endpointCount != null && message.hasOwnProperty("endpointCount")) { + properties._endpointCount = 1; + if (!$util.isInteger(message.endpointCount)) + return "endpointCount: integer expected"; + } + if (message.group != null && message.hasOwnProperty("group")) { + properties._group = 1; + if (!$util.isString(message.group)) + return "group: string expected"; + } + if (message.healthyEndpointCount != null && message.hasOwnProperty("healthyEndpointCount")) { + properties._healthyEndpointCount = 1; + if (!$util.isInteger(message.healthyEndpointCount)) + return "healthyEndpointCount: integer expected"; + } + return null; + }; + + /** + * Creates a HealthSourcesGetHealthResponseSourceInfoBackendInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo} HealthSourcesGetHealthResponseSourceInfoBackendInfo + */ + HealthSourcesGetHealthResponseSourceInfoBackendInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo) + return object; + var message = new $root.google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo(); + if (object.endpointCount != null) + message.endpointCount = object.endpointCount | 0; + if (object.group != null) + message.group = String(object.group); + if (object.healthyEndpointCount != null) + message.healthyEndpointCount = object.healthyEndpointCount | 0; + return message; + }; + + /** + * Creates a plain object from a HealthSourcesGetHealthResponseSourceInfoBackendInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @static + * @param {google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo} message HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HealthSourcesGetHealthResponseSourceInfoBackendInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.group != null && message.hasOwnProperty("group")) { + object.group = message.group; + if (options.oneofs) + object._group = "group"; + } + if (message.healthyEndpointCount != null && message.hasOwnProperty("healthyEndpointCount")) { + object.healthyEndpointCount = message.healthyEndpointCount; + if (options.oneofs) + object._healthyEndpointCount = "healthyEndpointCount"; + } + if (message.endpointCount != null && message.hasOwnProperty("endpointCount")) { + object.endpointCount = message.endpointCount; + if (options.oneofs) + object._endpointCount = "endpointCount"; + } + return object; + }; + + /** + * Converts this HealthSourcesGetHealthResponseSourceInfoBackendInfo to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @instance + * @returns {Object.} JSON object + */ + HealthSourcesGetHealthResponseSourceInfoBackendInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HealthSourcesGetHealthResponseSourceInfoBackendInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.HealthSourcesGetHealthResponseSourceInfoBackendInfo"; + }; + + return HealthSourcesGetHealthResponseSourceInfoBackendInfo; + })(); + v1beta.HealthSourcesScopedList = (function() { /** @@ -959183,6 +990025,7 @@ * @memberof google.cloud.compute.v1beta * @interface IInstanceGroupManagersConfigureAcceleratorTopologiesRequest * @property {Object.|null} [acceleratorTopologyActions] InstanceGroupManagersConfigureAcceleratorTopologiesRequest acceleratorTopologyActions + * @property {Object.|null} [acceleratorTopologyConfigurations] InstanceGroupManagersConfigureAcceleratorTopologiesRequest acceleratorTopologyConfigurations */ /** @@ -959195,6 +990038,7 @@ */ function InstanceGroupManagersConfigureAcceleratorTopologiesRequest(properties) { this.acceleratorTopologyActions = {}; + this.acceleratorTopologyConfigurations = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -959209,6 +990053,14 @@ */ InstanceGroupManagersConfigureAcceleratorTopologiesRequest.prototype.acceleratorTopologyActions = $util.emptyObject; + /** + * InstanceGroupManagersConfigureAcceleratorTopologiesRequest acceleratorTopologyConfigurations. + * @member {Object.} acceleratorTopologyConfigurations + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest + * @instance + */ + InstanceGroupManagersConfigureAcceleratorTopologiesRequest.prototype.acceleratorTopologyConfigurations = $util.emptyObject; + /** * Creates a new InstanceGroupManagersConfigureAcceleratorTopologiesRequest instance using the specified properties. * @function create @@ -959236,6 +990088,11 @@ if (message.acceleratorTopologyActions != null && Object.hasOwnProperty.call(message, "acceleratorTopologyActions")) for (var keys = Object.keys(message.acceleratorTopologyActions), i = 0; i < keys.length; ++i) writer.uint32(/* id 16520833, wireType 2 =*/132166666).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.acceleratorTopologyActions[keys[i]]).ldelim(); + if (message.acceleratorTopologyConfigurations != null && Object.hasOwnProperty.call(message, "acceleratorTopologyConfigurations")) + for (var keys = Object.keys(message.acceleratorTopologyConfigurations), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 95019065, wireType 2 =*/760152522).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.encode(message.acceleratorTopologyConfigurations[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; @@ -959295,6 +990152,29 @@ message.acceleratorTopologyActions[key] = value; break; } + case 95019065: { + if (message.acceleratorTopologyConfigurations === $util.emptyObject) + message.acceleratorTopologyConfigurations = {}; + 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.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.acceleratorTopologyConfigurations[key] = value; + break; + } default: reader.skipType(tag & 7); break; @@ -959338,6 +990218,16 @@ if (!$util.isString(message.acceleratorTopologyActions[key[i]])) return "acceleratorTopologyActions: string{k:string} expected"; } + if (message.acceleratorTopologyConfigurations != null && message.hasOwnProperty("acceleratorTopologyConfigurations")) { + if (!$util.isObject(message.acceleratorTopologyConfigurations)) + return "acceleratorTopologyConfigurations: object expected"; + var key = Object.keys(message.acceleratorTopologyConfigurations); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.verify(message.acceleratorTopologyConfigurations[key[i]]); + if (error) + return "acceleratorTopologyConfigurations." + error; + } + } return null; }; @@ -959360,6 +990250,16 @@ for (var keys = Object.keys(object.acceleratorTopologyActions), i = 0; i < keys.length; ++i) message.acceleratorTopologyActions[keys[i]] = String(object.acceleratorTopologyActions[keys[i]]); } + if (object.acceleratorTopologyConfigurations) { + if (typeof object.acceleratorTopologyConfigurations !== "object") + throw TypeError(".google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest.acceleratorTopologyConfigurations: object expected"); + message.acceleratorTopologyConfigurations = {}; + for (var keys = Object.keys(object.acceleratorTopologyConfigurations), i = 0; i < keys.length; ++i) { + if (typeof object.acceleratorTopologyConfigurations[keys[i]] !== "object") + throw TypeError(".google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest.acceleratorTopologyConfigurations: object expected"); + message.acceleratorTopologyConfigurations[keys[i]] = $root.google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.fromObject(object.acceleratorTopologyConfigurations[keys[i]]); + } + } return message; }; @@ -959376,14 +990276,21 @@ if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) + if (options.objects || options.defaults) { object.acceleratorTopologyActions = {}; + object.acceleratorTopologyConfigurations = {}; + } var keys2; if (message.acceleratorTopologyActions && (keys2 = Object.keys(message.acceleratorTopologyActions)).length) { object.acceleratorTopologyActions = {}; for (var j = 0; j < keys2.length; ++j) object.acceleratorTopologyActions[keys2[j]] = message.acceleratorTopologyActions[keys2[j]]; } + if (message.acceleratorTopologyConfigurations && (keys2 = Object.keys(message.acceleratorTopologyConfigurations)).length) { + object.acceleratorTopologyConfigurations = {}; + for (var j = 0; j < keys2.length; ++j) + object.acceleratorTopologyConfigurations[keys2[j]] = $root.google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.toObject(message.acceleratorTopologyConfigurations[keys2[j]], options); + } return object; }; @@ -959416,6 +990323,275 @@ return InstanceGroupManagersConfigureAcceleratorTopologiesRequest; })(); + v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration = (function() { + + /** + * Properties of an InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration. + * @memberof google.cloud.compute.v1beta + * @interface IInstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration + * @property {string|null} [action] InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration action + * @property {string|null} [externalId] InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration externalId + */ + + /** + * Constructs a new InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration. + * @implements IInstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration + * @constructor + * @param {google.cloud.compute.v1beta.IInstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration=} [properties] Properties to set + */ + function InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration(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]]; + } + + /** + * InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration action. + * @member {string|null|undefined} action + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration + * @instance + */ + InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.prototype.action = null; + + /** + * InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration externalId. + * @member {string|null|undefined} externalId + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration + * @instance + */ + InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.prototype.externalId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.prototype, "_action", { + get: $util.oneOfGetter($oneOfFields = ["action"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.prototype, "_externalId", { + get: $util.oneOfGetter($oneOfFields = ["externalId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration + * @static + * @param {google.cloud.compute.v1beta.IInstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration} InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration instance + */ + InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.create = function create(properties) { + return new InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration(properties); + }; + + /** + * Encodes the specified InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration message. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration + * @static + * @param {google.cloud.compute.v1beta.IInstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration} message InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.action != null && Object.hasOwnProperty.call(message, "action")) + writer.uint32(/* id 187661878, wireType 2 =*/1501295026).string(message.action); + if (message.externalId != null && Object.hasOwnProperty.call(message, "externalId")) + writer.uint32(/* id 457537039, wireType 2 =*/3660296314).string(message.externalId); + return writer; + }; + + /** + * Encodes the specified InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration + * @static + * @param {google.cloud.compute.v1beta.IInstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration} message InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration + * @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.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration} InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.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.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 187661878: { + message.action = reader.string(); + break; + } + case 457537039: { + message.externalId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration} InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration message. + * @function verify + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.action != null && message.hasOwnProperty("action")) { + properties._action = 1; + if (!$util.isString(message.action)) + return "action: string expected"; + } + if (message.externalId != null && message.hasOwnProperty("externalId")) { + properties._externalId = 1; + if (!$util.isString(message.externalId)) + return "externalId: string expected"; + } + return null; + }; + + /** + * Creates an InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration} InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration + */ + InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration) + return object; + var message = new $root.google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration(); + if (object.action != null) + message.action = String(object.action); + if (object.externalId != null) + message.externalId = String(object.externalId); + return message; + }; + + /** + * Creates a plain object from an InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration + * @static + * @param {google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration} message InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.action != null && message.hasOwnProperty("action")) { + object.action = message.action; + if (options.oneofs) + object._action = "action"; + } + if (message.externalId != null && message.hasOwnProperty("externalId")) { + object.externalId = message.externalId; + if (options.oneofs) + object._externalId = "externalId"; + } + return object; + }; + + /** + * Converts this InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration + * @instance + * @returns {Object.} JSON object + */ + InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration"; + }; + + /** + * Action enum. + * @name google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.Action + * @enum {number} + * @property {number} UNDEFINED_ACTION=0 UNDEFINED_ACTION value + * @property {number} ACCELERATOR_TOPOLOGY_ACTION_UNSPECIFIED=78494314 ACCELERATOR_TOPOLOGY_ACTION_UNSPECIFIED value + * @property {number} ACTIVATE=200393971 ACTIVATE value + * @property {number} DEACTIVATE=98942068 DEACTIVATE value + */ + InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.Action = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_ACTION"] = 0; + values[valuesById[78494314] = "ACCELERATOR_TOPOLOGY_ACTION_UNSPECIFIED"] = 78494314; + values[valuesById[200393971] = "ACTIVATE"] = 200393971; + values[valuesById[98942068] = "DEACTIVATE"] = 98942068; + return values; + })(); + + return InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration; + })(); + v1beta.InstanceGroupManagersCreateInstancesRequest = (function() { /** @@ -960806,6 +991982,7 @@ * @property {string|null} [currentState] InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState currentState * @property {google.cloud.compute.v1beta.IError|null} [error] InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState error * @property {string|null} [errorTimestamp] InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState errorTimestamp + * @property {string|null} [externalId] InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState externalId */ /** @@ -960847,6 +992024,14 @@ */ InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.prototype.errorTimestamp = null; + /** + * InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState externalId. + * @member {string|null|undefined} externalId + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState + * @instance + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.prototype.externalId = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -960868,6 +992053,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.prototype, "_externalId", { + get: $util.oneOfGetter($oneOfFields = ["externalId"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState instance using the specified properties. * @function create @@ -960898,6 +992089,8 @@ writer.uint32(/* id 219548575, wireType 2 =*/1756388602).string(message.errorTimestamp); if (message.currentState != null && Object.hasOwnProperty.call(message, "currentState")) writer.uint32(/* id 438511179, wireType 2 =*/3508089434).string(message.currentState); + if (message.externalId != null && Object.hasOwnProperty.call(message, "externalId")) + writer.uint32(/* id 457537039, wireType 2 =*/3660296314).string(message.externalId); return writer; }; @@ -960946,6 +992139,10 @@ message.errorTimestamp = reader.string(); break; } + case 457537039: { + message.externalId = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -961000,6 +992197,11 @@ if (!$util.isString(message.errorTimestamp)) return "errorTimestamp: string expected"; } + if (message.externalId != null && message.hasOwnProperty("externalId")) { + properties._externalId = 1; + if (!$util.isString(message.externalId)) + return "externalId: string expected"; + } return null; }; @@ -961024,6 +992226,8 @@ } if (object.errorTimestamp != null) message.errorTimestamp = String(object.errorTimestamp); + if (object.externalId != null) + message.externalId = String(object.externalId); return message; }; @@ -961055,6 +992259,11 @@ if (options.oneofs) object._currentState = "currentState"; } + if (message.externalId != null && message.hasOwnProperty("externalId")) { + object.externalId = message.externalId; + if (options.oneofs) + object._externalId = "externalId"; + } return object; }; @@ -1089881,6 +1121090,7 @@ * @property {string|null} [ipv6Address] NetworkAttachmentConnectedEndpoint ipv6Address * @property {string|null} [projectIdOrNum] NetworkAttachmentConnectedEndpoint projectIdOrNum * @property {Array.|null} [secondaryIpCidrRanges] NetworkAttachmentConnectedEndpoint secondaryIpCidrRanges + * @property {string|null} [serviceClassId] NetworkAttachmentConnectedEndpoint serviceClassId * @property {string|null} [status] NetworkAttachmentConnectedEndpoint status * @property {string|null} [subnetwork] NetworkAttachmentConnectedEndpoint subnetwork * @property {string|null} [subnetworkCidrRange] NetworkAttachmentConnectedEndpoint subnetworkCidrRange @@ -1089934,6 +1121144,14 @@ */ NetworkAttachmentConnectedEndpoint.prototype.secondaryIpCidrRanges = $util.emptyArray; + /** + * NetworkAttachmentConnectedEndpoint serviceClassId. + * @member {string|null|undefined} serviceClassId + * @memberof google.cloud.compute.v1beta.NetworkAttachmentConnectedEndpoint + * @instance + */ + NetworkAttachmentConnectedEndpoint.prototype.serviceClassId = null; + /** * NetworkAttachmentConnectedEndpoint status. * @member {string|null|undefined} status @@ -1089979,6 +1121197,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(NetworkAttachmentConnectedEndpoint.prototype, "_serviceClassId", { + get: $util.oneOfGetter($oneOfFields = ["serviceClassId"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(NetworkAttachmentConnectedEndpoint.prototype, "_status", { get: $util.oneOfGetter($oneOfFields = ["status"]), @@ -1090036,6 +1121260,8 @@ writer.uint32(/* id 383249827, wireType 2 =*/3065998618).string(message.subnetworkCidrRange); if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) writer.uint32(/* id 406272220, wireType 2 =*/3250177762).string(message.ipAddress); + if (message.serviceClassId != null && Object.hasOwnProperty.call(message, "serviceClassId")) + writer.uint32(/* id 422763404, wireType 2 =*/3382107234).string(message.serviceClassId); return writer; }; @@ -1090090,6 +1121316,10 @@ message.secondaryIpCidrRanges.push(reader.string()); break; } + case 422763404: { + message.serviceClassId = reader.string(); + break; + } case 181260274: { message.status = reader.string(); break; @@ -1090160,6 +1121390,11 @@ if (!$util.isString(message.secondaryIpCidrRanges[i])) return "secondaryIpCidrRanges: string[] expected"; } + if (message.serviceClassId != null && message.hasOwnProperty("serviceClassId")) { + properties._serviceClassId = 1; + if (!$util.isString(message.serviceClassId)) + return "serviceClassId: string expected"; + } if (message.status != null && message.hasOwnProperty("status")) { properties._status = 1; if (!$util.isString(message.status)) @@ -1090203,6 +1121438,8 @@ for (var i = 0; i < object.secondaryIpCidrRanges.length; ++i) message.secondaryIpCidrRanges[i] = String(object.secondaryIpCidrRanges[i]); } + if (object.serviceClassId != null) + message.serviceClassId = String(object.serviceClassId); if (object.status != null) message.status = String(object.status); if (object.subnetwork != null) @@ -1090262,6 +1121499,11 @@ if (options.oneofs) object._ipAddress = "ipAddress"; } + if (message.serviceClassId != null && message.hasOwnProperty("serviceClassId")) { + object.serviceClassId = message.serviceClassId; + if (options.oneofs) + object._serviceClassId = "serviceClassId"; + } return object; }; @@ -1098711,6 +1129953,7 @@ * @property {string|null} [nicType] NetworkInterface nicType * @property {string|null} [parentNicName] NetworkInterface parentNicName * @property {number|null} [queueCount] NetworkInterface queueCount + * @property {string|null} [serviceClassId] NetworkInterface serviceClassId * @property {string|null} [stackType] NetworkInterface stackType * @property {string|null} [subnetwork] NetworkInterface subnetwork * @property {number|null} [vlan] NetworkInterface vlan @@ -1098878,6 +1130121,14 @@ */ NetworkInterface.prototype.queueCount = null; + /** + * NetworkInterface serviceClassId. + * @member {string|null|undefined} serviceClassId + * @memberof google.cloud.compute.v1beta.NetworkInterface + * @instance + */ + NetworkInterface.prototype.serviceClassId = null; + /** * NetworkInterface stackType. * @member {string|null|undefined} stackType @@ -1098995,6 +1130246,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(NetworkInterface.prototype, "_serviceClassId", { + get: $util.oneOfGetter($oneOfFields = ["serviceClassId"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(NetworkInterface.prototype, "_stackType", { get: $util.oneOfGetter($oneOfFields = ["stackType"]), @@ -1099073,6 +1130330,8 @@ writer.uint32(/* id 341563804, wireType 2 =*/2732510434).string(message.ipv6Address); if (message.parentNicName != null && Object.hasOwnProperty.call(message, "parentNicName")) writer.uint32(/* id 418764375, wireType 2 =*/3350115002).string(message.parentNicName); + if (message.serviceClassId != null && Object.hasOwnProperty.call(message, "serviceClassId")) + writer.uint32(/* id 422763404, wireType 2 =*/3382107234).string(message.serviceClassId); if (message.stackType != null && Object.hasOwnProperty.call(message, "stackType")) writer.uint32(/* id 425908881, wireType 2 =*/3407271050).string(message.stackType); if (message.ipv6AccessConfigs != null && message.ipv6AccessConfigs.length) @@ -1099196,6 +1130455,10 @@ message.queueCount = reader.int32(); break; } + case 422763404: { + message.serviceClassId = reader.string(); + break; + } case 425908881: { message.stackType = reader.string(); break; @@ -1099346,6 +1130609,11 @@ if (!$util.isInteger(message.queueCount)) return "queueCount: integer expected"; } + if (message.serviceClassId != null && message.hasOwnProperty("serviceClassId")) { + properties._serviceClassId = 1; + if (!$util.isString(message.serviceClassId)) + return "serviceClassId: string expected"; + } if (message.stackType != null && message.hasOwnProperty("stackType")) { properties._stackType = 1; if (!$util.isString(message.stackType)) @@ -1099436,6 +1130704,8 @@ message.parentNicName = String(object.parentNicName); if (object.queueCount != null) message.queueCount = object.queueCount | 0; + if (object.serviceClassId != null) + message.serviceClassId = String(object.serviceClassId); if (object.stackType != null) message.stackType = String(object.stackType); if (object.subnetwork != null) @@ -1099548,6 +1130818,11 @@ if (options.oneofs) object._parentNicName = "parentNicName"; } + if (message.serviceClassId != null && message.hasOwnProperty("serviceClassId")) { + object.serviceClassId = message.serviceClassId; + if (options.oneofs) + object._serviceClassId = "serviceClassId"; + } if (message.stackType != null && message.hasOwnProperty("stackType")) { object.stackType = message.stackType; if (options.oneofs) @@ -1171658,6 +1202933,224 @@ return RegionDiskTypeList; })(); + v1beta.RegionDiskUpdateKmsKeyRequest = (function() { + + /** + * Properties of a RegionDiskUpdateKmsKeyRequest. + * @memberof google.cloud.compute.v1beta + * @interface IRegionDiskUpdateKmsKeyRequest + * @property {string|null} [kmsKeyName] RegionDiskUpdateKmsKeyRequest kmsKeyName + */ + + /** + * Constructs a new RegionDiskUpdateKmsKeyRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a RegionDiskUpdateKmsKeyRequest. + * @implements IRegionDiskUpdateKmsKeyRequest + * @constructor + * @param {google.cloud.compute.v1beta.IRegionDiskUpdateKmsKeyRequest=} [properties] Properties to set + */ + function RegionDiskUpdateKmsKeyRequest(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]]; + } + + /** + * RegionDiskUpdateKmsKeyRequest kmsKeyName. + * @member {string|null|undefined} kmsKeyName + * @memberof google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest + * @instance + */ + RegionDiskUpdateKmsKeyRequest.prototype.kmsKeyName = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(RegionDiskUpdateKmsKeyRequest.prototype, "_kmsKeyName", { + get: $util.oneOfGetter($oneOfFields = ["kmsKeyName"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new RegionDiskUpdateKmsKeyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1beta.IRegionDiskUpdateKmsKeyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest} RegionDiskUpdateKmsKeyRequest instance + */ + RegionDiskUpdateKmsKeyRequest.create = function create(properties) { + return new RegionDiskUpdateKmsKeyRequest(properties); + }; + + /** + * Encodes the specified RegionDiskUpdateKmsKeyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1beta.IRegionDiskUpdateKmsKeyRequest} message RegionDiskUpdateKmsKeyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RegionDiskUpdateKmsKeyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName")) + writer.uint32(/* id 484373913, wireType 2 =*/3874991306).string(message.kmsKeyName); + return writer; + }; + + /** + * Encodes the specified RegionDiskUpdateKmsKeyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1beta.IRegionDiskUpdateKmsKeyRequest} message RegionDiskUpdateKmsKeyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RegionDiskUpdateKmsKeyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RegionDiskUpdateKmsKeyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest + * @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.RegionDiskUpdateKmsKeyRequest} RegionDiskUpdateKmsKeyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RegionDiskUpdateKmsKeyRequest.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.RegionDiskUpdateKmsKeyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 484373913: { + message.kmsKeyName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RegionDiskUpdateKmsKeyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest} RegionDiskUpdateKmsKeyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RegionDiskUpdateKmsKeyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RegionDiskUpdateKmsKeyRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RegionDiskUpdateKmsKeyRequest.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 a RegionDiskUpdateKmsKeyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest} RegionDiskUpdateKmsKeyRequest + */ + RegionDiskUpdateKmsKeyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest(); + if (object.kmsKeyName != null) + message.kmsKeyName = String(object.kmsKeyName); + return message; + }; + + /** + * Creates a plain object from a RegionDiskUpdateKmsKeyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest} message RegionDiskUpdateKmsKeyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RegionDiskUpdateKmsKeyRequest.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 RegionDiskUpdateKmsKeyRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest + * @instance + * @returns {Object.} JSON object + */ + RegionDiskUpdateKmsKeyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RegionDiskUpdateKmsKeyRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RegionDiskUpdateKmsKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest"; + }; + + return RegionDiskUpdateKmsKeyRequest; + })(); + v1beta.RegionDisksAddResourcePoliciesRequest = (function() { /** @@ -1181799,6 +1213292,224 @@ return RegionSetPolicyRequest; })(); + v1beta.RegionSnapshotUpdateKmsKeyRequest = (function() { + + /** + * Properties of a RegionSnapshotUpdateKmsKeyRequest. + * @memberof google.cloud.compute.v1beta + * @interface IRegionSnapshotUpdateKmsKeyRequest + * @property {string|null} [kmsKeyName] RegionSnapshotUpdateKmsKeyRequest kmsKeyName + */ + + /** + * Constructs a new RegionSnapshotUpdateKmsKeyRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a RegionSnapshotUpdateKmsKeyRequest. + * @implements IRegionSnapshotUpdateKmsKeyRequest + * @constructor + * @param {google.cloud.compute.v1beta.IRegionSnapshotUpdateKmsKeyRequest=} [properties] Properties to set + */ + function RegionSnapshotUpdateKmsKeyRequest(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]]; + } + + /** + * RegionSnapshotUpdateKmsKeyRequest kmsKeyName. + * @member {string|null|undefined} kmsKeyName + * @memberof google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest + * @instance + */ + RegionSnapshotUpdateKmsKeyRequest.prototype.kmsKeyName = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(RegionSnapshotUpdateKmsKeyRequest.prototype, "_kmsKeyName", { + get: $util.oneOfGetter($oneOfFields = ["kmsKeyName"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new RegionSnapshotUpdateKmsKeyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1beta.IRegionSnapshotUpdateKmsKeyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest} RegionSnapshotUpdateKmsKeyRequest instance + */ + RegionSnapshotUpdateKmsKeyRequest.create = function create(properties) { + return new RegionSnapshotUpdateKmsKeyRequest(properties); + }; + + /** + * Encodes the specified RegionSnapshotUpdateKmsKeyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1beta.IRegionSnapshotUpdateKmsKeyRequest} message RegionSnapshotUpdateKmsKeyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RegionSnapshotUpdateKmsKeyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName")) + writer.uint32(/* id 484373913, wireType 2 =*/3874991306).string(message.kmsKeyName); + return writer; + }; + + /** + * Encodes the specified RegionSnapshotUpdateKmsKeyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1beta.IRegionSnapshotUpdateKmsKeyRequest} message RegionSnapshotUpdateKmsKeyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RegionSnapshotUpdateKmsKeyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RegionSnapshotUpdateKmsKeyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest + * @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.RegionSnapshotUpdateKmsKeyRequest} RegionSnapshotUpdateKmsKeyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RegionSnapshotUpdateKmsKeyRequest.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.RegionSnapshotUpdateKmsKeyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 484373913: { + message.kmsKeyName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RegionSnapshotUpdateKmsKeyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest} RegionSnapshotUpdateKmsKeyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RegionSnapshotUpdateKmsKeyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RegionSnapshotUpdateKmsKeyRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RegionSnapshotUpdateKmsKeyRequest.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 a RegionSnapshotUpdateKmsKeyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest} RegionSnapshotUpdateKmsKeyRequest + */ + RegionSnapshotUpdateKmsKeyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest(); + if (object.kmsKeyName != null) + message.kmsKeyName = String(object.kmsKeyName); + return message; + }; + + /** + * Creates a plain object from a RegionSnapshotUpdateKmsKeyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest} message RegionSnapshotUpdateKmsKeyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RegionSnapshotUpdateKmsKeyRequest.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 RegionSnapshotUpdateKmsKeyRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest + * @instance + * @returns {Object.} JSON object + */ + RegionSnapshotUpdateKmsKeyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RegionSnapshotUpdateKmsKeyRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RegionSnapshotUpdateKmsKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest"; + }; + + return RegionSnapshotUpdateKmsKeyRequest; + })(); + v1beta.RegionTargetHttpsProxiesSetSslCertificatesRequest = (function() { /** @@ -1189766,6 +1221477,7 @@ * @property {google.cloud.compute.v1beta.IReservationAdvancedDeploymentControl|null} [advancedDeploymentControl] Reservation advancedDeploymentControl * @property {google.cloud.compute.v1beta.IAllocationAggregateReservation|null} [aggregateReservation] Reservation aggregateReservation * @property {string|null} [commitment] Reservation commitment + * @property {string|null} [confidentialComputeType] Reservation confidentialComputeType * @property {string|null} [creationTimestamp] Reservation creationTimestamp * @property {google.cloud.compute.v1beta.IDuration|null} [deleteAfterDuration] Reservation deleteAfterDuration * @property {string|null} [deleteAtTime] Reservation deleteAtTime @@ -1189834,6 +1221546,14 @@ */ Reservation.prototype.commitment = null; + /** + * Reservation confidentialComputeType. + * @member {string|null|undefined} confidentialComputeType + * @memberof google.cloud.compute.v1beta.Reservation + * @instance + */ + Reservation.prototype.confidentialComputeType = null; + /** * Reservation creationTimestamp. * @member {string|null|undefined} creationTimestamp @@ -1190055,6 +1221775,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(Reservation.prototype, "_confidentialComputeType", { + get: $util.oneOfGetter($oneOfFields = ["confidentialComputeType"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(Reservation.prototype, "_creationTimestamp", { get: $util.oneOfGetter($oneOfFields = ["creationTimestamp"]), @@ -1190256,6 +1221982,8 @@ writer.uint32(/* id 343918356, wireType 2 =*/2751346850).string(message.earlyAccessMaintenance); if (message.enableEmergentMaintenance != null && Object.hasOwnProperty.call(message, "enableEmergentMaintenance")) writer.uint32(/* id 353759497, wireType 0 =*/2830075976).bool(message.enableEmergentMaintenance); + if (message.confidentialComputeType != null && Object.hasOwnProperty.call(message, "confidentialComputeType")) + writer.uint32(/* id 386447257, wireType 2 =*/3091578058).string(message.confidentialComputeType); if (message.deploymentType != null && Object.hasOwnProperty.call(message, "deploymentType")) writer.uint32(/* id 396722292, wireType 2 =*/3173778338).string(message.deploymentType); if (message.specificReservation != null && Object.hasOwnProperty.call(message, "specificReservation")) @@ -1190323,6 +1222051,10 @@ message.commitment = reader.string(); break; } + case 386447257: { + message.confidentialComputeType = reader.string(); + break; + } case 30525366: { message.creationTimestamp = reader.string(); break; @@ -1190501,6 +1222233,11 @@ if (!$util.isString(message.commitment)) return "commitment: string expected"; } + if (message.confidentialComputeType != null && message.hasOwnProperty("confidentialComputeType")) { + properties._confidentialComputeType = 1; + if (!$util.isString(message.confidentialComputeType)) + return "confidentialComputeType: string expected"; + } if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { properties._creationTimestamp = 1; if (!$util.isString(message.creationTimestamp)) @@ -1190676,6 +1222413,8 @@ } if (object.commitment != null) message.commitment = String(object.commitment); + if (object.confidentialComputeType != null) + message.confidentialComputeType = String(object.confidentialComputeType); if (object.creationTimestamp != null) message.creationTimestamp = String(object.creationTimestamp); if (object.deleteAfterDuration != null) { @@ -1190880,6 +1222619,11 @@ if (options.oneofs) object._enableEmergentMaintenance = "enableEmergentMaintenance"; } + if (message.confidentialComputeType != null && message.hasOwnProperty("confidentialComputeType")) { + object.confidentialComputeType = message.confidentialComputeType; + if (options.oneofs) + object._confidentialComputeType = "confidentialComputeType"; + } if (message.deploymentType != null && message.hasOwnProperty("deploymentType")) { object.deploymentType = message.deploymentType; if (options.oneofs) @@ -1190954,6 +1222698,22 @@ return typeUrlPrefix + "/google.cloud.compute.v1beta.Reservation"; }; + /** + * ConfidentialComputeType enum. + * @name google.cloud.compute.v1beta.Reservation.ConfidentialComputeType + * @enum {number} + * @property {number} UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE=0 UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE value + * @property {number} CONFIDENTIAL_COMPUTE_TYPE_TDX=301241954 CONFIDENTIAL_COMPUTE_TYPE_TDX value + * @property {number} CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED=42227601 CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED value + */ + Reservation.ConfidentialComputeType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE"] = 0; + values[valuesById[301241954] = "CONFIDENTIAL_COMPUTE_TYPE_TDX"] = 301241954; + values[valuesById[42227601] = "CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED"] = 42227601; + return values; + })(); + /** * DeploymentType enum. * @name google.cloud.compute.v1beta.Reservation.DeploymentType @@ -1218693,6 +1250453,7 @@ * @property {number|Long|null} [estimatedTotalResourcesCount] RolloutWaveDetailsOrchestratedWaveDetails estimatedTotalResourcesCount * @property {Array.|null} [failedLocations] RolloutWaveDetailsOrchestratedWaveDetails failedLocations * @property {number|Long|null} [failedResourcesCount] RolloutWaveDetailsOrchestratedWaveDetails failedResourcesCount + * @property {Object.|null} [locationStatus] RolloutWaveDetailsOrchestratedWaveDetails locationStatus */ /** @@ -1218705,6 +1250466,7 @@ */ function RolloutWaveDetailsOrchestratedWaveDetails(properties) { this.failedLocations = []; + this.locationStatus = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1218743,6 +1250505,14 @@ */ RolloutWaveDetailsOrchestratedWaveDetails.prototype.failedResourcesCount = null; + /** + * RolloutWaveDetailsOrchestratedWaveDetails locationStatus. + * @member {Object.} locationStatus + * @memberof google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetails + * @instance + */ + RolloutWaveDetailsOrchestratedWaveDetails.prototype.locationStatus = $util.emptyObject; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -1218788,6 +1250558,11 @@ RolloutWaveDetailsOrchestratedWaveDetails.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.locationStatus != null && Object.hasOwnProperty.call(message, "locationStatus")) + for (var keys = Object.keys(message.locationStatus), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 19007420, wireType 2 =*/152059362).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.encode(message.locationStatus[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } if (message.failedLocations != null && message.failedLocations.length) for (var i = 0; i < message.failedLocations.length; ++i) writer.uint32(/* id 30506460, wireType 2 =*/244051682).string(message.failedLocations[i]); @@ -1218827,7 +1250602,7 @@ RolloutWaveDetailsOrchestratedWaveDetails.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.RolloutWaveDetailsOrchestratedWaveDetails(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetails(), key, value; while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1218851,6 +1250626,29 @@ message.failedResourcesCount = reader.int64(); break; } + case 19007420: { + if (message.locationStatus === $util.emptyObject) + message.locationStatus = {}; + 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.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.locationStatus[key] = value; + break; + } default: reader.skipType(tag & 7); break; @@ -1218909,6 +1250707,16 @@ if (!$util.isInteger(message.failedResourcesCount) && !(message.failedResourcesCount && $util.isInteger(message.failedResourcesCount.low) && $util.isInteger(message.failedResourcesCount.high))) return "failedResourcesCount: integer|Long expected"; } + if (message.locationStatus != null && message.hasOwnProperty("locationStatus")) { + if (!$util.isObject(message.locationStatus)) + return "locationStatus: object expected"; + var key = Object.keys(message.locationStatus); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.verify(message.locationStatus[key[i]]); + if (error) + return "locationStatus." + error; + } + } return null; }; @@ -1218958,6 +1250766,16 @@ message.failedResourcesCount = object.failedResourcesCount; else if (typeof object.failedResourcesCount === "object") message.failedResourcesCount = new $util.LongBits(object.failedResourcesCount.low >>> 0, object.failedResourcesCount.high >>> 0).toNumber(); + if (object.locationStatus) { + if (typeof object.locationStatus !== "object") + throw TypeError(".google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetails.locationStatus: object expected"); + message.locationStatus = {}; + for (var keys = Object.keys(object.locationStatus), i = 0; i < keys.length; ++i) { + if (typeof object.locationStatus[keys[i]] !== "object") + throw TypeError(".google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetails.locationStatus: object expected"); + message.locationStatus[keys[i]] = $root.google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.fromObject(object.locationStatus[keys[i]]); + } + } return message; }; @@ -1218976,6 +1250794,14 @@ var object = {}; if (options.arrays || options.defaults) object.failedLocations = []; + if (options.objects || options.defaults) + object.locationStatus = {}; + var keys2; + if (message.locationStatus && (keys2 = Object.keys(message.locationStatus)).length) { + object.locationStatus = {}; + for (var j = 0; j < keys2.length; ++j) + object.locationStatus[keys2[j]] = $root.google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.toObject(message.locationStatus[keys2[j]], options); + } if (message.failedLocations && message.failedLocations.length) { object.failedLocations = []; for (var j = 0; j < message.failedLocations.length; ++j) @@ -1219037,6 +1250863,248 @@ return RolloutWaveDetailsOrchestratedWaveDetails; })(); + v1beta.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus = (function() { + + /** + * Properties of a RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus. + * @memberof google.cloud.compute.v1beta + * @interface IRolloutWaveDetailsOrchestratedWaveDetailsLocationStatus + * @property {string|null} [state] RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus state + */ + + /** + * Constructs a new RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus. + * @implements IRolloutWaveDetailsOrchestratedWaveDetailsLocationStatus + * @constructor + * @param {google.cloud.compute.v1beta.IRolloutWaveDetailsOrchestratedWaveDetailsLocationStatus=} [properties] Properties to set + */ + function RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus(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]]; + } + + /** + * RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus state. + * @member {string|null|undefined} state + * @memberof google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus + * @instance + */ + RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.prototype.state = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.prototype, "_state", { + get: $util.oneOfGetter($oneOfFields = ["state"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus + * @static + * @param {google.cloud.compute.v1beta.IRolloutWaveDetailsOrchestratedWaveDetailsLocationStatus=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus} RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus instance + */ + RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.create = function create(properties) { + return new RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus(properties); + }; + + /** + * Encodes the specified RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus message. Does not implicitly {@link google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus + * @static + * @param {google.cloud.compute.v1beta.IRolloutWaveDetailsOrchestratedWaveDetailsLocationStatus} message RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.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); + return writer; + }; + + /** + * Encodes the specified RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus + * @static + * @param {google.cloud.compute.v1beta.IRolloutWaveDetailsOrchestratedWaveDetailsLocationStatus} message RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus + * @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.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus} RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.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.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 109757585: { + message.state = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus} RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus message. + * @function verify + * @memberof google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.state != null && message.hasOwnProperty("state")) { + properties._state = 1; + if (!$util.isString(message.state)) + return "state: string expected"; + } + return null; + }; + + /** + * Creates a RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus} RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus + */ + RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus) + return object; + var message = new $root.google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus(); + if (object.state != null) + message.state = String(object.state); + return message; + }; + + /** + * Creates a plain object from a RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus + * @static + * @param {google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus} message RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.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"; + } + return object; + }; + + /** + * Converts this RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus + * @instance + * @returns {Object.} JSON object + */ + RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus"; + }; + + /** + * State enum. + * @name google.cloud.compute.v1beta.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.State + * @enum {number} + * @property {number} UNDEFINED_STATE=0 UNDEFINED_STATE value + * @property {number} STATE_FAILED=50857931 STATE_FAILED value + * @property {number} STATE_IN_PROGRESS=413162809 STATE_IN_PROGRESS value + * @property {number} STATE_PENDING=369985449 STATE_PENDING value + * @property {number} STATE_SKIPPED=515663170 STATE_SKIPPED value + * @property {number} STATE_SUCCEEDED=466911219 STATE_SUCCEEDED value + * @property {number} STATE_UNSPECIFIED=470755401 STATE_UNSPECIFIED value + */ + RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_STATE"] = 0; + values[valuesById[50857931] = "STATE_FAILED"] = 50857931; + values[valuesById[413162809] = "STATE_IN_PROGRESS"] = 413162809; + values[valuesById[369985449] = "STATE_PENDING"] = 369985449; + values[valuesById[515663170] = "STATE_SKIPPED"] = 515663170; + values[valuesById[466911219] = "STATE_SUCCEEDED"] = 466911219; + values[valuesById[470755401] = "STATE_UNSPECIFIED"] = 470755401; + return values; + })(); + + return RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus; + })(); + v1beta.RolloutsListResponse = (function() { /** @@ -1296898,6 +1328966,224 @@ return SnapshotSettingsStorageLocationSettingsStorageLocationPreference; })(); + v1beta.SnapshotUpdateKmsKeyRequest = (function() { + + /** + * Properties of a SnapshotUpdateKmsKeyRequest. + * @memberof google.cloud.compute.v1beta + * @interface ISnapshotUpdateKmsKeyRequest + * @property {string|null} [kmsKeyName] SnapshotUpdateKmsKeyRequest kmsKeyName + */ + + /** + * Constructs a new SnapshotUpdateKmsKeyRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a SnapshotUpdateKmsKeyRequest. + * @implements ISnapshotUpdateKmsKeyRequest + * @constructor + * @param {google.cloud.compute.v1beta.ISnapshotUpdateKmsKeyRequest=} [properties] Properties to set + */ + function SnapshotUpdateKmsKeyRequest(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]]; + } + + /** + * SnapshotUpdateKmsKeyRequest kmsKeyName. + * @member {string|null|undefined} kmsKeyName + * @memberof google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest + * @instance + */ + SnapshotUpdateKmsKeyRequest.prototype.kmsKeyName = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(SnapshotUpdateKmsKeyRequest.prototype, "_kmsKeyName", { + get: $util.oneOfGetter($oneOfFields = ["kmsKeyName"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SnapshotUpdateKmsKeyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1beta.ISnapshotUpdateKmsKeyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest} SnapshotUpdateKmsKeyRequest instance + */ + SnapshotUpdateKmsKeyRequest.create = function create(properties) { + return new SnapshotUpdateKmsKeyRequest(properties); + }; + + /** + * Encodes the specified SnapshotUpdateKmsKeyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1beta.ISnapshotUpdateKmsKeyRequest} message SnapshotUpdateKmsKeyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SnapshotUpdateKmsKeyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName")) + writer.uint32(/* id 484373913, wireType 2 =*/3874991306).string(message.kmsKeyName); + return writer; + }; + + /** + * Encodes the specified SnapshotUpdateKmsKeyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1beta.ISnapshotUpdateKmsKeyRequest} message SnapshotUpdateKmsKeyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SnapshotUpdateKmsKeyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SnapshotUpdateKmsKeyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest + * @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.SnapshotUpdateKmsKeyRequest} SnapshotUpdateKmsKeyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SnapshotUpdateKmsKeyRequest.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.SnapshotUpdateKmsKeyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 484373913: { + message.kmsKeyName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SnapshotUpdateKmsKeyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest} SnapshotUpdateKmsKeyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SnapshotUpdateKmsKeyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SnapshotUpdateKmsKeyRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SnapshotUpdateKmsKeyRequest.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 a SnapshotUpdateKmsKeyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest} SnapshotUpdateKmsKeyRequest + */ + SnapshotUpdateKmsKeyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest(); + if (object.kmsKeyName != null) + message.kmsKeyName = String(object.kmsKeyName); + return message; + }; + + /** + * Creates a plain object from a SnapshotUpdateKmsKeyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest + * @static + * @param {google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest} message SnapshotUpdateKmsKeyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SnapshotUpdateKmsKeyRequest.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 SnapshotUpdateKmsKeyRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest + * @instance + * @returns {Object.} JSON object + */ + SnapshotUpdateKmsKeyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SnapshotUpdateKmsKeyRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SnapshotUpdateKmsKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest"; + }; + + return SnapshotUpdateKmsKeyRequest; + })(); + v1beta.SnapshotsScopedList = (function() { /** @@ -1366314,40 +1398600,797 @@ }; /** - * Decodes an UpdateInstanceGroupManagerRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateInstanceGroupManagerRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.UpdateInstanceGroupManagerRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.UpdateInstanceGroupManagerRequest} UpdateInstanceGroupManagerRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateInstanceGroupManagerRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateInstanceGroupManagerRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.UpdateInstanceGroupManagerRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateInstanceGroupManagerRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.instanceGroupManager != null && message.hasOwnProperty("instanceGroupManager")) + if (!$util.isString(message.instanceGroupManager)) + return "instanceGroupManager: string expected"; + if (message.instanceGroupManagerResource != null && message.hasOwnProperty("instanceGroupManagerResource")) { + var error = $root.google.cloud.compute.v1beta.InstanceGroupManager.verify(message.instanceGroupManagerResource); + if (error) + return "instanceGroupManagerResource." + error; + } + 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.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates an UpdateInstanceGroupManagerRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.UpdateInstanceGroupManagerRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.UpdateInstanceGroupManagerRequest} UpdateInstanceGroupManagerRequest + */ + UpdateInstanceGroupManagerRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.UpdateInstanceGroupManagerRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.UpdateInstanceGroupManagerRequest(); + if (object.instanceGroupManager != null) + message.instanceGroupManager = String(object.instanceGroupManager); + if (object.instanceGroupManagerResource != null) { + if (typeof object.instanceGroupManagerResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.UpdateInstanceGroupManagerRequest.instanceGroupManagerResource: object expected"); + message.instanceGroupManagerResource = $root.google.cloud.compute.v1beta.InstanceGroupManager.fromObject(object.instanceGroupManagerResource); + } + if (object.project != null) + message.project = String(object.project); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from an UpdateInstanceGroupManagerRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.UpdateInstanceGroupManagerRequest + * @static + * @param {google.cloud.compute.v1beta.UpdateInstanceGroupManagerRequest} message UpdateInstanceGroupManagerRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateInstanceGroupManagerRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.project = ""; + object.instanceGroupManager = ""; + object.instanceGroupManagerResource = 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.instanceGroupManager != null && message.hasOwnProperty("instanceGroupManager")) + object.instanceGroupManager = message.instanceGroupManager; + if (message.instanceGroupManagerResource != null && message.hasOwnProperty("instanceGroupManagerResource")) + object.instanceGroupManagerResource = $root.google.cloud.compute.v1beta.InstanceGroupManager.toObject(message.instanceGroupManagerResource, options); + return object; + }; + + /** + * Converts this UpdateInstanceGroupManagerRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.UpdateInstanceGroupManagerRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateInstanceGroupManagerRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdateInstanceGroupManagerRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.UpdateInstanceGroupManagerRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateInstanceGroupManagerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.UpdateInstanceGroupManagerRequest"; + }; + + return UpdateInstanceGroupManagerRequest; + })(); + + v1beta.UpdateInstanceRequest = (function() { + + /** + * Properties of an UpdateInstanceRequest. + * @memberof google.cloud.compute.v1beta + * @interface IUpdateInstanceRequest + * @property {boolean|null} [discardLocalSsd] UpdateInstanceRequest discardLocalSsd + * @property {string|null} [instance] UpdateInstanceRequest instance + * @property {google.cloud.compute.v1beta.IInstance|null} [instanceResource] UpdateInstanceRequest instanceResource + * @property {string|null} [minimalAction] UpdateInstanceRequest minimalAction + * @property {string|null} [mostDisruptiveAllowedAction] UpdateInstanceRequest mostDisruptiveAllowedAction + * @property {string|null} [project] UpdateInstanceRequest project + * @property {string|null} [requestId] UpdateInstanceRequest requestId + * @property {string|null} [zone] UpdateInstanceRequest zone + */ + + /** + * Constructs a new UpdateInstanceRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an UpdateInstanceRequest. + * @implements IUpdateInstanceRequest + * @constructor + * @param {google.cloud.compute.v1beta.IUpdateInstanceRequest=} [properties] Properties to set + */ + function UpdateInstanceRequest(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]]; + } + + /** + * UpdateInstanceRequest discardLocalSsd. + * @member {boolean|null|undefined} discardLocalSsd + * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * @instance + */ + UpdateInstanceRequest.prototype.discardLocalSsd = null; + + /** + * UpdateInstanceRequest instance. + * @member {string} instance + * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * @instance + */ + UpdateInstanceRequest.prototype.instance = ""; + + /** + * UpdateInstanceRequest instanceResource. + * @member {google.cloud.compute.v1beta.IInstance|null|undefined} instanceResource + * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * @instance + */ + UpdateInstanceRequest.prototype.instanceResource = null; + + /** + * UpdateInstanceRequest minimalAction. + * @member {string|null|undefined} minimalAction + * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * @instance + */ + UpdateInstanceRequest.prototype.minimalAction = null; + + /** + * UpdateInstanceRequest mostDisruptiveAllowedAction. + * @member {string|null|undefined} mostDisruptiveAllowedAction + * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * @instance + */ + UpdateInstanceRequest.prototype.mostDisruptiveAllowedAction = null; + + /** + * UpdateInstanceRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * @instance + */ + UpdateInstanceRequest.prototype.project = ""; + + /** + * UpdateInstanceRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * @instance + */ + UpdateInstanceRequest.prototype.requestId = null; + + /** + * UpdateInstanceRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * @instance + */ + UpdateInstanceRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(UpdateInstanceRequest.prototype, "_discardLocalSsd", { + get: $util.oneOfGetter($oneOfFields = ["discardLocalSsd"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(UpdateInstanceRequest.prototype, "_minimalAction", { + get: $util.oneOfGetter($oneOfFields = ["minimalAction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(UpdateInstanceRequest.prototype, "_mostDisruptiveAllowedAction", { + get: $util.oneOfGetter($oneOfFields = ["mostDisruptiveAllowedAction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(UpdateInstanceRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new UpdateInstanceRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * @static + * @param {google.cloud.compute.v1beta.IUpdateInstanceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.UpdateInstanceRequest} UpdateInstanceRequest instance + */ + UpdateInstanceRequest.create = function create(properties) { + return new UpdateInstanceRequest(properties); + }; + + /** + * Encodes the specified UpdateInstanceRequest message. Does not implicitly {@link google.cloud.compute.v1beta.UpdateInstanceRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * @static + * @param {google.cloud.compute.v1beta.IUpdateInstanceRequest} message UpdateInstanceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateInstanceRequest.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.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.mostDisruptiveAllowedAction != null && Object.hasOwnProperty.call(message, "mostDisruptiveAllowedAction")) + writer.uint32(/* id 66103053, wireType 2 =*/528824426).string(message.mostDisruptiveAllowedAction); + if (message.instanceResource != null && Object.hasOwnProperty.call(message, "instanceResource")) + $root.google.cloud.compute.v1beta.Instance.encode(message.instanceResource, writer.uint32(/* id 215988344, wireType 2 =*/1727906754).fork()).ldelim(); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.minimalAction != null && Object.hasOwnProperty.call(message, "minimalAction")) + writer.uint32(/* id 270567060, wireType 2 =*/2164536482).string(message.minimalAction); + if (message.discardLocalSsd != null && Object.hasOwnProperty.call(message, "discardLocalSsd")) + writer.uint32(/* id 319517903, wireType 0 =*/2556143224).bool(message.discardLocalSsd); + return writer; + }; + + /** + * Encodes the specified UpdateInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.UpdateInstanceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * @static + * @param {google.cloud.compute.v1beta.IUpdateInstanceRequest} message UpdateInstanceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateInstanceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateInstanceRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * @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.UpdateInstanceRequest} UpdateInstanceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateInstanceRequest.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.UpdateInstanceRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 319517903: { + message.discardLocalSsd = reader.bool(); + break; + } + case 18257045: { + message.instance = reader.string(); + break; + } + case 215988344: { + message.instanceResource = $root.google.cloud.compute.v1beta.Instance.decode(reader, reader.uint32()); + break; + } + case 270567060: { + message.minimalAction = reader.string(); + break; + } + case 66103053: { + message.mostDisruptiveAllowedAction = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateInstanceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.UpdateInstanceRequest} UpdateInstanceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateInstanceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateInstanceRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateInstanceRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.discardLocalSsd != null && message.hasOwnProperty("discardLocalSsd")) { + properties._discardLocalSsd = 1; + if (typeof message.discardLocalSsd !== "boolean") + return "discardLocalSsd: boolean expected"; + } + if (message.instance != null && message.hasOwnProperty("instance")) + if (!$util.isString(message.instance)) + return "instance: string expected"; + if (message.instanceResource != null && message.hasOwnProperty("instanceResource")) { + var error = $root.google.cloud.compute.v1beta.Instance.verify(message.instanceResource); + if (error) + return "instanceResource." + error; + } + if (message.minimalAction != null && message.hasOwnProperty("minimalAction")) { + properties._minimalAction = 1; + if (!$util.isString(message.minimalAction)) + return "minimalAction: string expected"; + } + if (message.mostDisruptiveAllowedAction != null && message.hasOwnProperty("mostDisruptiveAllowedAction")) { + properties._mostDisruptiveAllowedAction = 1; + if (!$util.isString(message.mostDisruptiveAllowedAction)) + return "mostDisruptiveAllowedAction: string expected"; + } + 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.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates an UpdateInstanceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.UpdateInstanceRequest} UpdateInstanceRequest + */ + UpdateInstanceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.UpdateInstanceRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.UpdateInstanceRequest(); + if (object.discardLocalSsd != null) + message.discardLocalSsd = Boolean(object.discardLocalSsd); + if (object.instance != null) + message.instance = String(object.instance); + if (object.instanceResource != null) { + if (typeof object.instanceResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.UpdateInstanceRequest.instanceResource: object expected"); + message.instanceResource = $root.google.cloud.compute.v1beta.Instance.fromObject(object.instanceResource); + } + if (object.minimalAction != null) + message.minimalAction = String(object.minimalAction); + if (object.mostDisruptiveAllowedAction != null) + message.mostDisruptiveAllowedAction = String(object.mostDisruptiveAllowedAction); + if (object.project != null) + message.project = String(object.project); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from an UpdateInstanceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * @static + * @param {google.cloud.compute.v1beta.UpdateInstanceRequest} message UpdateInstanceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateInstanceRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.instance = ""; + object.instanceResource = null; + 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.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.mostDisruptiveAllowedAction != null && message.hasOwnProperty("mostDisruptiveAllowedAction")) { + object.mostDisruptiveAllowedAction = message.mostDisruptiveAllowedAction; + if (options.oneofs) + object._mostDisruptiveAllowedAction = "mostDisruptiveAllowedAction"; + } + if (message.instanceResource != null && message.hasOwnProperty("instanceResource")) + object.instanceResource = $root.google.cloud.compute.v1beta.Instance.toObject(message.instanceResource, options); + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.minimalAction != null && message.hasOwnProperty("minimalAction")) { + object.minimalAction = message.minimalAction; + if (options.oneofs) + object._minimalAction = "minimalAction"; + } + if (message.discardLocalSsd != null && message.hasOwnProperty("discardLocalSsd")) { + object.discardLocalSsd = message.discardLocalSsd; + if (options.oneofs) + object._discardLocalSsd = "discardLocalSsd"; + } + return object; + }; + + /** + * Converts this UpdateInstanceRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateInstanceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdateInstanceRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateInstanceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.UpdateInstanceRequest"; + }; + + /** + * MinimalAction enum. + * @name google.cloud.compute.v1beta.UpdateInstanceRequest.MinimalAction + * @enum {number} + * @property {number} UNDEFINED_MINIMAL_ACTION=0 UNDEFINED_MINIMAL_ACTION value + */ + UpdateInstanceRequest.MinimalAction = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_MINIMAL_ACTION"] = 0; + return values; + })(); + + /** + * MostDisruptiveAllowedAction enum. + * @name google.cloud.compute.v1beta.UpdateInstanceRequest.MostDisruptiveAllowedAction + * @enum {number} + * @property {number} UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION=0 UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION value + */ + UpdateInstanceRequest.MostDisruptiveAllowedAction = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION"] = 0; + return values; + })(); + + return UpdateInstanceRequest; + })(); + + v1beta.UpdateKmsKeyDiskRequest = (function() { + + /** + * Properties of an UpdateKmsKeyDiskRequest. + * @memberof google.cloud.compute.v1beta + * @interface IUpdateKmsKeyDiskRequest + * @property {string|null} [disk] UpdateKmsKeyDiskRequest disk + * @property {google.cloud.compute.v1beta.IDiskUpdateKmsKeyRequest|null} [diskUpdateKmsKeyRequestResource] UpdateKmsKeyDiskRequest diskUpdateKmsKeyRequestResource + * @property {string|null} [project] UpdateKmsKeyDiskRequest project + * @property {string|null} [requestId] UpdateKmsKeyDiskRequest requestId + * @property {string|null} [zone] UpdateKmsKeyDiskRequest zone + */ + + /** + * Constructs a new UpdateKmsKeyDiskRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an UpdateKmsKeyDiskRequest. + * @implements IUpdateKmsKeyDiskRequest + * @constructor + * @param {google.cloud.compute.v1beta.IUpdateKmsKeyDiskRequest=} [properties] Properties to set + */ + function UpdateKmsKeyDiskRequest(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]]; + } + + /** + * UpdateKmsKeyDiskRequest disk. + * @member {string} disk + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest + * @instance + */ + UpdateKmsKeyDiskRequest.prototype.disk = ""; + + /** + * UpdateKmsKeyDiskRequest diskUpdateKmsKeyRequestResource. + * @member {google.cloud.compute.v1beta.IDiskUpdateKmsKeyRequest|null|undefined} diskUpdateKmsKeyRequestResource + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest + * @instance + */ + UpdateKmsKeyDiskRequest.prototype.diskUpdateKmsKeyRequestResource = null; + + /** + * UpdateKmsKeyDiskRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest + * @instance + */ + UpdateKmsKeyDiskRequest.prototype.project = ""; + + /** + * UpdateKmsKeyDiskRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest + * @instance + */ + UpdateKmsKeyDiskRequest.prototype.requestId = null; + + /** + * UpdateKmsKeyDiskRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest + * @instance + */ + UpdateKmsKeyDiskRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(UpdateKmsKeyDiskRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new UpdateKmsKeyDiskRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest + * @static + * @param {google.cloud.compute.v1beta.IUpdateKmsKeyDiskRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest} UpdateKmsKeyDiskRequest instance + */ + UpdateKmsKeyDiskRequest.create = function create(properties) { + return new UpdateKmsKeyDiskRequest(properties); + }; + + /** + * Encodes the specified UpdateKmsKeyDiskRequest message. Does not implicitly {@link google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest + * @static + * @param {google.cloud.compute.v1beta.IUpdateKmsKeyDiskRequest} message UpdateKmsKeyDiskRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateKmsKeyDiskRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.disk != null && Object.hasOwnProperty.call(message, "disk")) + writer.uint32(/* id 3083677, wireType 2 =*/24669418).string(message.disk); + 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.diskUpdateKmsKeyRequestResource != null && Object.hasOwnProperty.call(message, "diskUpdateKmsKeyRequestResource")) + $root.google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest.encode(message.diskUpdateKmsKeyRequestResource, writer.uint32(/* id 178025952, wireType 2 =*/1424207618).fork()).ldelim(); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + return writer; + }; + + /** + * Encodes the specified UpdateKmsKeyDiskRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest + * @static + * @param {google.cloud.compute.v1beta.IUpdateKmsKeyDiskRequest} message UpdateKmsKeyDiskRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateKmsKeyDiskRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateKmsKeyDiskRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest + * @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.UpdateKmsKeyDiskRequest} UpdateKmsKeyDiskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateKmsKeyDiskRequest.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.UpdateKmsKeyDiskRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 3083677: { + message.disk = reader.string(); + break; + } + case 178025952: { + message.diskUpdateKmsKeyRequestResource = $root.google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest.decode(reader, reader.uint32()); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateKmsKeyDiskRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.UpdateInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.UpdateInstanceGroupManagerRequest} UpdateInstanceGroupManagerRequest + * @returns {google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest} UpdateKmsKeyDiskRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateInstanceGroupManagerRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateKmsKeyDiskRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateInstanceGroupManagerRequest message. + * Verifies an UpdateKmsKeyDiskRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.UpdateInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateInstanceGroupManagerRequest.verify = function verify(message) { + UpdateKmsKeyDiskRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.instanceGroupManager != null && message.hasOwnProperty("instanceGroupManager")) - if (!$util.isString(message.instanceGroupManager)) - return "instanceGroupManager: string expected"; - if (message.instanceGroupManagerResource != null && message.hasOwnProperty("instanceGroupManagerResource")) { - var error = $root.google.cloud.compute.v1beta.InstanceGroupManager.verify(message.instanceGroupManagerResource); + if (message.disk != null && message.hasOwnProperty("disk")) + if (!$util.isString(message.disk)) + return "disk: string expected"; + if (message.diskUpdateKmsKeyRequestResource != null && message.hasOwnProperty("diskUpdateKmsKeyRequestResource")) { + var error = $root.google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest.verify(message.diskUpdateKmsKeyRequestResource); if (error) - return "instanceGroupManagerResource." + error; + return "diskUpdateKmsKeyRequestResource." + error; } if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) @@ -1366364,23 +1399407,23 @@ }; /** - * Creates an UpdateInstanceGroupManagerRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateKmsKeyDiskRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.UpdateInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.UpdateInstanceGroupManagerRequest} UpdateInstanceGroupManagerRequest + * @returns {google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest} UpdateKmsKeyDiskRequest */ - UpdateInstanceGroupManagerRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.UpdateInstanceGroupManagerRequest) + UpdateKmsKeyDiskRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest) return object; - var message = new $root.google.cloud.compute.v1beta.UpdateInstanceGroupManagerRequest(); - if (object.instanceGroupManager != null) - message.instanceGroupManager = String(object.instanceGroupManager); - if (object.instanceGroupManagerResource != null) { - if (typeof object.instanceGroupManagerResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.UpdateInstanceGroupManagerRequest.instanceGroupManagerResource: object expected"); - message.instanceGroupManagerResource = $root.google.cloud.compute.v1beta.InstanceGroupManager.fromObject(object.instanceGroupManagerResource); + var message = new $root.google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest(); + if (object.disk != null) + message.disk = String(object.disk); + if (object.diskUpdateKmsKeyRequestResource != null) { + if (typeof object.diskUpdateKmsKeyRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest.diskUpdateKmsKeyRequestResource: object expected"); + message.diskUpdateKmsKeyRequestResource = $root.google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest.fromObject(object.diskUpdateKmsKeyRequestResource); } if (object.project != null) message.project = String(object.project); @@ -1366392,24 +1399435,26 @@ }; /** - * Creates a plain object from an UpdateInstanceGroupManagerRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateKmsKeyDiskRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.UpdateInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest * @static - * @param {google.cloud.compute.v1beta.UpdateInstanceGroupManagerRequest} message UpdateInstanceGroupManagerRequest + * @param {google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest} message UpdateKmsKeyDiskRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateInstanceGroupManagerRequest.toObject = function toObject(message, options) { + UpdateKmsKeyDiskRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { + object.disk = ""; object.zone = ""; + object.diskUpdateKmsKeyRequestResource = null; object.project = ""; - object.instanceGroupManager = ""; - object.instanceGroupManagerResource = null; } + if (message.disk != null && message.hasOwnProperty("disk")) + object.disk = message.disk; if (message.zone != null && message.hasOwnProperty("zone")) object.zone = message.zone; if (message.requestId != null && message.hasOwnProperty("requestId")) { @@ -1366417,69 +1399462,64 @@ if (options.oneofs) object._requestId = "requestId"; } + if (message.diskUpdateKmsKeyRequestResource != null && message.hasOwnProperty("diskUpdateKmsKeyRequestResource")) + object.diskUpdateKmsKeyRequestResource = $root.google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest.toObject(message.diskUpdateKmsKeyRequestResource, options); if (message.project != null && message.hasOwnProperty("project")) object.project = message.project; - if (message.instanceGroupManager != null && message.hasOwnProperty("instanceGroupManager")) - object.instanceGroupManager = message.instanceGroupManager; - if (message.instanceGroupManagerResource != null && message.hasOwnProperty("instanceGroupManagerResource")) - object.instanceGroupManagerResource = $root.google.cloud.compute.v1beta.InstanceGroupManager.toObject(message.instanceGroupManagerResource, options); return object; }; /** - * Converts this UpdateInstanceGroupManagerRequest to JSON. + * Converts this UpdateKmsKeyDiskRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.UpdateInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest * @instance * @returns {Object.} JSON object */ - UpdateInstanceGroupManagerRequest.prototype.toJSON = function toJSON() { + UpdateKmsKeyDiskRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateInstanceGroupManagerRequest + * Gets the default type url for UpdateKmsKeyDiskRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.UpdateInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateInstanceGroupManagerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateKmsKeyDiskRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.UpdateInstanceGroupManagerRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest"; }; - return UpdateInstanceGroupManagerRequest; + return UpdateKmsKeyDiskRequest; })(); - v1beta.UpdateInstanceRequest = (function() { + v1beta.UpdateKmsKeyRegionDiskRequest = (function() { /** - * Properties of an UpdateInstanceRequest. + * Properties of an UpdateKmsKeyRegionDiskRequest. * @memberof google.cloud.compute.v1beta - * @interface IUpdateInstanceRequest - * @property {boolean|null} [discardLocalSsd] UpdateInstanceRequest discardLocalSsd - * @property {string|null} [instance] UpdateInstanceRequest instance - * @property {google.cloud.compute.v1beta.IInstance|null} [instanceResource] UpdateInstanceRequest instanceResource - * @property {string|null} [minimalAction] UpdateInstanceRequest minimalAction - * @property {string|null} [mostDisruptiveAllowedAction] UpdateInstanceRequest mostDisruptiveAllowedAction - * @property {string|null} [project] UpdateInstanceRequest project - * @property {string|null} [requestId] UpdateInstanceRequest requestId - * @property {string|null} [zone] UpdateInstanceRequest zone + * @interface IUpdateKmsKeyRegionDiskRequest + * @property {string|null} [disk] UpdateKmsKeyRegionDiskRequest disk + * @property {string|null} [project] UpdateKmsKeyRegionDiskRequest project + * @property {string|null} [region] UpdateKmsKeyRegionDiskRequest region + * @property {google.cloud.compute.v1beta.IRegionDiskUpdateKmsKeyRequest|null} [regionDiskUpdateKmsKeyRequestResource] UpdateKmsKeyRegionDiskRequest regionDiskUpdateKmsKeyRequestResource + * @property {string|null} [requestId] UpdateKmsKeyRegionDiskRequest requestId */ /** - * Constructs a new UpdateInstanceRequest. + * Constructs a new UpdateKmsKeyRegionDiskRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an UpdateInstanceRequest. - * @implements IUpdateInstanceRequest + * @classdesc Represents an UpdateKmsKeyRegionDiskRequest. + * @implements IUpdateKmsKeyRegionDiskRequest * @constructor - * @param {google.cloud.compute.v1beta.IUpdateInstanceRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IUpdateKmsKeyRegionDiskRequest=} [properties] Properties to set */ - function UpdateInstanceRequest(properties) { + function UpdateKmsKeyRegionDiskRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1366487,192 +1399527,747 @@ } /** - * UpdateInstanceRequest discardLocalSsd. - * @member {boolean|null|undefined} discardLocalSsd - * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * UpdateKmsKeyRegionDiskRequest disk. + * @member {string} disk + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest * @instance */ - UpdateInstanceRequest.prototype.discardLocalSsd = null; + UpdateKmsKeyRegionDiskRequest.prototype.disk = ""; /** - * UpdateInstanceRequest instance. - * @member {string} instance - * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * UpdateKmsKeyRegionDiskRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest * @instance */ - UpdateInstanceRequest.prototype.instance = ""; + UpdateKmsKeyRegionDiskRequest.prototype.project = ""; /** - * UpdateInstanceRequest instanceResource. - * @member {google.cloud.compute.v1beta.IInstance|null|undefined} instanceResource - * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * UpdateKmsKeyRegionDiskRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest * @instance */ - UpdateInstanceRequest.prototype.instanceResource = null; + UpdateKmsKeyRegionDiskRequest.prototype.region = ""; /** - * UpdateInstanceRequest minimalAction. - * @member {string|null|undefined} minimalAction - * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * UpdateKmsKeyRegionDiskRequest regionDiskUpdateKmsKeyRequestResource. + * @member {google.cloud.compute.v1beta.IRegionDiskUpdateKmsKeyRequest|null|undefined} regionDiskUpdateKmsKeyRequestResource + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest * @instance */ - UpdateInstanceRequest.prototype.minimalAction = null; + UpdateKmsKeyRegionDiskRequest.prototype.regionDiskUpdateKmsKeyRequestResource = null; /** - * UpdateInstanceRequest mostDisruptiveAllowedAction. - * @member {string|null|undefined} mostDisruptiveAllowedAction - * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * UpdateKmsKeyRegionDiskRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest * @instance */ - UpdateInstanceRequest.prototype.mostDisruptiveAllowedAction = null; + UpdateKmsKeyRegionDiskRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(UpdateKmsKeyRegionDiskRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * UpdateInstanceRequest project. + * Creates a new UpdateKmsKeyRegionDiskRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest + * @static + * @param {google.cloud.compute.v1beta.IUpdateKmsKeyRegionDiskRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest} UpdateKmsKeyRegionDiskRequest instance + */ + UpdateKmsKeyRegionDiskRequest.create = function create(properties) { + return new UpdateKmsKeyRegionDiskRequest(properties); + }; + + /** + * Encodes the specified UpdateKmsKeyRegionDiskRequest message. Does not implicitly {@link google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest + * @static + * @param {google.cloud.compute.v1beta.IUpdateKmsKeyRegionDiskRequest} message UpdateKmsKeyRegionDiskRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateKmsKeyRegionDiskRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.disk != null && Object.hasOwnProperty.call(message, "disk")) + writer.uint32(/* id 3083677, wireType 2 =*/24669418).string(message.disk); + if (message.regionDiskUpdateKmsKeyRequestResource != null && Object.hasOwnProperty.call(message, "regionDiskUpdateKmsKeyRequestResource")) + $root.google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest.encode(message.regionDiskUpdateKmsKeyRequestResource, writer.uint32(/* id 10015819, wireType 2 =*/80126554).fork()).ldelim(); + 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); + return writer; + }; + + /** + * Encodes the specified UpdateKmsKeyRegionDiskRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest + * @static + * @param {google.cloud.compute.v1beta.IUpdateKmsKeyRegionDiskRequest} message UpdateKmsKeyRegionDiskRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateKmsKeyRegionDiskRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateKmsKeyRegionDiskRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest + * @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.UpdateKmsKeyRegionDiskRequest} UpdateKmsKeyRegionDiskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateKmsKeyRegionDiskRequest.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.UpdateKmsKeyRegionDiskRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 3083677: { + message.disk = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 10015819: { + message.regionDiskUpdateKmsKeyRequestResource = $root.google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest.decode(reader, reader.uint32()); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateKmsKeyRegionDiskRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest} UpdateKmsKeyRegionDiskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateKmsKeyRegionDiskRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateKmsKeyRegionDiskRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateKmsKeyRegionDiskRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.disk != null && message.hasOwnProperty("disk")) + if (!$util.isString(message.disk)) + return "disk: 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.regionDiskUpdateKmsKeyRequestResource != null && message.hasOwnProperty("regionDiskUpdateKmsKeyRequestResource")) { + var error = $root.google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest.verify(message.regionDiskUpdateKmsKeyRequestResource); + if (error) + return "regionDiskUpdateKmsKeyRequestResource." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + return null; + }; + + /** + * Creates an UpdateKmsKeyRegionDiskRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest} UpdateKmsKeyRegionDiskRequest + */ + UpdateKmsKeyRegionDiskRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest(); + if (object.disk != null) + message.disk = String(object.disk); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.regionDiskUpdateKmsKeyRequestResource != null) { + if (typeof object.regionDiskUpdateKmsKeyRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest.regionDiskUpdateKmsKeyRequestResource: object expected"); + message.regionDiskUpdateKmsKeyRequestResource = $root.google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest.fromObject(object.regionDiskUpdateKmsKeyRequestResource); + } + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from an UpdateKmsKeyRegionDiskRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest + * @static + * @param {google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest} message UpdateKmsKeyRegionDiskRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateKmsKeyRegionDiskRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.disk = ""; + object.regionDiskUpdateKmsKeyRequestResource = null; + object.region = ""; + object.project = ""; + } + if (message.disk != null && message.hasOwnProperty("disk")) + object.disk = message.disk; + if (message.regionDiskUpdateKmsKeyRequestResource != null && message.hasOwnProperty("regionDiskUpdateKmsKeyRequestResource")) + object.regionDiskUpdateKmsKeyRequestResource = $root.google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest.toObject(message.regionDiskUpdateKmsKeyRequestResource, options); + 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; + return object; + }; + + /** + * Converts this UpdateKmsKeyRegionDiskRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateKmsKeyRegionDiskRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdateKmsKeyRegionDiskRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateKmsKeyRegionDiskRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest"; + }; + + return UpdateKmsKeyRegionDiskRequest; + })(); + + v1beta.UpdateKmsKeyRegionSnapshotRequest = (function() { + + /** + * Properties of an UpdateKmsKeyRegionSnapshotRequest. + * @memberof google.cloud.compute.v1beta + * @interface IUpdateKmsKeyRegionSnapshotRequest + * @property {string|null} [project] UpdateKmsKeyRegionSnapshotRequest project + * @property {string|null} [region] UpdateKmsKeyRegionSnapshotRequest region + * @property {google.cloud.compute.v1beta.IRegionSnapshotUpdateKmsKeyRequest|null} [regionSnapshotUpdateKmsKeyRequestResource] UpdateKmsKeyRegionSnapshotRequest regionSnapshotUpdateKmsKeyRequestResource + * @property {string|null} [requestId] UpdateKmsKeyRegionSnapshotRequest requestId + * @property {string|null} [snapshot] UpdateKmsKeyRegionSnapshotRequest snapshot + */ + + /** + * Constructs a new UpdateKmsKeyRegionSnapshotRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an UpdateKmsKeyRegionSnapshotRequest. + * @implements IUpdateKmsKeyRegionSnapshotRequest + * @constructor + * @param {google.cloud.compute.v1beta.IUpdateKmsKeyRegionSnapshotRequest=} [properties] Properties to set + */ + function UpdateKmsKeyRegionSnapshotRequest(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]]; + } + + /** + * UpdateKmsKeyRegionSnapshotRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest * @instance */ - UpdateInstanceRequest.prototype.project = ""; + UpdateKmsKeyRegionSnapshotRequest.prototype.project = ""; /** - * UpdateInstanceRequest requestId. + * UpdateKmsKeyRegionSnapshotRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest + * @instance + */ + UpdateKmsKeyRegionSnapshotRequest.prototype.region = ""; + + /** + * UpdateKmsKeyRegionSnapshotRequest regionSnapshotUpdateKmsKeyRequestResource. + * @member {google.cloud.compute.v1beta.IRegionSnapshotUpdateKmsKeyRequest|null|undefined} regionSnapshotUpdateKmsKeyRequestResource + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest + * @instance + */ + UpdateKmsKeyRegionSnapshotRequest.prototype.regionSnapshotUpdateKmsKeyRequestResource = null; + + /** + * UpdateKmsKeyRegionSnapshotRequest requestId. * @member {string|null|undefined} requestId - * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest * @instance */ - UpdateInstanceRequest.prototype.requestId = null; + UpdateKmsKeyRegionSnapshotRequest.prototype.requestId = null; /** - * UpdateInstanceRequest zone. - * @member {string} zone - * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * UpdateKmsKeyRegionSnapshotRequest snapshot. + * @member {string} snapshot + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest * @instance */ - UpdateInstanceRequest.prototype.zone = ""; + UpdateKmsKeyRegionSnapshotRequest.prototype.snapshot = ""; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(UpdateInstanceRequest.prototype, "_discardLocalSsd", { - get: $util.oneOfGetter($oneOfFields = ["discardLocalSsd"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(UpdateInstanceRequest.prototype, "_minimalAction", { - get: $util.oneOfGetter($oneOfFields = ["minimalAction"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(UpdateInstanceRequest.prototype, "_mostDisruptiveAllowedAction", { - get: $util.oneOfGetter($oneOfFields = ["mostDisruptiveAllowedAction"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(UpdateInstanceRequest.prototype, "_requestId", { + Object.defineProperty(UpdateKmsKeyRegionSnapshotRequest.prototype, "_requestId", { get: $util.oneOfGetter($oneOfFields = ["requestId"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new UpdateInstanceRequest instance using the specified properties. + * Creates a new UpdateKmsKeyRegionSnapshotRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest * @static - * @param {google.cloud.compute.v1beta.IUpdateInstanceRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.UpdateInstanceRequest} UpdateInstanceRequest instance + * @param {google.cloud.compute.v1beta.IUpdateKmsKeyRegionSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest} UpdateKmsKeyRegionSnapshotRequest instance */ - UpdateInstanceRequest.create = function create(properties) { - return new UpdateInstanceRequest(properties); + UpdateKmsKeyRegionSnapshotRequest.create = function create(properties) { + return new UpdateKmsKeyRegionSnapshotRequest(properties); }; /** - * Encodes the specified UpdateInstanceRequest message. Does not implicitly {@link google.cloud.compute.v1beta.UpdateInstanceRequest.verify|verify} messages. + * Encodes the specified UpdateKmsKeyRegionSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest * @static - * @param {google.cloud.compute.v1beta.IUpdateInstanceRequest} message UpdateInstanceRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IUpdateKmsKeyRegionSnapshotRequest} message UpdateKmsKeyRegionSnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateInstanceRequest.encode = function encode(message, writer) { + UpdateKmsKeyRegionSnapshotRequest.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.requestId != null && Object.hasOwnProperty.call(message, "requestId")) writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); - if (message.mostDisruptiveAllowedAction != null && Object.hasOwnProperty.call(message, "mostDisruptiveAllowedAction")) - writer.uint32(/* id 66103053, wireType 2 =*/528824426).string(message.mostDisruptiveAllowedAction); - if (message.instanceResource != null && Object.hasOwnProperty.call(message, "instanceResource")) - $root.google.cloud.compute.v1beta.Instance.encode(message.instanceResource, writer.uint32(/* id 215988344, wireType 2 =*/1727906754).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.minimalAction != null && Object.hasOwnProperty.call(message, "minimalAction")) - writer.uint32(/* id 270567060, wireType 2 =*/2164536482).string(message.minimalAction); - if (message.discardLocalSsd != null && Object.hasOwnProperty.call(message, "discardLocalSsd")) - writer.uint32(/* id 319517903, wireType 0 =*/2556143224).bool(message.discardLocalSsd); + if (message.regionSnapshotUpdateKmsKeyRequestResource != null && Object.hasOwnProperty.call(message, "regionSnapshotUpdateKmsKeyRequestResource")) + $root.google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest.encode(message.regionSnapshotUpdateKmsKeyRequestResource, writer.uint32(/* id 279384818, wireType 2 =*/2235078546).fork()).ldelim(); + if (message.snapshot != null && Object.hasOwnProperty.call(message, "snapshot")) + writer.uint32(/* id 284874180, wireType 2 =*/2278993442).string(message.snapshot); return writer; }; /** - * Encodes the specified UpdateInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.UpdateInstanceRequest.verify|verify} messages. + * Encodes the specified UpdateKmsKeyRegionSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest * @static - * @param {google.cloud.compute.v1beta.IUpdateInstanceRequest} message UpdateInstanceRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IUpdateKmsKeyRegionSnapshotRequest} message UpdateKmsKeyRegionSnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateInstanceRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateKmsKeyRegionSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateInstanceRequest message from the specified reader or buffer. + * Decodes an UpdateKmsKeyRegionSnapshotRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest * @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.UpdateInstanceRequest} UpdateInstanceRequest + * @returns {google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest} UpdateKmsKeyRegionSnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateInstanceRequest.decode = function decode(reader, length, error) { + UpdateKmsKeyRegionSnapshotRequest.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.UpdateInstanceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { - case 319517903: { - message.discardLocalSsd = reader.bool(); + case 227560217: { + message.project = reader.string(); break; } - case 18257045: { - message.instance = reader.string(); + case 138946292: { + message.region = reader.string(); break; } - case 215988344: { - message.instanceResource = $root.google.cloud.compute.v1beta.Instance.decode(reader, reader.uint32()); + case 279384818: { + message.regionSnapshotUpdateKmsKeyRequestResource = $root.google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest.decode(reader, reader.uint32()); break; } - case 270567060: { - message.minimalAction = reader.string(); + case 37109963: { + message.requestId = reader.string(); break; } - case 66103053: { - message.mostDisruptiveAllowedAction = reader.string(); + case 284874180: { + message.snapshot = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateKmsKeyRegionSnapshotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest} UpdateKmsKeyRegionSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateKmsKeyRegionSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateKmsKeyRegionSnapshotRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateKmsKeyRegionSnapshotRequest.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.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.regionSnapshotUpdateKmsKeyRequestResource != null && message.hasOwnProperty("regionSnapshotUpdateKmsKeyRequestResource")) { + var error = $root.google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest.verify(message.regionSnapshotUpdateKmsKeyRequestResource); + if (error) + return "regionSnapshotUpdateKmsKeyRequestResource." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + if (message.snapshot != null && message.hasOwnProperty("snapshot")) + if (!$util.isString(message.snapshot)) + return "snapshot: string expected"; + return null; + }; + + /** + * Creates an UpdateKmsKeyRegionSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest} UpdateKmsKeyRegionSnapshotRequest + */ + UpdateKmsKeyRegionSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.regionSnapshotUpdateKmsKeyRequestResource != null) { + if (typeof object.regionSnapshotUpdateKmsKeyRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest.regionSnapshotUpdateKmsKeyRequestResource: object expected"); + message.regionSnapshotUpdateKmsKeyRequestResource = $root.google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest.fromObject(object.regionSnapshotUpdateKmsKeyRequestResource); + } + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.snapshot != null) + message.snapshot = String(object.snapshot); + return message; + }; + + /** + * Creates a plain object from an UpdateKmsKeyRegionSnapshotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest + * @static + * @param {google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest} message UpdateKmsKeyRegionSnapshotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateKmsKeyRegionSnapshotRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.regionSnapshotUpdateKmsKeyRequestResource = null; + object.snapshot = ""; + } + 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.regionSnapshotUpdateKmsKeyRequestResource != null && message.hasOwnProperty("regionSnapshotUpdateKmsKeyRequestResource")) + object.regionSnapshotUpdateKmsKeyRequestResource = $root.google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest.toObject(message.regionSnapshotUpdateKmsKeyRequestResource, options); + if (message.snapshot != null && message.hasOwnProperty("snapshot")) + object.snapshot = message.snapshot; + return object; + }; + + /** + * Converts this UpdateKmsKeyRegionSnapshotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateKmsKeyRegionSnapshotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdateKmsKeyRegionSnapshotRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateKmsKeyRegionSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest"; + }; + + return UpdateKmsKeyRegionSnapshotRequest; + })(); + + v1beta.UpdateKmsKeySnapshotRequest = (function() { + + /** + * Properties of an UpdateKmsKeySnapshotRequest. + * @memberof google.cloud.compute.v1beta + * @interface IUpdateKmsKeySnapshotRequest + * @property {string|null} [project] UpdateKmsKeySnapshotRequest project + * @property {string|null} [requestId] UpdateKmsKeySnapshotRequest requestId + * @property {string|null} [snapshot] UpdateKmsKeySnapshotRequest snapshot + * @property {google.cloud.compute.v1beta.ISnapshotUpdateKmsKeyRequest|null} [snapshotUpdateKmsKeyRequestResource] UpdateKmsKeySnapshotRequest snapshotUpdateKmsKeyRequestResource + */ + + /** + * Constructs a new UpdateKmsKeySnapshotRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an UpdateKmsKeySnapshotRequest. + * @implements IUpdateKmsKeySnapshotRequest + * @constructor + * @param {google.cloud.compute.v1beta.IUpdateKmsKeySnapshotRequest=} [properties] Properties to set + */ + function UpdateKmsKeySnapshotRequest(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]]; + } + + /** + * UpdateKmsKeySnapshotRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest + * @instance + */ + UpdateKmsKeySnapshotRequest.prototype.project = ""; + + /** + * UpdateKmsKeySnapshotRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest + * @instance + */ + UpdateKmsKeySnapshotRequest.prototype.requestId = null; + + /** + * UpdateKmsKeySnapshotRequest snapshot. + * @member {string} snapshot + * @memberof google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest + * @instance + */ + UpdateKmsKeySnapshotRequest.prototype.snapshot = ""; + + /** + * UpdateKmsKeySnapshotRequest snapshotUpdateKmsKeyRequestResource. + * @member {google.cloud.compute.v1beta.ISnapshotUpdateKmsKeyRequest|null|undefined} snapshotUpdateKmsKeyRequestResource + * @memberof google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest + * @instance + */ + UpdateKmsKeySnapshotRequest.prototype.snapshotUpdateKmsKeyRequestResource = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(UpdateKmsKeySnapshotRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new UpdateKmsKeySnapshotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest + * @static + * @param {google.cloud.compute.v1beta.IUpdateKmsKeySnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest} UpdateKmsKeySnapshotRequest instance + */ + UpdateKmsKeySnapshotRequest.create = function create(properties) { + return new UpdateKmsKeySnapshotRequest(properties); + }; + + /** + * Encodes the specified UpdateKmsKeySnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest + * @static + * @param {google.cloud.compute.v1beta.IUpdateKmsKeySnapshotRequest} message UpdateKmsKeySnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateKmsKeySnapshotRequest.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.snapshotUpdateKmsKeyRequestResource != null && Object.hasOwnProperty.call(message, "snapshotUpdateKmsKeyRequestResource")) + $root.google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest.encode(message.snapshotUpdateKmsKeyRequestResource, writer.uint32(/* id 103145991, wireType 2 =*/825167930).fork()).ldelim(); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.snapshot != null && Object.hasOwnProperty.call(message, "snapshot")) + writer.uint32(/* id 284874180, wireType 2 =*/2278993442).string(message.snapshot); + return writer; + }; + + /** + * Encodes the specified UpdateKmsKeySnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest + * @static + * @param {google.cloud.compute.v1beta.IUpdateKmsKeySnapshotRequest} message UpdateKmsKeySnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateKmsKeySnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateKmsKeySnapshotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest + * @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.UpdateKmsKeySnapshotRequest} UpdateKmsKeySnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateKmsKeySnapshotRequest.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.UpdateKmsKeySnapshotRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { case 227560217: { message.project = reader.string(); break; @@ -1366681,8 +1400276,12 @@ message.requestId = reader.string(); break; } - case 3744684: { - message.zone = reader.string(); + case 284874180: { + message.snapshot = reader.string(); + break; + } + case 103145991: { + message.snapshotUpdateKmsKeyRequestResource = $root.google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest.decode(reader, reader.uint32()); break; } default: @@ -1366694,56 +1400293,33 @@ }; /** - * Decodes an UpdateInstanceRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateKmsKeySnapshotRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * @memberof google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.UpdateInstanceRequest} UpdateInstanceRequest + * @returns {google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest} UpdateKmsKeySnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateInstanceRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateKmsKeySnapshotRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateInstanceRequest message. + * Verifies an UpdateKmsKeySnapshotRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * @memberof google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateInstanceRequest.verify = function verify(message) { + UpdateKmsKeySnapshotRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.discardLocalSsd != null && message.hasOwnProperty("discardLocalSsd")) { - properties._discardLocalSsd = 1; - if (typeof message.discardLocalSsd !== "boolean") - return "discardLocalSsd: boolean expected"; - } - if (message.instance != null && message.hasOwnProperty("instance")) - if (!$util.isString(message.instance)) - return "instance: string expected"; - if (message.instanceResource != null && message.hasOwnProperty("instanceResource")) { - var error = $root.google.cloud.compute.v1beta.Instance.verify(message.instanceResource); - if (error) - return "instanceResource." + error; - } - if (message.minimalAction != null && message.hasOwnProperty("minimalAction")) { - properties._minimalAction = 1; - if (!$util.isString(message.minimalAction)) - return "minimalAction: string expected"; - } - if (message.mostDisruptiveAllowedAction != null && message.hasOwnProperty("mostDisruptiveAllowedAction")) { - properties._mostDisruptiveAllowedAction = 1; - if (!$util.isString(message.mostDisruptiveAllowedAction)) - return "mostDisruptiveAllowedAction: string expected"; - } if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; @@ -1366752,147 +1400328,102 @@ if (!$util.isString(message.requestId)) return "requestId: string expected"; } - if (message.zone != null && message.hasOwnProperty("zone")) - if (!$util.isString(message.zone)) - return "zone: string expected"; + if (message.snapshot != null && message.hasOwnProperty("snapshot")) + if (!$util.isString(message.snapshot)) + return "snapshot: string expected"; + if (message.snapshotUpdateKmsKeyRequestResource != null && message.hasOwnProperty("snapshotUpdateKmsKeyRequestResource")) { + var error = $root.google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest.verify(message.snapshotUpdateKmsKeyRequestResource); + if (error) + return "snapshotUpdateKmsKeyRequestResource." + error; + } return null; }; /** - * Creates an UpdateInstanceRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateKmsKeySnapshotRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * @memberof google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.UpdateInstanceRequest} UpdateInstanceRequest + * @returns {google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest} UpdateKmsKeySnapshotRequest */ - UpdateInstanceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.UpdateInstanceRequest) + UpdateKmsKeySnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest) return object; - var message = new $root.google.cloud.compute.v1beta.UpdateInstanceRequest(); - if (object.discardLocalSsd != null) - message.discardLocalSsd = Boolean(object.discardLocalSsd); - if (object.instance != null) - message.instance = String(object.instance); - if (object.instanceResource != null) { - if (typeof object.instanceResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.UpdateInstanceRequest.instanceResource: object expected"); - message.instanceResource = $root.google.cloud.compute.v1beta.Instance.fromObject(object.instanceResource); - } - if (object.minimalAction != null) - message.minimalAction = String(object.minimalAction); - if (object.mostDisruptiveAllowedAction != null) - message.mostDisruptiveAllowedAction = String(object.mostDisruptiveAllowedAction); + var message = new $root.google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest(); if (object.project != null) message.project = String(object.project); if (object.requestId != null) message.requestId = String(object.requestId); - if (object.zone != null) - message.zone = String(object.zone); + if (object.snapshot != null) + message.snapshot = String(object.snapshot); + if (object.snapshotUpdateKmsKeyRequestResource != null) { + if (typeof object.snapshotUpdateKmsKeyRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest.snapshotUpdateKmsKeyRequestResource: object expected"); + message.snapshotUpdateKmsKeyRequestResource = $root.google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest.fromObject(object.snapshotUpdateKmsKeyRequestResource); + } return message; }; /** - * Creates a plain object from an UpdateInstanceRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateKmsKeySnapshotRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * @memberof google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest * @static - * @param {google.cloud.compute.v1beta.UpdateInstanceRequest} message UpdateInstanceRequest + * @param {google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest} message UpdateKmsKeySnapshotRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateInstanceRequest.toObject = function toObject(message, options) { + UpdateKmsKeySnapshotRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.zone = ""; - object.instance = ""; - object.instanceResource = null; + object.snapshotUpdateKmsKeyRequestResource = null; object.project = ""; + object.snapshot = ""; } - if (message.zone != null && message.hasOwnProperty("zone")) - object.zone = message.zone; - if (message.instance != null && message.hasOwnProperty("instance")) - object.instance = message.instance; if (message.requestId != null && message.hasOwnProperty("requestId")) { object.requestId = message.requestId; if (options.oneofs) object._requestId = "requestId"; } - if (message.mostDisruptiveAllowedAction != null && message.hasOwnProperty("mostDisruptiveAllowedAction")) { - object.mostDisruptiveAllowedAction = message.mostDisruptiveAllowedAction; - if (options.oneofs) - object._mostDisruptiveAllowedAction = "mostDisruptiveAllowedAction"; - } - if (message.instanceResource != null && message.hasOwnProperty("instanceResource")) - object.instanceResource = $root.google.cloud.compute.v1beta.Instance.toObject(message.instanceResource, options); + if (message.snapshotUpdateKmsKeyRequestResource != null && message.hasOwnProperty("snapshotUpdateKmsKeyRequestResource")) + object.snapshotUpdateKmsKeyRequestResource = $root.google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest.toObject(message.snapshotUpdateKmsKeyRequestResource, options); if (message.project != null && message.hasOwnProperty("project")) object.project = message.project; - if (message.minimalAction != null && message.hasOwnProperty("minimalAction")) { - object.minimalAction = message.minimalAction; - if (options.oneofs) - object._minimalAction = "minimalAction"; - } - if (message.discardLocalSsd != null && message.hasOwnProperty("discardLocalSsd")) { - object.discardLocalSsd = message.discardLocalSsd; - if (options.oneofs) - object._discardLocalSsd = "discardLocalSsd"; - } + if (message.snapshot != null && message.hasOwnProperty("snapshot")) + object.snapshot = message.snapshot; return object; }; /** - * Converts this UpdateInstanceRequest to JSON. + * Converts this UpdateKmsKeySnapshotRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * @memberof google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest * @instance * @returns {Object.} JSON object */ - UpdateInstanceRequest.prototype.toJSON = function toJSON() { + UpdateKmsKeySnapshotRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateInstanceRequest + * Gets the default type url for UpdateKmsKeySnapshotRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * @memberof google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateInstanceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateKmsKeySnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.UpdateInstanceRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest"; }; - /** - * MinimalAction enum. - * @name google.cloud.compute.v1beta.UpdateInstanceRequest.MinimalAction - * @enum {number} - * @property {number} UNDEFINED_MINIMAL_ACTION=0 UNDEFINED_MINIMAL_ACTION value - */ - UpdateInstanceRequest.MinimalAction = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED_MINIMAL_ACTION"] = 0; - return values; - })(); - - /** - * MostDisruptiveAllowedAction enum. - * @name google.cloud.compute.v1beta.UpdateInstanceRequest.MostDisruptiveAllowedAction - * @enum {number} - * @property {number} UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION=0 UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION value - */ - UpdateInstanceRequest.MostDisruptiveAllowedAction = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION"] = 0; - return values; - })(); - - return UpdateInstanceRequest; + return UpdateKmsKeySnapshotRequest; })(); v1beta.UpdateLicenseRequest = (function() { @@ -1374752,6 +1408283,7 @@ * @property {Array.|null} [pathMatchers] UrlMap pathMatchers * @property {string|null} [region] UrlMap region * @property {string|null} [selfLink] UrlMap selfLink + * @property {google.cloud.compute.v1beta.IUrlMapStatus|null} [status] UrlMap status * @property {Array.|null} [tests] UrlMap tests */ @@ -1374893,6 +1408425,14 @@ */ UrlMap.prototype.selfLink = null; + /** + * UrlMap status. + * @member {google.cloud.compute.v1beta.IUrlMapStatus|null|undefined} status + * @memberof google.cloud.compute.v1beta.UrlMap + * @instance + */ + UrlMap.prototype.status = null; + /** * UrlMap tests. * @member {Array.} tests @@ -1374982,6 +1408522,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(UrlMap.prototype, "_status", { + get: $util.oneOfGetter($oneOfFields = ["status"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new UrlMap instance using the specified properties. * @function create @@ -1375021,6 +1408567,8 @@ $root.google.cloud.compute.v1beta.UrlMapTest.encode(message.tests[i], writer.uint32(/* id 110251553, wireType 2 =*/882012426).fork()).ldelim(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + $root.google.cloud.compute.v1beta.UrlMapStatus.encode(message.status, writer.uint32(/* id 181260274, wireType 2 =*/1450082194).fork()).ldelim(); if (message.fingerprint != null && Object.hasOwnProperty.call(message, "fingerprint")) writer.uint32(/* id 234678500, wireType 2 =*/1877428002).string(message.fingerprint); if (message.pathMatchers != null && message.pathMatchers.length) @@ -1375141,6 +1408689,10 @@ message.selfLink = reader.string(); break; } + case 181260274: { + message.status = $root.google.cloud.compute.v1beta.UrlMapStatus.decode(reader, reader.uint32()); + break; + } case 110251553: { if (!(message.tests && message.tests.length)) message.tests = []; @@ -1375278,6 +1408830,14 @@ if (!$util.isString(message.selfLink)) return "selfLink: string expected"; } + if (message.status != null && message.hasOwnProperty("status")) { + properties._status = 1; + { + var error = $root.google.cloud.compute.v1beta.UrlMapStatus.verify(message.status); + if (error) + return "status." + error; + } + } if (message.tests != null && message.hasOwnProperty("tests")) { if (!Array.isArray(message.tests)) return "tests: array expected"; @@ -1375367,6 +1408927,11 @@ message.region = String(object.region); if (object.selfLink != null) message.selfLink = String(object.selfLink); + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".google.cloud.compute.v1beta.UrlMap.status: object expected"); + message.status = $root.google.cloud.compute.v1beta.UrlMapStatus.fromObject(object.status); + } if (object.tests) { if (!Array.isArray(object.tests)) throw TypeError(".google.cloud.compute.v1beta.UrlMap.tests: array expected"); @@ -1375436,6 +1409001,11 @@ if (options.oneofs) object._region = "region"; } + if (message.status != null && message.hasOwnProperty("status")) { + object.status = $root.google.cloud.compute.v1beta.UrlMapStatus.toObject(message.status, options); + if (options.oneofs) + object._status = "status"; + } if (message.fingerprint != null && message.hasOwnProperty("fingerprint")) { object.fingerprint = message.fingerprint; if (options.oneofs) @@ -1375914,6 +1409484,267 @@ return UrlMapList; })(); + v1beta.UrlMapQuotaUsage = (function() { + + /** + * Properties of an UrlMapQuotaUsage. + * @memberof google.cloud.compute.v1beta + * @interface IUrlMapQuotaUsage + * @property {number|null} [forwardingRules] UrlMapQuotaUsage forwardingRules + * @property {number|Long|null} [units] UrlMapQuotaUsage units + */ + + /** + * Constructs a new UrlMapQuotaUsage. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an UrlMapQuotaUsage. + * @implements IUrlMapQuotaUsage + * @constructor + * @param {google.cloud.compute.v1beta.IUrlMapQuotaUsage=} [properties] Properties to set + */ + function UrlMapQuotaUsage(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]]; + } + + /** + * UrlMapQuotaUsage forwardingRules. + * @member {number|null|undefined} forwardingRules + * @memberof google.cloud.compute.v1beta.UrlMapQuotaUsage + * @instance + */ + UrlMapQuotaUsage.prototype.forwardingRules = null; + + /** + * UrlMapQuotaUsage units. + * @member {number|Long|null|undefined} units + * @memberof google.cloud.compute.v1beta.UrlMapQuotaUsage + * @instance + */ + UrlMapQuotaUsage.prototype.units = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(UrlMapQuotaUsage.prototype, "_forwardingRules", { + get: $util.oneOfGetter($oneOfFields = ["forwardingRules"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(UrlMapQuotaUsage.prototype, "_units", { + get: $util.oneOfGetter($oneOfFields = ["units"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new UrlMapQuotaUsage instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.UrlMapQuotaUsage + * @static + * @param {google.cloud.compute.v1beta.IUrlMapQuotaUsage=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.UrlMapQuotaUsage} UrlMapQuotaUsage instance + */ + UrlMapQuotaUsage.create = function create(properties) { + return new UrlMapQuotaUsage(properties); + }; + + /** + * Encodes the specified UrlMapQuotaUsage message. Does not implicitly {@link google.cloud.compute.v1beta.UrlMapQuotaUsage.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.UrlMapQuotaUsage + * @static + * @param {google.cloud.compute.v1beta.IUrlMapQuotaUsage} message UrlMapQuotaUsage message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UrlMapQuotaUsage.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.units != null && Object.hasOwnProperty.call(message, "units")) + writer.uint32(/* id 111433583, wireType 0 =*/891468664).int64(message.units); + if (message.forwardingRules != null && Object.hasOwnProperty.call(message, "forwardingRules")) + writer.uint32(/* id 315821365, wireType 0 =*/2526570920).int32(message.forwardingRules); + return writer; + }; + + /** + * Encodes the specified UrlMapQuotaUsage message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.UrlMapQuotaUsage.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.UrlMapQuotaUsage + * @static + * @param {google.cloud.compute.v1beta.IUrlMapQuotaUsage} message UrlMapQuotaUsage message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UrlMapQuotaUsage.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UrlMapQuotaUsage message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.UrlMapQuotaUsage + * @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.UrlMapQuotaUsage} UrlMapQuotaUsage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UrlMapQuotaUsage.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.UrlMapQuotaUsage(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 315821365: { + message.forwardingRules = reader.int32(); + break; + } + case 111433583: { + message.units = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UrlMapQuotaUsage message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.UrlMapQuotaUsage + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.UrlMapQuotaUsage} UrlMapQuotaUsage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UrlMapQuotaUsage.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UrlMapQuotaUsage message. + * @function verify + * @memberof google.cloud.compute.v1beta.UrlMapQuotaUsage + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UrlMapQuotaUsage.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.forwardingRules != null && message.hasOwnProperty("forwardingRules")) { + properties._forwardingRules = 1; + if (!$util.isInteger(message.forwardingRules)) + return "forwardingRules: integer expected"; + } + if (message.units != null && message.hasOwnProperty("units")) { + properties._units = 1; + if (!$util.isInteger(message.units) && !(message.units && $util.isInteger(message.units.low) && $util.isInteger(message.units.high))) + return "units: integer|Long expected"; + } + return null; + }; + + /** + * Creates an UrlMapQuotaUsage message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.UrlMapQuotaUsage + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.UrlMapQuotaUsage} UrlMapQuotaUsage + */ + UrlMapQuotaUsage.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.UrlMapQuotaUsage) + return object; + var message = new $root.google.cloud.compute.v1beta.UrlMapQuotaUsage(); + if (object.forwardingRules != null) + message.forwardingRules = object.forwardingRules | 0; + if (object.units != null) + if ($util.Long) + (message.units = $util.Long.fromValue(object.units)).unsigned = false; + else if (typeof object.units === "string") + message.units = parseInt(object.units, 10); + else if (typeof object.units === "number") + message.units = object.units; + else if (typeof object.units === "object") + message.units = new $util.LongBits(object.units.low >>> 0, object.units.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from an UrlMapQuotaUsage message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.UrlMapQuotaUsage + * @static + * @param {google.cloud.compute.v1beta.UrlMapQuotaUsage} message UrlMapQuotaUsage + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UrlMapQuotaUsage.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.units != null && message.hasOwnProperty("units")) { + if (typeof message.units === "number") + object.units = options.longs === String ? String(message.units) : message.units; + else + object.units = options.longs === String ? $util.Long.prototype.toString.call(message.units) : options.longs === Number ? new $util.LongBits(message.units.low >>> 0, message.units.high >>> 0).toNumber() : message.units; + if (options.oneofs) + object._units = "units"; + } + if (message.forwardingRules != null && message.hasOwnProperty("forwardingRules")) { + object.forwardingRules = message.forwardingRules; + if (options.oneofs) + object._forwardingRules = "forwardingRules"; + } + return object; + }; + + /** + * Converts this UrlMapQuotaUsage to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.UrlMapQuotaUsage + * @instance + * @returns {Object.} JSON object + */ + UrlMapQuotaUsage.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UrlMapQuotaUsage + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.UrlMapQuotaUsage + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UrlMapQuotaUsage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.UrlMapQuotaUsage"; + }; + + return UrlMapQuotaUsage; + })(); + v1beta.UrlMapReference = (function() { /** @@ -1376132,6 +1409963,230 @@ return UrlMapReference; })(); + v1beta.UrlMapStatus = (function() { + + /** + * Properties of an UrlMapStatus. + * @memberof google.cloud.compute.v1beta + * @interface IUrlMapStatus + * @property {google.cloud.compute.v1beta.IUrlMapQuotaUsage|null} [quotaUsage] UrlMapStatus quotaUsage + */ + + /** + * Constructs a new UrlMapStatus. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an UrlMapStatus. + * @implements IUrlMapStatus + * @constructor + * @param {google.cloud.compute.v1beta.IUrlMapStatus=} [properties] Properties to set + */ + function UrlMapStatus(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]]; + } + + /** + * UrlMapStatus quotaUsage. + * @member {google.cloud.compute.v1beta.IUrlMapQuotaUsage|null|undefined} quotaUsage + * @memberof google.cloud.compute.v1beta.UrlMapStatus + * @instance + */ + UrlMapStatus.prototype.quotaUsage = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(UrlMapStatus.prototype, "_quotaUsage", { + get: $util.oneOfGetter($oneOfFields = ["quotaUsage"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new UrlMapStatus instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.UrlMapStatus + * @static + * @param {google.cloud.compute.v1beta.IUrlMapStatus=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.UrlMapStatus} UrlMapStatus instance + */ + UrlMapStatus.create = function create(properties) { + return new UrlMapStatus(properties); + }; + + /** + * Encodes the specified UrlMapStatus message. Does not implicitly {@link google.cloud.compute.v1beta.UrlMapStatus.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.UrlMapStatus + * @static + * @param {google.cloud.compute.v1beta.IUrlMapStatus} message UrlMapStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UrlMapStatus.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.quotaUsage != null && Object.hasOwnProperty.call(message, "quotaUsage")) + $root.google.cloud.compute.v1beta.UrlMapQuotaUsage.encode(message.quotaUsage, writer.uint32(/* id 238511386, wireType 2 =*/1908091090).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified UrlMapStatus message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.UrlMapStatus.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.UrlMapStatus + * @static + * @param {google.cloud.compute.v1beta.IUrlMapStatus} message UrlMapStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UrlMapStatus.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UrlMapStatus message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.UrlMapStatus + * @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.UrlMapStatus} UrlMapStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UrlMapStatus.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.UrlMapStatus(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 238511386: { + message.quotaUsage = $root.google.cloud.compute.v1beta.UrlMapQuotaUsage.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UrlMapStatus message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.UrlMapStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.UrlMapStatus} UrlMapStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UrlMapStatus.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UrlMapStatus message. + * @function verify + * @memberof google.cloud.compute.v1beta.UrlMapStatus + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UrlMapStatus.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.quotaUsage != null && message.hasOwnProperty("quotaUsage")) { + properties._quotaUsage = 1; + { + var error = $root.google.cloud.compute.v1beta.UrlMapQuotaUsage.verify(message.quotaUsage); + if (error) + return "quotaUsage." + error; + } + } + return null; + }; + + /** + * Creates an UrlMapStatus message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.UrlMapStatus + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.UrlMapStatus} UrlMapStatus + */ + UrlMapStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.UrlMapStatus) + return object; + var message = new $root.google.cloud.compute.v1beta.UrlMapStatus(); + if (object.quotaUsage != null) { + if (typeof object.quotaUsage !== "object") + throw TypeError(".google.cloud.compute.v1beta.UrlMapStatus.quotaUsage: object expected"); + message.quotaUsage = $root.google.cloud.compute.v1beta.UrlMapQuotaUsage.fromObject(object.quotaUsage); + } + return message; + }; + + /** + * Creates a plain object from an UrlMapStatus message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.UrlMapStatus + * @static + * @param {google.cloud.compute.v1beta.UrlMapStatus} message UrlMapStatus + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UrlMapStatus.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.quotaUsage != null && message.hasOwnProperty("quotaUsage")) { + object.quotaUsage = $root.google.cloud.compute.v1beta.UrlMapQuotaUsage.toObject(message.quotaUsage, options); + if (options.oneofs) + object._quotaUsage = "quotaUsage"; + } + return object; + }; + + /** + * Converts this UrlMapStatus to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.UrlMapStatus + * @instance + * @returns {Object.} JSON object + */ + UrlMapStatus.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UrlMapStatus + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.UrlMapStatus + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UrlMapStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.UrlMapStatus"; + }; + + return UrlMapStatus; + })(); + v1beta.UrlMapTest = (function() { /** @@ -1376819,6 +1410874,7 @@ * @interface IUrlMapValidationResult * @property {Array.|null} [loadErrors] UrlMapValidationResult loadErrors * @property {boolean|null} [loadSucceeded] UrlMapValidationResult loadSucceeded + * @property {google.cloud.compute.v1beta.IUrlMapQuotaUsage|null} [quotaUsage] UrlMapValidationResult quotaUsage * @property {Array.|null} [testFailures] UrlMapValidationResult testFailures * @property {boolean|null} [testPassed] UrlMapValidationResult testPassed */ @@ -1376856,6 +1410912,14 @@ */ UrlMapValidationResult.prototype.loadSucceeded = null; + /** + * UrlMapValidationResult quotaUsage. + * @member {google.cloud.compute.v1beta.IUrlMapQuotaUsage|null|undefined} quotaUsage + * @memberof google.cloud.compute.v1beta.UrlMapValidationResult + * @instance + */ + UrlMapValidationResult.prototype.quotaUsage = null; + /** * UrlMapValidationResult testFailures. * @member {Array.} testFailures @@ -1376881,6 +1410945,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(UrlMapValidationResult.prototype, "_quotaUsage", { + get: $util.oneOfGetter($oneOfFields = ["quotaUsage"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(UrlMapValidationResult.prototype, "_testPassed", { get: $util.oneOfGetter($oneOfFields = ["testPassed"]), @@ -1376915,6 +1410985,8 @@ writer.uint32(/* id 128326216, wireType 0 =*/1026609728).bool(message.loadSucceeded); if (message.testPassed != null && Object.hasOwnProperty.call(message, "testPassed")) writer.uint32(/* id 192708797, wireType 0 =*/1541670376).bool(message.testPassed); + if (message.quotaUsage != null && Object.hasOwnProperty.call(message, "quotaUsage")) + $root.google.cloud.compute.v1beta.UrlMapQuotaUsage.encode(message.quotaUsage, writer.uint32(/* id 238511386, wireType 2 =*/1908091090).fork()).ldelim(); if (message.loadErrors != null && message.loadErrors.length) for (var i = 0; i < message.loadErrors.length; ++i) writer.uint32(/* id 310147300, wireType 2 =*/2481178402).string(message.loadErrors[i]); @@ -1376967,6 +1411039,10 @@ message.loadSucceeded = reader.bool(); break; } + case 238511386: { + message.quotaUsage = $root.google.cloud.compute.v1beta.UrlMapQuotaUsage.decode(reader, reader.uint32()); + break; + } case 505934134: { if (!(message.testFailures && message.testFailures.length)) message.testFailures = []; @@ -1377025,6 +1411101,14 @@ if (typeof message.loadSucceeded !== "boolean") return "loadSucceeded: boolean expected"; } + if (message.quotaUsage != null && message.hasOwnProperty("quotaUsage")) { + properties._quotaUsage = 1; + { + var error = $root.google.cloud.compute.v1beta.UrlMapQuotaUsage.verify(message.quotaUsage); + if (error) + return "quotaUsage." + error; + } + } if (message.testFailures != null && message.hasOwnProperty("testFailures")) { if (!Array.isArray(message.testFailures)) return "testFailures: array expected"; @@ -1377063,6 +1411147,11 @@ } if (object.loadSucceeded != null) message.loadSucceeded = Boolean(object.loadSucceeded); + if (object.quotaUsage != null) { + if (typeof object.quotaUsage !== "object") + throw TypeError(".google.cloud.compute.v1beta.UrlMapValidationResult.quotaUsage: object expected"); + message.quotaUsage = $root.google.cloud.compute.v1beta.UrlMapQuotaUsage.fromObject(object.quotaUsage); + } if (object.testFailures) { if (!Array.isArray(object.testFailures)) throw TypeError(".google.cloud.compute.v1beta.UrlMapValidationResult.testFailures: array expected"); @@ -1377105,6 +1411194,11 @@ if (options.oneofs) object._testPassed = "testPassed"; } + if (message.quotaUsage != null && message.hasOwnProperty("quotaUsage")) { + object.quotaUsage = $root.google.cloud.compute.v1beta.UrlMapQuotaUsage.toObject(message.quotaUsage, options); + if (options.oneofs) + object._quotaUsage = "quotaUsage"; + } if (message.loadErrors && message.loadErrors.length) { object.loadErrors = []; for (var j = 0; j < message.loadErrors.length; ++j) @@ -1404117,6 +1438211,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1beta.Disks|updateKmsKey}. + * @memberof google.cloud.compute.v1beta.Disks + * @typedef UpdateKmsKeyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Operation} [response] Operation + */ + + /** + * Calls UpdateKmsKey. + * @function updateKmsKey + * @memberof google.cloud.compute.v1beta.Disks + * @instance + * @param {google.cloud.compute.v1beta.IUpdateKmsKeyDiskRequest} request UpdateKmsKeyDiskRequest message or plain object + * @param {google.cloud.compute.v1beta.Disks.UpdateKmsKeyCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Disks.prototype.updateKmsKey = function updateKmsKey(request, callback) { + return this.rpcCall(updateKmsKey, $root.google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest, $root.google.cloud.compute.v1beta.Operation, request, callback); + }, "name", { value: "UpdateKmsKey" }); + + /** + * Calls UpdateKmsKey. + * @function updateKmsKey + * @memberof google.cloud.compute.v1beta.Disks + * @instance + * @param {google.cloud.compute.v1beta.IUpdateKmsKeyDiskRequest} request UpdateKmsKeyDiskRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return Disks; })(); @@ -1421812,6 +1455939,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionCompositeHealthChecks|getHealth}. + * @memberof google.cloud.compute.v1beta.RegionCompositeHealthChecks + * @typedef GetHealthCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.CompositeHealthCheckHealth} [response] CompositeHealthCheckHealth + */ + + /** + * Calls GetHealth. + * @function getHealth + * @memberof google.cloud.compute.v1beta.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1beta.IGetHealthRegionCompositeHealthCheckRequest} request GetHealthRegionCompositeHealthCheckRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionCompositeHealthChecks.GetHealthCallback} callback Node-style callback called with the error, if any, and CompositeHealthCheckHealth + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionCompositeHealthChecks.prototype.getHealth = function getHealth(request, callback) { + return this.rpcCall(getHealth, $root.google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest, $root.google.cloud.compute.v1beta.CompositeHealthCheckHealth, request, callback); + }, "name", { value: "GetHealth" }); + + /** + * Calls GetHealth. + * @function getHealth + * @memberof google.cloud.compute.v1beta.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1beta.IGetHealthRegionCompositeHealthCheckRequest} request GetHealthRegionCompositeHealthCheckRequest 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 @@ -1422742,6 +1456902,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionDisks|updateKmsKey}. + * @memberof google.cloud.compute.v1beta.RegionDisks + * @typedef UpdateKmsKeyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Operation} [response] Operation + */ + + /** + * Calls UpdateKmsKey. + * @function updateKmsKey + * @memberof google.cloud.compute.v1beta.RegionDisks + * @instance + * @param {google.cloud.compute.v1beta.IUpdateKmsKeyRegionDiskRequest} request UpdateKmsKeyRegionDiskRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionDisks.UpdateKmsKeyCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionDisks.prototype.updateKmsKey = function updateKmsKey(request, callback) { + return this.rpcCall(updateKmsKey, $root.google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest, $root.google.cloud.compute.v1beta.Operation, request, callback); + }, "name", { value: "UpdateKmsKey" }); + + /** + * Calls UpdateKmsKey. + * @function updateKmsKey + * @memberof google.cloud.compute.v1beta.RegionDisks + * @instance + * @param {google.cloud.compute.v1beta.IUpdateKmsKeyRegionDiskRequest} request UpdateKmsKeyRegionDiskRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return RegionDisks; })(); @@ -1423674,6 +1457867,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionHealthSources|getHealth}. + * @memberof google.cloud.compute.v1beta.RegionHealthSources + * @typedef GetHealthCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.HealthSourceHealth} [response] HealthSourceHealth + */ + + /** + * Calls GetHealth. + * @function getHealth + * @memberof google.cloud.compute.v1beta.RegionHealthSources + * @instance + * @param {google.cloud.compute.v1beta.IGetHealthRegionHealthSourceRequest} request GetHealthRegionHealthSourceRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionHealthSources.GetHealthCallback} callback Node-style callback called with the error, if any, and HealthSourceHealth + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionHealthSources.prototype.getHealth = function getHealth(request, callback) { + return this.rpcCall(getHealth, $root.google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest, $root.google.cloud.compute.v1beta.HealthSourceHealth, request, callback); + }, "name", { value: "GetHealth" }); + + /** + * Calls GetHealth. + * @function getHealth + * @memberof google.cloud.compute.v1beta.RegionHealthSources + * @instance + * @param {google.cloud.compute.v1beta.IGetHealthRegionHealthSourceRequest} request GetHealthRegionHealthSourceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1beta.RegionHealthSources|insert}. * @memberof google.cloud.compute.v1beta.RegionHealthSources @@ -1428757,6 +1462983,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionSnapshots|updateKmsKey}. + * @memberof google.cloud.compute.v1beta.RegionSnapshots + * @typedef UpdateKmsKeyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Operation} [response] Operation + */ + + /** + * Calls UpdateKmsKey. + * @function updateKmsKey + * @memberof google.cloud.compute.v1beta.RegionSnapshots + * @instance + * @param {google.cloud.compute.v1beta.IUpdateKmsKeyRegionSnapshotRequest} request UpdateKmsKeyRegionSnapshotRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionSnapshots.UpdateKmsKeyCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionSnapshots.prototype.updateKmsKey = function updateKmsKey(request, callback) { + return this.rpcCall(updateKmsKey, $root.google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest, $root.google.cloud.compute.v1beta.Operation, request, callback); + }, "name", { value: "UpdateKmsKey" }); + + /** + * Calls UpdateKmsKey. + * @function updateKmsKey + * @memberof google.cloud.compute.v1beta.RegionSnapshots + * @instance + * @param {google.cloud.compute.v1beta.IUpdateKmsKeyRegionSnapshotRequest} request UpdateKmsKeyRegionSnapshotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return RegionSnapshots; })(); @@ -1434708,6 +1468967,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1beta.Snapshots|updateKmsKey}. + * @memberof google.cloud.compute.v1beta.Snapshots + * @typedef UpdateKmsKeyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Operation} [response] Operation + */ + + /** + * Calls UpdateKmsKey. + * @function updateKmsKey + * @memberof google.cloud.compute.v1beta.Snapshots + * @instance + * @param {google.cloud.compute.v1beta.IUpdateKmsKeySnapshotRequest} request UpdateKmsKeySnapshotRequest message or plain object + * @param {google.cloud.compute.v1beta.Snapshots.UpdateKmsKeyCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Snapshots.prototype.updateKmsKey = function updateKmsKey(request, callback) { + return this.rpcCall(updateKmsKey, $root.google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest, $root.google.cloud.compute.v1beta.Operation, request, callback); + }, "name", { value: "UpdateKmsKey" }); + + /** + * Calls UpdateKmsKey. + * @function updateKmsKey + * @memberof google.cloud.compute.v1beta.Snapshots + * @instance + * @param {google.cloud.compute.v1beta.IUpdateKmsKeySnapshotRequest} request UpdateKmsKeySnapshotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return Snapshots; })(); diff --git a/packages/google-cloud-compute/protos/protos.json b/packages/google-cloud-compute/protos/protos.json index 43f751ccb5b6..d5271daf7048 100644 --- a/packages/google-cloud-compute/protos/protos.json +++ b/packages/google-cloud-compute/protos/protos.json @@ -2695,7 +2695,7 @@ } } }, - "AggregatedListBackendServicesRequest": { + "AggregatedListBackendBucketsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -2792,7 +2792,7 @@ } } }, - "AggregatedListDiskTypesRequest": { + "AggregatedListBackendServicesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -2889,7 +2889,7 @@ } } }, - "AggregatedListDisksRequest": { + "AggregatedListDiskTypesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -2986,7 +2986,7 @@ } } }, - "AggregatedListForwardingRulesRequest": { + "AggregatedListDisksRequest": { "oneofs": { "_filter": { "oneof": [ @@ -3083,7 +3083,7 @@ } } }, - "AggregatedListFutureReservationsRequest": { + "AggregatedListForwardingRulesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -3180,7 +3180,7 @@ } } }, - "AggregatedListGlobalOperationsRequest": { + "AggregatedListFutureReservationsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -3277,7 +3277,7 @@ } } }, - "AggregatedListHealthChecksRequest": { + "AggregatedListGlobalOperationsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -3374,7 +3374,7 @@ } } }, - "AggregatedListInstanceGroupManagersRequest": { + "AggregatedListHealthChecksRequest": { "oneofs": { "_filter": { "oneof": [ @@ -3471,7 +3471,7 @@ } } }, - "AggregatedListInstanceGroupsRequest": { + "AggregatedListInstanceGroupManagersRequest": { "oneofs": { "_filter": { "oneof": [ @@ -3568,7 +3568,7 @@ } } }, - "AggregatedListInstanceTemplatesRequest": { + "AggregatedListInstanceGroupsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -3665,7 +3665,7 @@ } } }, - "AggregatedListInstancesRequest": { + "AggregatedListInstanceTemplatesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -3762,7 +3762,7 @@ } } }, - "AggregatedListInstantSnapshotsRequest": { + "AggregatedListInstancesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -3859,7 +3859,7 @@ } } }, - "AggregatedListInterconnectAttachmentsRequest": { + "AggregatedListInstantSnapshotsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -3956,7 +3956,7 @@ } } }, - "AggregatedListMachineTypesRequest": { + "AggregatedListInterconnectAttachmentsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -4053,7 +4053,7 @@ } } }, - "AggregatedListNetworkAttachmentsRequest": { + "AggregatedListMachineTypesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -4150,7 +4150,7 @@ } } }, - "AggregatedListNetworkEdgeSecurityServicesRequest": { + "AggregatedListNetworkAttachmentsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -4247,7 +4247,7 @@ } } }, - "AggregatedListNetworkEndpointGroupsRequest": { + "AggregatedListNetworkEdgeSecurityServicesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -4344,7 +4344,7 @@ } } }, - "AggregatedListNetworkFirewallPoliciesRequest": { + "AggregatedListNetworkEndpointGroupsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -4441,7 +4441,7 @@ } } }, - "AggregatedListNodeGroupsRequest": { + "AggregatedListNetworkFirewallPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -4538,7 +4538,7 @@ } } }, - "AggregatedListNodeTemplatesRequest": { + "AggregatedListNodeGroupsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -4635,7 +4635,7 @@ } } }, - "AggregatedListNodeTypesRequest": { + "AggregatedListNodeTemplatesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -4732,7 +4732,7 @@ } } }, - "AggregatedListPacketMirroringsRequest": { + "AggregatedListNodeTypesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -4829,7 +4829,7 @@ } } }, - "AggregatedListPublicDelegatedPrefixesRequest": { + "AggregatedListPacketMirroringsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -4926,7 +4926,7 @@ } } }, - "AggregatedListRegionCommitmentsRequest": { + "AggregatedListPublicDelegatedPrefixesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -5023,7 +5023,7 @@ } } }, - "AggregatedListRegionCompositeHealthChecksRequest": { + "AggregatedListRegionCommitmentsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -5120,7 +5120,7 @@ } } }, - "AggregatedListRegionHealthAggregationPoliciesRequest": { + "AggregatedListRegionCompositeHealthChecksRequest": { "oneofs": { "_filter": { "oneof": [ @@ -5217,7 +5217,7 @@ } } }, - "AggregatedListRegionHealthCheckServicesRequest": { + "AggregatedListRegionHealthAggregationPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -5314,7 +5314,7 @@ } } }, - "AggregatedListRegionHealthSourcesRequest": { + "AggregatedListRegionHealthCheckServicesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -5411,7 +5411,7 @@ } } }, - "AggregatedListRegionNotificationEndpointsRequest": { + "AggregatedListRegionHealthSourcesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -5508,7 +5508,7 @@ } } }, - "AggregatedListReservationsRequest": { + "AggregatedListRegionNotificationEndpointsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -5605,7 +5605,7 @@ } } }, - "AggregatedListResourcePoliciesRequest": { + "AggregatedListReservationsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -5702,7 +5702,7 @@ } } }, - "AggregatedListRoutersRequest": { + "AggregatedListResourcePoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -5799,7 +5799,7 @@ } } }, - "AggregatedListSecurityPoliciesRequest": { + "AggregatedListRoutersRequest": { "oneofs": { "_filter": { "oneof": [ @@ -5896,7 +5896,7 @@ } } }, - "AggregatedListServiceAttachmentsRequest": { + "AggregatedListSecurityPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -5993,7 +5993,7 @@ } } }, - "AggregatedListSslCertificatesRequest": { + "AggregatedListServiceAttachmentsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -6090,7 +6090,7 @@ } } }, - "AggregatedListSslPoliciesRequest": { + "AggregatedListSslCertificatesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -6187,7 +6187,7 @@ } } }, - "AggregatedListStoragePoolTypesRequest": { + "AggregatedListSslPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -6284,7 +6284,7 @@ } } }, - "AggregatedListStoragePoolsRequest": { + "AggregatedListStoragePoolTypesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -6381,7 +6381,7 @@ } } }, - "AggregatedListSubnetworksRequest": { + "AggregatedListStoragePoolsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -6417,11 +6417,6 @@ "oneof": [ "serviceProjectNumber" ] - }, - "_views": { - "oneof": [ - "views" - ] } }, "fields": { @@ -6480,26 +6475,10 @@ "options": { "proto3_optional": true } - }, - "views": { - "type": "string", - "id": 112204398, - "options": { - "proto3_optional": true - } - } - }, - "nested": { - "Views": { - "values": { - "UNDEFINED_VIEWS": 0, - "DEFAULT": 115302945, - "WITH_UTILIZATION": 504090633 - } } } }, - "AggregatedListTargetHttpProxiesRequest": { + "AggregatedListSubnetworksRequest": { "oneofs": { "_filter": { "oneof": [ @@ -6535,102 +6514,10 @@ "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 - } - } - } - }, - "AggregatedListTargetHttpsProxiesRequest": { - "oneofs": { - "_filter": { - "oneof": [ - "filter" - ] - }, - "_includeAllScopes": { - "oneof": [ - "includeAllScopes" - ] - }, - "_maxResults": { - "oneof": [ - "maxResults" - ] - }, - "_orderBy": { - "oneof": [ - "orderBy" - ] - }, - "_pageToken": { - "oneof": [ - "pageToken" - ] }, - "_returnPartialSuccess": { - "oneof": [ - "returnPartialSuccess" - ] - }, - "_serviceProjectNumber": { + "_views": { "oneof": [ - "serviceProjectNumber" + "views" ] } }, @@ -6690,107 +6577,317 @@ "options": { "proto3_optional": true } - } - } - }, - "AggregatedListTargetInstancesRequest": { - "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": { + "views": { "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "returnPartialSuccess": { - "type": "bool", - "id": 517198390, + "id": 112204398, "options": { "proto3_optional": true } - }, - "serviceProjectNumber": { - "type": "int64", - "id": 316757497, - "options": { - "proto3_optional": true + } + }, + "nested": { + "Views": { + "values": { + "UNDEFINED_VIEWS": 0, + "DEFAULT": 115302945, + "WITH_UTILIZATION": 504090633 } } } }, - "AggregatedListTargetPoolsRequest": { + "AggregatedListTargetHttpProxiesRequest": { + "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 + } + } + } + }, + "AggregatedListTargetHttpsProxiesRequest": { + "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 + } + } + } + }, + "AggregatedListTargetInstancesRequest": { + "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 + } + } + } + }, + "AggregatedListTargetPoolsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -9517,6 +9614,21 @@ "maxConnectionsPerInstance" ] }, + "_maxInFlightRequests": { + "oneof": [ + "maxInFlightRequests" + ] + }, + "_maxInFlightRequestsPerEndpoint": { + "oneof": [ + "maxInFlightRequestsPerEndpoint" + ] + }, + "_maxInFlightRequestsPerInstance": { + "oneof": [ + "maxInFlightRequestsPerInstance" + ] + }, "_maxRate": { "oneof": [ "maxRate" @@ -9546,6 +9658,11 @@ "oneof": [ "preference" ] + }, + "_trafficDuration": { + "oneof": [ + "trafficDuration" + ] } }, "fields": { @@ -9610,6 +9727,27 @@ "proto3_optional": true } }, + "maxInFlightRequests": { + "type": "int32", + "id": 273269332, + "options": { + "proto3_optional": true + } + }, + "maxInFlightRequestsPerEndpoint": { + "type": "int32", + "id": 307928706, + "options": { + "proto3_optional": true + } + }, + "maxInFlightRequestsPerInstance": { + "type": "int32", + "id": 195696002, + "options": { + "proto3_optional": true + } + }, "maxRate": { "type": "int32", "id": 408035035, @@ -9651,6 +9789,13 @@ "options": { "proto3_optional": true } + }, + "trafficDuration": { + "type": "string", + "id": 11618710, + "options": { + "proto3_optional": true + } } }, "nested": { @@ -9659,6 +9804,7 @@ "UNDEFINED_BALANCING_MODE": 0, "CONNECTION": 246311646, "CUSTOM_METRICS": 331575765, + "IN_FLIGHT": 190040266, "RATE": 2508000, "UTILIZATION": 157008386 } @@ -9670,6 +9816,14 @@ "PREFERENCE_UNSPECIFIED": 496219571, "PREFERRED": 418847841 } + }, + "TrafficDuration": { + "values": { + "UNDEFINED_TRAFFIC_DURATION": 0, + "LONG": 2342524, + "SHORT": 78875740, + "TRAFFIC_DURATION_UNSPECIFIED": 265201166 + } } } }, @@ -9753,6 +9907,11 @@ "params" ] }, + "_region": { + "oneof": [ + "region" + ] + }, "_selfLink": { "oneof": [ "selfLink" @@ -9849,6 +10008,13 @@ "proto3_optional": true } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "proto3_optional": true + } + }, "selfLink": { "type": "string", "id": 456214797, @@ -9873,11 +10039,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": { @@ -10151,6 +10389,77 @@ } } }, + "BackendBucketListUsable": { + "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": "BackendBucket", + "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 + } + } + } + }, "BackendBucketParams": { "fields": { "resourceManagerTags": { @@ -10178,6 +10487,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": { @@ -12641,6 +12973,16 @@ }, "BulkInsertDiskResource": { "oneofs": { + "_instantSnapshotGroupParameters": { + "oneof": [ + "instantSnapshotGroupParameters" + ] + }, + "_snapshotGroupParameters": { + "oneof": [ + "snapshotGroupParameters" + ] + }, "_sourceConsistencyGroupPolicy": { "oneof": [ "sourceConsistencyGroupPolicy" @@ -12648,6 +12990,20 @@ } }, "fields": { + "instantSnapshotGroupParameters": { + "type": "InstantSnapshotGroupParameters", + "id": 17051623, + "options": { + "proto3_optional": true + } + }, + "snapshotGroupParameters": { + "type": "SnapshotGroupParameters", + "id": 42252485, + "options": { + "proto3_optional": true + } + }, "sourceConsistencyGroupPolicy": { "type": "string", "id": 19616093, @@ -13335,6 +13691,54 @@ } } }, + "CancelRegionInstanceGroupManagerResizeRequestRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "instanceGroupManager": { + "type": "string", + "id": 249363395, + "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 + } + }, + "resizeRequest": { + "type": "string", + "id": 216941060, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "CircuitBreakers": { "oneofs": { "_maxConnections": { @@ -13588,6 +13992,11 @@ "name" ] }, + "_params": { + "oneof": [ + "params" + ] + }, "_plan": { "oneof": [ "plan" @@ -13715,6 +14124,13 @@ "proto3_optional": true } }, + "params": { + "type": "CommitmentParams", + "id": 78313862, + "options": { + "proto3_optional": true + } + }, "plan": { "type": "string", "id": 3443497, @@ -14009,6 +14425,15 @@ } } }, + "CommitmentParams": { + "fields": { + "resourceManagerTags": { + "keyType": "string", + "type": "string", + "id": 377671164 + } + } + }, "CommitmentResourceStatus": { "oneofs": { "_customTermEligibilityEndTimestamp": { @@ -14257,6 +14682,51 @@ } } }, + "CompositeHealthCheckHealth": { + "oneofs": { + "_healthState": { + "oneof": [ + "healthState" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + } + }, + "fields": { + "healthSources": { + "rule": "repeated", + "type": "CompositeHealthChecksGetHealthResponseHealthSourceHealth", + "id": 397879509 + }, + "healthState": { + "type": "string", + "id": 324007150, + "options": { + "proto3_optional": true + } + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "HealthState": { + "values": { + "UNDEFINED_HEALTH_STATE": 0, + "HEALTHY": 439801213, + "UNHEALTHY": 462118084, + "UNKNOWN": 433141802 + } + } + } + }, "CompositeHealthCheckList": { "oneofs": { "_id": { @@ -14328,6 +14798,46 @@ } } }, + "CompositeHealthChecksGetHealthResponseHealthSourceHealth": { + "oneofs": { + "_healthState": { + "oneof": [ + "healthState" + ] + }, + "_source": { + "oneof": [ + "source" + ] + } + }, + "fields": { + "healthState": { + "type": "string", + "id": 324007150, + "options": { + "proto3_optional": true + } + }, + "source": { + "type": "string", + "id": 177235995, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "HealthState": { + "values": { + "UNDEFINED_HEALTH_STATE": 0, + "HEALTHY": 439801213, + "UNHEALTHY": 462118084, + "UNKNOWN": 433141802 + } + } + } + }, "CompositeHealthChecksScopedList": { "oneofs": { "_warning": { @@ -16217,6 +16727,47 @@ } } }, + "DeleteInstantSnapshotGroupRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "instantSnapshotGroup": { + "type": "string", + "id": 223180386, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "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 + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "zone" + } + } + } + }, "DeleteInstantSnapshotRequest": { "oneofs": { "_requestId": { @@ -17080,6 +17631,47 @@ } } }, + "DeleteRegionBackendBucketRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "backendBucket": { + "type": "string", + "id": 91714037, + "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 + } + } + } + }, "DeleteRegionBackendServiceRequest": { "oneofs": { "_requestId": { @@ -17408,7 +18000,7 @@ } } }, - "DeleteRegionInstanceTemplateRequest": { + "DeleteRegionInstanceGroupManagerResizeRequestRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -17417,9 +18009,9 @@ } }, "fields": { - "instanceTemplate": { + "instanceGroupManager": { "type": "string", - "id": 309248228, + "id": 249363395, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -17446,10 +18038,17 @@ "options": { "proto3_optional": true } + }, + "resizeRequest": { + "type": "string", + "id": 216941060, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "DeleteRegionInstantSnapshotRequest": { + "DeleteRegionInstanceTemplateRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -17458,9 +18057,9 @@ } }, "fields": { - "instantSnapshot": { + "instanceTemplate": { "type": "string", - "id": 391638626, + "id": 309248228, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -17490,7 +18089,7 @@ } } }, - "DeleteRegionNetworkEndpointGroupRequest": { + "DeleteRegionInstantSnapshotGroupRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -17499,9 +18098,9 @@ } }, "fields": { - "networkEndpointGroup": { + "instantSnapshotGroup": { "type": "string", - "id": 433907078, + "id": 223180386, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -17531,7 +18130,7 @@ } } }, - "DeleteRegionNetworkFirewallPolicyRequest": { + "DeleteRegionInstantSnapshotRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -17540,9 +18139,91 @@ } }, "fields": { - "firewallPolicy": { + "instantSnapshot": { "type": "string", - "id": 498173265, + "id": 391638626, + "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 + } + } + } + }, + "DeleteRegionNetworkEndpointGroupRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "networkEndpointGroup": { + "type": "string", + "id": 433907078, + "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 + } + } + } + }, + "DeleteRegionNetworkFirewallPolicyRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "firewallPolicy": { + "type": "string", + "id": 498173265, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -17682,6 +18363,47 @@ } } }, + "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": { @@ -18943,6 +19665,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": { @@ -20593,6 +21356,24 @@ } } }, + "DiskUpdateKmsKeyRequest": { + "oneofs": { + "_kmsKeyName": { + "oneof": [ + "kmsKeyName" + ] + } + }, + "fields": { + "kmsKeyName": { + "type": "string", + "id": 484373913, + "options": { + "proto3_optional": true + } + } + } + }, "DisksAddResourcePoliciesRequest": { "fields": { "resourcePolicies": { @@ -23454,6 +24235,11 @@ "commitmentInfo" ] }, + "_confidentialComputeType": { + "oneof": [ + "confidentialComputeType" + ] + }, "_creationTimestamp": { "oneof": [ "creationTimestamp" @@ -23494,6 +24280,11 @@ "namePrefix" ] }, + "_params": { + "oneof": [ + "params" + ] + }, "_planningStatus": { "oneof": [ "planningStatus" @@ -23591,6 +24382,13 @@ "proto3_optional": true } }, + "confidentialComputeType": { + "type": "string", + "id": 386447257, + "options": { + "proto3_optional": true + } + }, "creationTimestamp": { "type": "string", "id": 30525366, @@ -23647,6 +24445,13 @@ "proto3_optional": true } }, + "params": { + "type": "FutureReservationParams", + "id": 78313862, + "options": { + "proto3_optional": true + } + }, "planningStatus": { "type": "string", "id": 19714836, @@ -23733,6 +24538,13 @@ } }, "nested": { + "ConfidentialComputeType": { + "values": { + "UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE": 0, + "CONFIDENTIAL_COMPUTE_TYPE_TDX": 301241954, + "CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED": 42227601 + } + }, "DeploymentType": { "values": { "UNDEFINED_DEPLOYMENT_TYPE": 0, @@ -23825,6 +24637,15 @@ } } }, + "FutureReservationParams": { + "fields": { + "resourceManagerTags": { + "keyType": "string", + "type": "string", + "id": 377671164 + } + } + }, "FutureReservationSpecificSKUProperties": { "oneofs": { "_instanceProperties": { @@ -25699,6 +26520,56 @@ } } }, + "GetHealthRegionCompositeHealthCheckRequest": { + "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" + } + } + } + }, + "GetHealthRegionHealthSourceRequest": { + "fields": { + "healthSource": { + "type": "string", + "id": 376521566, + "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" + } + } + } + }, "GetHealthTargetPoolRequest": { "fields": { "instanceReferenceResource": { @@ -25962,6 +26833,45 @@ } } }, + "GetIamPolicyInstantSnapshotGroupRequest": { + "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" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "GetIamPolicyInstantSnapshotRequest": { "oneofs": { "_optionsRequestedPolicyVersion": { @@ -26278,6 +27188,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": { @@ -26356,6 +27305,45 @@ } } }, + "GetIamPolicyRegionInstantSnapshotGroupRequest": { + "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" + } + } + } + }, "GetIamPolicyRegionInstantSnapshotRequest": { "oneofs": { "_optionsRequestedPolicyVersion": { @@ -26434,6 +27422,45 @@ } } }, + "GetIamPolicyRegionSnapshotRequest": { + "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" + } + } + } + }, "GetIamPolicyReservationBlockRequest": { "oneofs": { "_optionsRequestedPolicyVersion": { @@ -26939,6 +27966,31 @@ } } }, + "GetInstantSnapshotGroupRequest": { + "fields": { + "instantSnapshotGroup": { + "type": "string", + "id": 223180386, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "GetInstantSnapshotRequest": { "fields": { "instantSnapshot": { @@ -27719,6 +28771,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": { @@ -27969,6 +29046,38 @@ } } }, + "GetRegionInstanceGroupManagerResizeRequestRequest": { + "fields": { + "instanceGroupManager": { + "type": "string", + "id": 249363395, + "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" + } + }, + "resizeRequest": { + "type": "string", + "id": 216941060, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "GetRegionInstanceGroupRequest": { "fields": { "instanceGroup": { @@ -28019,6 +29128,31 @@ } } }, + "GetRegionInstantSnapshotGroupRequest": { + "fields": { + "instantSnapshotGroup": { + "type": "string", + "id": 223180386, + "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" + } + } + } + }, "GetRegionInstantSnapshotRequest": { "fields": { "instantSnapshot": { @@ -28188,6 +29322,49 @@ } } }, + "GetRegionSnapshotRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "snapshot": { + "type": "string", + "id": 284874180, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "GetRegionSnapshotSettingRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "GetRegionSslCertificateRequest": { "fields": { "project": { @@ -29705,6 +30882,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": { @@ -31802,6 +33004,51 @@ } } }, + "HealthSourceHealth": { + "oneofs": { + "_healthState": { + "oneof": [ + "healthState" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + } + }, + "fields": { + "healthState": { + "type": "string", + "id": 324007150, + "options": { + "proto3_optional": true + } + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "sources": { + "rule": "repeated", + "type": "HealthSourcesGetHealthResponseSourceInfo", + "id": 125606840 + } + }, + "nested": { + "HealthState": { + "values": { + "UNDEFINED_HEALTH_STATE": 0, + "HEALTHY": 439801213, + "UNHEALTHY": 462118084, + "UNKNOWN": 433141802 + } + } + } + }, "HealthSourceList": { "oneofs": { "_id": { @@ -31873,6 +33120,83 @@ } } }, + "HealthSourcesGetHealthResponseSourceInfo": { + "oneofs": { + "_forwardingRule": { + "oneof": [ + "forwardingRule" + ] + }, + "_source": { + "oneof": [ + "source" + ] + } + }, + "fields": { + "backends": { + "rule": "repeated", + "type": "HealthSourcesGetHealthResponseSourceInfoBackendInfo", + "id": 510839903 + }, + "forwardingRule": { + "type": "string", + "id": 269964030, + "options": { + "proto3_optional": true + } + }, + "source": { + "type": "string", + "id": 177235995, + "options": { + "proto3_optional": true + } + } + } + }, + "HealthSourcesGetHealthResponseSourceInfoBackendInfo": { + "oneofs": { + "_endpointCount": { + "oneof": [ + "endpointCount" + ] + }, + "_group": { + "oneof": [ + "group" + ] + }, + "_healthyEndpointCount": { + "oneof": [ + "healthyEndpointCount" + ] + } + }, + "fields": { + "endpointCount": { + "type": "int32", + "id": 486641125, + "options": { + "proto3_optional": true + } + }, + "group": { + "type": "string", + "id": 98629247, + "options": { + "proto3_optional": true + } + }, + "healthyEndpointCount": { + "type": "int32", + "id": 291284167, + "options": { + "proto3_optional": true + } + } + } + }, "HealthSourcesScopedList": { "oneofs": { "_warning": { @@ -34338,18 +35662,23 @@ } } }, - "InsertInstantSnapshotRequest": { + "InsertInstantSnapshotGroupRequest": { "oneofs": { "_requestId": { "oneof": [ "requestId" ] + }, + "_sourceConsistencyGroup": { + "oneof": [ + "sourceConsistencyGroup" + ] } }, "fields": { - "instantSnapshotResource": { - "type": "InstantSnapshot", - "id": 383915339, + "instantSnapshotGroupResource": { + "type": "InstantSnapshotGroup", + "id": 145067339, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -34369,6 +35698,13 @@ "proto3_optional": true } }, + "sourceConsistencyGroup": { + "type": "string", + "id": 531359348, + "options": { + "proto3_optional": true + } + }, "zone": { "type": "string", "id": 3744684, @@ -34379,7 +35715,7 @@ } } }, - "InsertInterconnectAttachmentGroupRequest": { + "InsertInstantSnapshotRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -34388,9 +35724,9 @@ } }, "fields": { - "interconnectAttachmentGroupResource": { - "type": "InterconnectAttachmentGroup", - "id": 9990137, + "instantSnapshotResource": { + "type": "InstantSnapshot", + "id": 383915339, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -34409,63 +35745,18 @@ "options": { "proto3_optional": true } - } - } - }, - "InsertInterconnectAttachmentRequest": { - "oneofs": { - "_requestId": { - "oneof": [ - "requestId" - ] - }, - "_validateOnly": { - "oneof": [ - "validateOnly" - ] - } - }, - "fields": { - "interconnectAttachmentResource": { - "type": "InterconnectAttachment", - "id": 212341369, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "project" - } }, - "region": { + "zone": { "type": "string", - "id": 138946292, + "id": 3744684, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "region" - } - }, - "requestId": { - "type": "string", - "id": 37109963, - "options": { - "proto3_optional": true - } - }, - "validateOnly": { - "type": "bool", - "id": 242744629, - "options": { - "proto3_optional": true + "(google.cloud.operation_request_field)": "zone" } } } }, - "InsertInterconnectGroupRequest": { + "InsertInterconnectAttachmentGroupRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -34474,9 +35765,95 @@ } }, "fields": { - "interconnectGroupResource": { - "type": "InterconnectGroup", - "id": 85571999, + "interconnectAttachmentGroupResource": { + "type": "InterconnectAttachmentGroup", + "id": 9990137, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "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 + } + } + } + }, + "InsertInterconnectAttachmentRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + }, + "_validateOnly": { + "oneof": [ + "validateOnly" + ] + } + }, + "fields": { + "interconnectAttachmentResource": { + "type": "InterconnectAttachment", + "id": 212341369, + "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 + } + }, + "validateOnly": { + "type": "bool", + "id": 242744629, + "options": { + "proto3_optional": true + } + } + } + }, + "InsertInterconnectGroupRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "interconnectGroupResource": { + "type": "InterconnectGroup", + "id": 85571999, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -35093,6 +36470,47 @@ } } }, + "InsertRegionBackendBucketRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "backendBucketResource": { + "type": "BackendBucket", + "id": 380757784, + "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 + } + } + } + }, "InsertRegionBackendServiceRequest": { "oneofs": { "_requestId": { @@ -35474,7 +36892,7 @@ } } }, - "InsertRegionInstanceTemplateRequest": { + "InsertRegionInstanceGroupManagerResizeRequestRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -35483,9 +36901,16 @@ } }, "fields": { - "instanceTemplateResource": { - "type": "InstanceTemplate", - "id": 10679561, + "instanceGroupManager": { + "type": "string", + "id": 249363395, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "instanceGroupManagerResizeRequestResource": { + "type": "InstanceGroupManagerResizeRequest", + "id": 468541293, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -35515,7 +36940,7 @@ } } }, - "InsertRegionInstantSnapshotRequest": { + "InsertRegionInstanceTemplateRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -35524,9 +36949,9 @@ } }, "fields": { - "instantSnapshotResource": { - "type": "InstantSnapshot", - "id": 383915339, + "instanceTemplateResource": { + "type": "InstanceTemplate", + "id": 10679561, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -35556,18 +36981,23 @@ } } }, - "InsertRegionNetworkEndpointGroupRequest": { + "InsertRegionInstantSnapshotGroupRequest": { "oneofs": { "_requestId": { "oneof": [ "requestId" ] + }, + "_sourceConsistencyGroup": { + "oneof": [ + "sourceConsistencyGroup" + ] } }, "fields": { - "networkEndpointGroupResource": { - "type": "NetworkEndpointGroup", - "id": 525788839, + "instantSnapshotGroupResource": { + "type": "InstantSnapshotGroup", + "id": 145067339, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -35594,10 +37024,17 @@ "options": { "proto3_optional": true } + }, + "sourceConsistencyGroup": { + "type": "string", + "id": 531359348, + "options": { + "proto3_optional": true + } } } }, - "InsertRegionNetworkFirewallPolicyRequest": { + "InsertRegionInstantSnapshotRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -35606,9 +37043,9 @@ } }, "fields": { - "firewallPolicyResource": { - "type": "FirewallPolicy", - "id": 495049532, + "instantSnapshotResource": { + "type": "InstantSnapshot", + "id": 383915339, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -35638,7 +37075,7 @@ } } }, - "InsertRegionNotificationEndpointRequest": { + "InsertRegionNetworkEndpointGroupRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -35647,9 +37084,9 @@ } }, "fields": { - "notificationEndpointResource": { - "type": "NotificationEndpoint", - "id": 338459940, + "networkEndpointGroupResource": { + "type": "NetworkEndpointGroup", + "id": 525788839, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -35679,20 +37116,22 @@ } } }, - "InsertRegionSecurityPolicyRequest": { + "InsertRegionNetworkFirewallPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ "requestId" ] - }, - "_validateOnly": { - "oneof": [ - "validateOnly" - ] } }, "fields": { + "firewallPolicyResource": { + "type": "FirewallPolicy", + "id": 495049532, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "project": { "type": "string", "id": 227560217, @@ -35715,24 +37154,10 @@ "options": { "proto3_optional": true } - }, - "securityPolicyResource": { - "type": "SecurityPolicy", - "id": 216159612, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "validateOnly": { - "type": "bool", - "id": 242744629, - "options": { - "proto3_optional": true - } } } }, - "InsertRegionSslCertificateRequest": { + "InsertRegionNotificationEndpointRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -35741,6 +37166,13 @@ } }, "fields": { + "notificationEndpointResource": { + "type": "NotificationEndpoint", + "id": 338459940, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "project": { "type": "string", "id": 227560217, @@ -35763,22 +37195,20 @@ "options": { "proto3_optional": true } - }, - "sslCertificateResource": { - "type": "SslCertificate", - "id": 180709897, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "InsertRegionSslPolicyRequest": { + "InsertRegionSecurityPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ "requestId" ] + }, + "_validateOnly": { + "oneof": [ + "validateOnly" + ] } }, "fields": { @@ -35805,16 +37235,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 + } } } }, - "InsertRegionTargetHttpProxyRequest": { + "InsertRegionSnapshotRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -35846,16 +37283,16 @@ "proto3_optional": true } }, - "targetHttpProxyResource": { - "type": "TargetHttpProxy", - "id": 24696744, + "snapshotResource": { + "type": "Snapshot", + "id": 481319977, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertRegionTargetHttpsProxyRequest": { + "InsertRegionSslCertificateRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -35887,16 +37324,16 @@ "proto3_optional": true } }, - "targetHttpsProxyResource": { - "type": "TargetHttpsProxy", - "id": 433657473, + "sslCertificateResource": { + "type": "SslCertificate", + "id": 180709897, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertRegionTargetTcpProxyRequest": { + "InsertRegionSslPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -35928,16 +37365,16 @@ "proto3_optional": true } }, - "targetTcpProxyResource": { - "type": "TargetTcpProxy", - "id": 145913931, + "sslPolicyResource": { + "type": "SslPolicy", + "id": 274891848, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertRegionUrlMapRequest": { + "InsertRegionTargetHttpProxyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -35969,57 +37406,16 @@ "proto3_optional": true } }, - "urlMapResource": { - "type": "UrlMap", - "id": 168675425, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "InsertReservationRequest": { - "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 - } - }, - "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": [ @@ -36051,16 +37447,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": [ @@ -36077,6 +37473,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, @@ -36084,16 +37488,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": [ @@ -36125,26 +37529,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": { @@ -36163,23 +37562,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": [ @@ -36211,16 +37611,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": [ @@ -36244,16 +37644,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": [ @@ -36270,37 +37670,12 @@ "(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": { + "region": { "type": "string", - "id": 227560217, + "id": 138946292, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "project" + "(google.cloud.operation_request_field)": "region" } }, "requestId": { @@ -36310,21 +37685,26 @@ "proto3_optional": true } }, - "sslPolicyResource": { - "type": "SslPolicy", - "id": 274891848, + "routerResource": { + "type": "Router", + "id": 155222084, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertStoragePoolRequest": { + "InsertSecurityPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ "requestId" ] + }, + "_validateOnly": { + "oneof": [ + "validateOnly" + ] } }, "fields": { @@ -36343,24 +37723,23 @@ "proto3_optional": true } }, - "storagePoolResource": { - "type": "StoragePool", - "id": 157179405, + "securityPolicyResource": { + "type": "SecurityPolicy", + "id": 216159612, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "zone": { - "type": "string", - "id": 3744684, + "validateOnly": { + "type": "bool", + "id": 242744629, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "zone" + "proto3_optional": true } } } }, - "InsertSubnetworkRequest": { + "InsertServiceAttachmentRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -36392,16 +37771,16 @@ "proto3_optional": true } }, - "subnetworkResource": { - "type": "Subnetwork", - "id": 42233151, + "serviceAttachmentResource": { + "type": "ServiceAttachment", + "id": 472980256, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertTargetGrpcProxyRequest": { + "InsertSnapshotRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -36425,16 +37804,16 @@ "proto3_optional": true } }, - "targetGrpcProxyResource": { - "type": "TargetGrpcProxy", - "id": 328922450, + "snapshotResource": { + "type": "Snapshot", + "id": 481319977, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertTargetHttpProxyRequest": { + "InsertSslCertificateRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -36458,16 +37837,16 @@ "proto3_optional": true } }, - "targetHttpProxyResource": { - "type": "TargetHttpProxy", - "id": 24696744, + "sslCertificateResource": { + "type": "SslCertificate", + "id": 180709897, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertTargetHttpsProxyRequest": { + "InsertSslPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -36491,16 +37870,16 @@ "proto3_optional": true } }, - "targetHttpsProxyResource": { - "type": "TargetHttpsProxy", - "id": 433657473, + "sslPolicyResource": { + "type": "SslPolicy", + "id": 274891848, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertTargetInstanceRequest": { + "InsertStoragePoolRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -36524,9 +37903,9 @@ "proto3_optional": true } }, - "targetInstanceResource": { - "type": "TargetInstance", - "id": 430453066, + "storagePoolResource": { + "type": "StoragePool", + "id": 157179405, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -36541,7 +37920,7 @@ } } }, - "InsertTargetPoolRequest": { + "InsertSubnetworkRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -36573,16 +37952,16 @@ "proto3_optional": true } }, - "targetPoolResource": { - "type": "TargetPool", - "id": 101281443, + "subnetworkResource": { + "type": "Subnetwork", + "id": 42233151, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertTargetSslProxyRequest": { + "InsertTargetGrpcProxyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -36606,16 +37985,16 @@ "proto3_optional": true } }, - "targetSslProxyResource": { - "type": "TargetSslProxy", - "id": 142016192, + "targetGrpcProxyResource": { + "type": "TargetGrpcProxy", + "id": 328922450, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertTargetTcpProxyRequest": { + "InsertTargetHttpProxyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -36639,16 +38018,16 @@ "proto3_optional": true } }, - "targetTcpProxyResource": { - "type": "TargetTcpProxy", - "id": 145913931, + "targetHttpProxyResource": { + "type": "TargetHttpProxy", + "id": 24696744, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertTargetVpnGatewayRequest": { + "InsertTargetHttpsProxyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -36665,14 +38044,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, @@ -36680,16 +38051,205 @@ "proto3_optional": true } }, - "targetVpnGatewayResource": { - "type": "TargetVpnGateway", - "id": 498050, + "targetHttpsProxyResource": { + "type": "TargetHttpsProxy", + "id": 433657473, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertUrlMapRequest": { + "InsertTargetInstanceRequest": { + "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 + } + }, + "targetInstanceResource": { + "type": "TargetInstance", + "id": 430453066, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "zone" + } + } + } + }, + "InsertTargetPoolRequest": { + "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 + } + }, + "targetPoolResource": { + "type": "TargetPool", + "id": 101281443, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "InsertTargetSslProxyRequest": { + "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 + } + }, + "targetSslProxyResource": { + "type": "TargetSslProxy", + "id": 142016192, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "InsertTargetTcpProxyRequest": { + "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 + } + }, + "targetTcpProxyResource": { + "type": "TargetTcpProxy", + "id": 145913931, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "InsertTargetVpnGatewayRequest": { + "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 + } + }, + "targetVpnGatewayResource": { + "type": "TargetVpnGateway", + "id": 498050, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "InsertUrlMapRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -36856,6 +38416,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": { @@ -38780,6 +40381,11 @@ "name" ] }, + "_region": { + "oneof": [ + "region" + ] + }, "_requestedRunDuration": { "oneof": [ "requestedRunDuration" @@ -38852,6 +40458,13 @@ "proto3_optional": true } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "proto3_optional": true + } + }, "requestedRunDuration": { "type": "Duration", "id": 232146425, @@ -39109,6 +40722,11 @@ "bulkInstanceOperation" ] }, + "_currentInstanceStatuses": { + "oneof": [ + "currentInstanceStatuses" + ] + }, "_isStable": { "oneof": [ "isStable" @@ -39152,6 +40770,13 @@ "proto3_optional": true } }, + "currentInstanceStatuses": { + "type": "InstanceGroupManagerStatusInstanceStatusSummary", + "id": 269432644, + "options": { + "proto3_optional": true + } + }, "isStable": { "type": "bool", "id": 108410864, @@ -39350,6 +40975,168 @@ } } }, + "InstanceGroupManagerStatusInstanceStatusSummary": { + "oneofs": { + "_deprovisioning": { + "oneof": [ + "deprovisioning" + ] + }, + "_nonExistent": { + "oneof": [ + "nonExistent" + ] + }, + "_pending": { + "oneof": [ + "pending" + ] + }, + "_pendingStop": { + "oneof": [ + "pendingStop" + ] + }, + "_provisioning": { + "oneof": [ + "provisioning" + ] + }, + "_repairing": { + "oneof": [ + "repairing" + ] + }, + "_running": { + "oneof": [ + "running" + ] + }, + "_staging": { + "oneof": [ + "staging" + ] + }, + "_stopped": { + "oneof": [ + "stopped" + ] + }, + "_stopping": { + "oneof": [ + "stopping" + ] + }, + "_suspended": { + "oneof": [ + "suspended" + ] + }, + "_suspending": { + "oneof": [ + "suspending" + ] + }, + "_terminated": { + "oneof": [ + "terminated" + ] + } + }, + "fields": { + "deprovisioning": { + "type": "int32", + "id": 462169582, + "options": { + "proto3_optional": true + } + }, + "nonExistent": { + "type": "int32", + "id": 468485062, + "options": { + "proto3_optional": true + } + }, + "pending": { + "type": "int32", + "id": 391154071, + "options": { + "proto3_optional": true + } + }, + "pendingStop": { + "type": "int32", + "id": 163159466, + "options": { + "proto3_optional": true + } + }, + "provisioning": { + "type": "int32", + "id": 121098989, + "options": { + "proto3_optional": true + } + }, + "repairing": { + "type": "int32", + "id": 311243061, + "options": { + "proto3_optional": true + } + }, + "running": { + "type": "int32", + "id": 477042111, + "options": { + "proto3_optional": true + } + }, + "staging": { + "type": "int32", + "id": 249960507, + "options": { + "proto3_optional": true + } + }, + "stopped": { + "type": "int32", + "id": 263164365, + "options": { + "proto3_optional": true + } + }, + "stopping": { + "type": "int32", + "id": 105035892, + "options": { + "proto3_optional": true + } + }, + "suspended": { + "type": "int32", + "id": 485854683, + "options": { + "proto3_optional": true + } + }, + "suspending": { + "type": "int32", + "id": 29113894, + "options": { + "proto3_optional": true + } + }, + "terminated": { + "type": "int32", + "id": 301796899, + "options": { + "proto3_optional": true + } + } + } + }, "InstanceGroupManagerStatusStateful": { "oneofs": { "_hasStatefulConfig": { @@ -41602,6 +43389,16 @@ "sourceDiskId" ] }, + "_sourceInstantSnapshotGroup": { + "oneof": [ + "sourceInstantSnapshotGroup" + ] + }, + "_sourceInstantSnapshotGroupId": { + "oneof": [ + "sourceInstantSnapshotGroupId" + ] + }, "_status": { "oneof": [ "status" @@ -41738,6 +43535,20 @@ "proto3_optional": true } }, + "sourceInstantSnapshotGroup": { + "type": "string", + "id": 525991686, + "options": { + "proto3_optional": true + } + }, + "sourceInstantSnapshotGroupId": { + "type": "string", + "id": 167103732, + "options": { + "proto3_optional": true + } + }, "status": { "type": "string", "id": 181260274, @@ -41850,6 +43661,247 @@ } } }, + "InstantSnapshotGroup": { + "oneofs": { + "_creationTimestamp": { + "oneof": [ + "creationTimestamp" + ] + }, + "_description": { + "oneof": [ + "description" + ] + }, + "_id": { + "oneof": [ + "id" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_name": { + "oneof": [ + "name" + ] + }, + "_region": { + "oneof": [ + "region" + ] + }, + "_resourceStatus": { + "oneof": [ + "resourceStatus" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + }, + "_selfLinkWithId": { + "oneof": [ + "selfLinkWithId" + ] + }, + "_sourceConsistencyGroup": { + "oneof": [ + "sourceConsistencyGroup" + ] + }, + "_status": { + "oneof": [ + "status" + ] + }, + "_zone": { + "oneof": [ + "zone" + ] + } + }, + "fields": { + "creationTimestamp": { + "type": "string", + "id": 30525366, + "options": { + "proto3_optional": true + } + }, + "description": { + "type": "string", + "id": 422937596, + "options": { + "proto3_optional": true + } + }, + "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 + } + }, + "resourceStatus": { + "type": "InstantSnapshotGroupResourceStatus", + "id": 249429315, + "options": { + "proto3_optional": true + } + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, + "selfLinkWithId": { + "type": "string", + "id": 44520962, + "options": { + "proto3_optional": true + } + }, + "sourceConsistencyGroup": { + "type": "string", + "id": 531359348, + "options": { + "proto3_optional": true + } + }, + "status": { + "type": "string", + "id": 181260274, + "options": { + "proto3_optional": true + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "Status": { + "values": { + "UNDEFINED_STATUS": 0, + "CREATING": 455564985, + "DELETING": 528602024, + "FAILED": 455706685, + "INVALID": 530283991, + "READY": 77848963, + "UNKNOWN": 433141802 + } + } + } + }, + "InstantSnapshotGroupParameters": { + "oneofs": { + "_sourceInstantSnapshotGroup": { + "oneof": [ + "sourceInstantSnapshotGroup" + ] + } + }, + "fields": { + "sourceInstantSnapshotGroup": { + "type": "string", + "id": 525991686, + "options": { + "proto3_optional": true + } + } + } + }, + "InstantSnapshotGroupResourceStatus": { + "oneofs": { + "_consistencyMembershipResolutionTime": { + "oneof": [ + "consistencyMembershipResolutionTime" + ] + }, + "_sourceInfo": { + "oneof": [ + "sourceInfo" + ] + } + }, + "fields": { + "consistencyMembershipResolutionTime": { + "type": "string", + "id": 346675870, + "options": { + "proto3_optional": true + } + }, + "sourceInfo": { + "type": "InstantSnapshotGroupSourceInfo", + "id": 451907154, + "options": { + "proto3_optional": true + } + } + } + }, + "InstantSnapshotGroupSourceInfo": { + "oneofs": { + "_consistencyGroup": { + "oneof": [ + "consistencyGroup" + ] + }, + "_consistencyGroupId": { + "oneof": [ + "consistencyGroupId" + ] + } + }, + "fields": { + "consistencyGroup": { + "type": "string", + "id": 508183960, + "options": { + "proto3_optional": true + } + }, + "consistencyGroupId": { + "type": "string", + "id": 85599522, + "options": { + "proto3_optional": true + } + } + } + }, "InstantSnapshotList": { "oneofs": { "_id": { @@ -50138,6 +52190,174 @@ } } }, + "ListInstantSnapshotGroups": { + "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": { + "rule": "repeated", + "type": "InstantSnapshotGroup", + "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 + } + } + } + }, + "ListInstantSnapshotGroupsRequest": { + "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" + } + } + } + }, "ListInstantSnapshotsRequest": { "oneofs": { "_filter": { @@ -53031,6 +55251,86 @@ } } }, + "ListRegionBackendBucketsRequest": { + "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 + } + } + } + }, "ListRegionBackendServicesRequest": { "oneofs": { "_filter": { @@ -53751,7 +56051,7 @@ } } }, - "ListRegionInstanceGroupManagersRequest": { + "ListRegionInstanceGroupManagerResizeRequestsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -53787,6 +56087,13 @@ "proto3_optional": true } }, + "instanceGroupManager": { + "type": "string", + "id": 249363395, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "maxResults": { "type": "uint32", "id": 54715419, @@ -53831,7 +56138,7 @@ } } }, - "ListRegionInstanceGroupsRequest": { + "ListRegionInstanceGroupManagersRequest": { "oneofs": { "_filter": { "oneof": [ @@ -53911,7 +56218,7 @@ } } }, - "ListRegionInstanceTemplatesRequest": { + "ListRegionInstanceGroupsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -53991,7 +56298,7 @@ } } }, - "ListRegionInstantSnapshotsRequest": { + "ListRegionInstanceTemplatesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -54071,7 +56378,7 @@ } } }, - "ListRegionNetworkEndpointGroupsRequest": { + "ListRegionInstantSnapshotGroupsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -54151,7 +56458,7 @@ } } }, - "ListRegionNetworkFirewallPoliciesRequest": { + "ListRegionInstantSnapshotsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -54231,7 +56538,7 @@ } } }, - "ListRegionNotificationEndpointsRequest": { + "ListRegionNetworkEndpointGroupsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -54311,7 +56618,7 @@ } } }, - "ListRegionOperationsRequest": { + "ListRegionNetworkFirewallPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -54391,7 +56698,7 @@ } } }, - "ListRegionSecurityPoliciesRequest": { + "ListRegionNotificationEndpointsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -54471,7 +56778,7 @@ } } }, - "ListRegionSslCertificatesRequest": { + "ListRegionOperationsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -54551,7 +56858,7 @@ } } }, - "ListRegionSslPoliciesRequest": { + "ListRegionSecurityPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -54631,7 +56938,7 @@ } } }, - "ListRegionTargetHttpProxiesRequest": { + "ListRegionSnapshotsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -54711,7 +57018,7 @@ } } }, - "ListRegionTargetHttpsProxiesRequest": { + "ListRegionSslCertificatesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -54791,7 +57098,7 @@ } } }, - "ListRegionTargetTcpProxiesRequest": { + "ListRegionSslPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -54871,7 +57178,7 @@ } } }, - "ListRegionUrlMapsRequest": { + "ListRegionTargetHttpProxiesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -54951,7 +57258,7 @@ } } }, - "ListRegionZonesRequest": { + "ListRegionTargetHttpsProxiesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -55031,7 +57338,7 @@ } } }, - "ListRegionsRequest": { + "ListRegionTargetTcpProxiesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -55095,6 +57402,13 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "returnPartialSuccess": { "type": "bool", "id": 517198390, @@ -55104,7 +57418,7 @@ } } }, - "ListReservationBlocksRequest": { + "ListRegionUrlMapsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -55168,9 +57482,9 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "reservation": { + "region": { "type": "string", - "id": 47530956, + "id": 138946292, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -55181,17 +57495,90 @@ "options": { "proto3_optional": true } + } + } + }, + "ListRegionZonesRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] }, - "zone": { + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + } + }, + "fields": { + "filter": { "type": "string", - "id": 3744684, + "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 + } } } }, - "ListReservationSlotsRequest": { + "ListRegionsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -55248,13 +57635,79 @@ "proto3_optional": true } }, - "parentName": { + "project": { "type": "string", - "id": 478151936, + "id": 227560217, "options": { "(google.api.field_behavior)": "REQUIRED" } }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + } + } + }, + "ListReservationBlocksRequest": { + "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, @@ -55262,6 +57715,13 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "reservation": { + "type": "string", + "id": 47530956, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "returnPartialSuccess": { "type": "bool", "id": 517198390, @@ -55278,7 +57738,7 @@ } } }, - "ListReservationSubBlocksRequest": { + "ListReservationSlotsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -55365,7 +57825,7 @@ } } }, - "ListReservationsRequest": { + "ListReservationSubBlocksRequest": { "oneofs": { "_filter": { "oneof": [ @@ -55422,6 +57882,13 @@ "proto3_optional": true } }, + "parentName": { + "type": "string", + "id": 478151936, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "project": { "type": "string", "id": 227560217, @@ -55445,7 +57912,7 @@ } } }, - "ListResourcePoliciesRequest": { + "ListReservationsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -55509,23 +57976,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" + } } } }, - "ListRoutePoliciesRoutersRequest": { + "ListResourcePoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -55602,17 +58069,10 @@ "options": { "proto3_optional": true } - }, - "router": { - "type": "string", - "id": 148608841, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "ListRoutersRequest": { + "ListRoutePoliciesRoutersRequest": { "oneofs": { "_filter": { "oneof": [ @@ -55689,10 +58149,17 @@ "options": { "proto3_optional": true } + }, + "router": { + "type": "string", + "id": 148608841, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "ListRoutesRequest": { + "ListRoutersRequest": { "oneofs": { "_filter": { "oneof": [ @@ -55756,6 +58223,13 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "returnPartialSuccess": { "type": "bool", "id": 517198390, @@ -55765,7 +58239,7 @@ } } }, - "ListSecurityPoliciesRequest": { + "ListRoutesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -55838,7 +58312,7 @@ } } }, - "ListServiceAttachmentsRequest": { + "ListSecurityPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -55902,13 +58376,6 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "returnPartialSuccess": { "type": "bool", "id": 517198390, @@ -55918,7 +58385,7 @@ } } }, - "ListSnapshotsRequest": { + "ListServiceAttachmentsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -55982,6 +58449,13 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "returnPartialSuccess": { "type": "bool", "id": 517198390, @@ -55991,7 +58465,7 @@ } } }, - "ListSslCertificatesRequest": { + "ListSnapshotsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -56064,7 +58538,7 @@ } } }, - "ListSslPoliciesRequest": { + "ListSslCertificatesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -56137,7 +58611,7 @@ } } }, - "ListStoragePoolTypesRequest": { + "ListSslPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -56207,17 +58681,10 @@ "options": { "proto3_optional": true } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "ListStoragePoolsRequest": { + "ListStoragePoolTypesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -56297,7 +58764,7 @@ } } }, - "ListSubnetworksRequest": { + "ListStoragePoolsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -56323,11 +58790,6 @@ "oneof": [ "returnPartialSuccess" ] - }, - "_views": { - "oneof": [ - "views" - ] } }, "fields": { @@ -56366,13 +58828,6 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "returnPartialSuccess": { "type": "bool", "id": 517198390, @@ -56380,25 +58835,16 @@ "proto3_optional": true } }, - "views": { + "zone": { "type": "string", - "id": 112204398, + "id": 3744684, "options": { - "proto3_optional": true - } - } - }, - "nested": { - "Views": { - "values": { - "UNDEFINED_VIEWS": 0, - "DEFAULT": 115302945, - "WITH_UTILIZATION": 504090633 + "(google.api.field_behavior)": "REQUIRED" } } } }, - "ListTargetGrpcProxiesRequest": { + "ListSubnetworksRequest": { "oneofs": { "_filter": { "oneof": [ @@ -56424,6 +58870,11 @@ "oneof": [ "returnPartialSuccess" ] + }, + "_views": { + "oneof": [ + "views" + ] } }, "fields": { @@ -56462,89 +58913,39 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "returnPartialSuccess": { - "type": "bool", - "id": 517198390, - "options": { - "proto3_optional": true - } - } - } - }, - "ListTargetHttpProxiesRequest": { - "oneofs": { - "_filter": { - "oneof": [ - "filter" - ] - }, - "_maxResults": { - "oneof": [ - "maxResults" - ] - }, - "_orderBy": { - "oneof": [ - "orderBy" - ] - }, - "_pageToken": { - "oneof": [ - "pageToken" - ] - }, - "_returnPartialSuccess": { - "oneof": [ - "returnPartialSuccess" - ] - } - }, - "fields": { - "filter": { + "region": { "type": "string", - "id": 336120696, - "options": { - "proto3_optional": true - } - }, - "maxResults": { - "type": "uint32", - "id": 54715419, + "id": 138946292, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "REQUIRED" } }, - "orderBy": { - "type": "string", - "id": 160562920, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, "options": { "proto3_optional": true } }, - "pageToken": { + "views": { "type": "string", - "id": 19994697, + "id": 112204398, "options": { "proto3_optional": true } - }, - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "returnPartialSuccess": { - "type": "bool", - "id": 517198390, - "options": { - "proto3_optional": true + } + }, + "nested": { + "Views": { + "values": { + "UNDEFINED_VIEWS": 0, + "DEFAULT": 115302945, + "WITH_UTILIZATION": 504090633 } } } }, - "ListTargetHttpsProxiesRequest": { + "ListTargetGrpcProxiesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -56617,7 +59018,7 @@ } } }, - "ListTargetInstancesRequest": { + "ListTargetHttpProxiesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -56687,17 +59088,10 @@ "options": { "proto3_optional": true } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "ListTargetPoolsRequest": { + "ListTargetHttpsProxiesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -56761,13 +59155,6 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "returnPartialSuccess": { "type": "bool", "id": 517198390, @@ -56777,7 +59164,7 @@ } } }, - "ListTargetSslProxiesRequest": { + "ListTargetInstancesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -56847,83 +59234,17 @@ "options": { "proto3_optional": true } - } - } - }, - "ListTargetTcpProxiesRequest": { - "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": { + "zone": { "type": "string", - "id": 227560217, + "id": 3744684, "options": { "(google.api.field_behavior)": "REQUIRED" } - }, - "returnPartialSuccess": { - "type": "bool", - "id": 517198390, - "options": { - "proto3_optional": true - } } } }, - "ListTargetVpnGatewaysRequest": { + "ListTargetPoolsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -57003,7 +59324,7 @@ } } }, - "ListUrlMapsRequest": { + "ListTargetSslProxiesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -57076,7 +59397,7 @@ } } }, - "ListUsableBackendServicesRequest": { + "ListTargetTcpProxiesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -57149,7 +59470,7 @@ } } }, - "ListUsableRegionBackendServicesRequest": { + "ListTargetVpnGatewaysRequest": { "oneofs": { "_filter": { "oneof": [ @@ -57229,7 +59550,7 @@ } } }, - "ListUsableSubnetworksRequest": { + "ListUrlMapsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -57255,11 +59576,390 @@ "oneof": [ "returnPartialSuccess" ] - }, - "_serviceProject": { - "oneof": [ - "serviceProject" - ] + } + }, + "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 + } + } + } + }, + "ListUsableBackendBucketsRequest": { + "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 + } + } + } + }, + "ListUsableBackendServicesRequest": { + "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 + } + } + } + }, + "ListUsableRegionBackendBucketsRequest": { + "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 + } + } + } + }, + "ListUsableRegionBackendServicesRequest": { + "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 + } + } + } + }, + "ListUsableSubnetworksRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + }, + "_serviceProject": { + "oneof": [ + "serviceProject" + ] } }, "fields": { @@ -57714,6 +60414,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": { @@ -59900,6 +62680,11 @@ "projectIdOrNum" ] }, + "_serviceClassId": { + "oneof": [ + "serviceClassId" + ] + }, "_status": { "oneof": [ "status" @@ -59943,6 +62728,13 @@ "type": "string", "id": 117184788 }, + "serviceClassId": { + "type": "string", + "id": 422763404, + "options": { + "proto3_optional": true + } + }, "status": { "type": "string", "id": 181260274, @@ -61261,6 +64053,11 @@ "queueCount" ] }, + "_serviceClassId": { + "oneof": [ + "serviceClassId" + ] + }, "_stackType": { "oneof": [ "stackType" @@ -61391,6 +64188,13 @@ "proto3_optional": true } }, + "serviceClassId": { + "type": "string", + "id": 422763404, + "options": { + "proto3_optional": true + } + }, "stackType": { "type": "string", "id": 425908881, @@ -67858,6 +70662,54 @@ } } }, + "PatchRegionBackendBucketRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "backendBucket": { + "type": "string", + "id": 91714037, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "backendBucketResource": { + "type": "BackendBucket", + "id": 380757784, + "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 + } + } + } + }, "PatchRegionBackendServiceRequest": { "oneofs": { "_requestId": { @@ -68302,6 +71154,59 @@ } } }, + "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": { @@ -72650,6 +75555,24 @@ } } }, + "RegionDiskUpdateKmsKeyRequest": { + "oneofs": { + "_kmsKeyName": { + "oneof": [ + "kmsKeyName" + ] + } + }, + "fields": { + "kmsKeyName": { + "type": "string", + "id": 484373913, + "options": { + "proto3_optional": true + } + } + } + }, "RegionDisksAddResourcePoliciesRequest": { "fields": { "resourcePolicies": { @@ -72864,6 +75787,94 @@ } } }, + "RegionInstanceGroupManagerResizeRequestsListResponse": { + "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": { + "rule": "repeated", + "type": "InstanceGroupManagerResizeRequest", + "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 + } + } + } + }, "RegionInstanceGroupManagerUpdateInstanceConfigReq": { "fields": { "perInstanceConfigs": { @@ -73539,6 +76550,24 @@ } } }, + "RegionSnapshotUpdateKmsKeyRequest": { + "oneofs": { + "_kmsKeyName": { + "oneof": [ + "kmsKeyName" + ] + } + }, + "fields": { + "kmsKeyName": { + "type": "string", + "id": 484373913, + "options": { + "proto3_optional": true + } + } + } + }, "RegionTargetHttpsProxiesSetSslCertificatesRequest": { "fields": { "sslCertificates": { @@ -74547,6 +77576,11 @@ "commitment" ] }, + "_confidentialComputeType": { + "oneof": [ + "confidentialComputeType" + ] + }, "_creationTimestamp": { "oneof": [ "creationTimestamp" @@ -74680,6 +77714,13 @@ "proto3_optional": true } }, + "confidentialComputeType": { + "type": "string", + "id": 386447257, + "options": { + "proto3_optional": true + } + }, "creationTimestamp": { "type": "string", "id": 30525366, @@ -74846,6 +77887,13 @@ } }, "nested": { + "ConfidentialComputeType": { + "values": { + "UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE": 0, + "CONFIDENTIAL_COMPUTE_TYPE_TDX": 301241954, + "CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED": 42227601 + } + }, "DeploymentType": { "values": { "UNDEFINED_DEPLOYMENT_TYPE": 0, @@ -84799,6 +87847,38 @@ } } }, + "SetIamPolicyInstantSnapshotGroupRequest": { + "fields": { + "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" + } + }, + "zoneSetPolicyRequestResource": { + "type": "ZoneSetPolicyRequest", + "id": 382082107, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "SetIamPolicyInstantSnapshotRequest": { "fields": { "project": { @@ -85052,6 +88132,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": { @@ -85116,6 +88228,38 @@ } } }, + "SetIamPolicyRegionInstantSnapshotGroupRequest": { + "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" + } + } + } + }, "SetIamPolicyRegionInstantSnapshotRequest": { "fields": { "project": { @@ -85180,6 +88324,38 @@ } } }, + "SetIamPolicyRegionSnapshotRequest": { + "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" + } + } + } + }, "SetIamPolicyReservationBlockRequest": { "fields": { "parentResource": { @@ -85957,15 +89133,41 @@ } } }, - "SetLabelsMachineImageRequest": { + "SetLabelsMachineImageRequest": { + "fields": { + "globalSetLabelsRequestResource": { + "type": "GlobalSetLabelsRequest", + "id": 319917189, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "SetLabelsRegionDiskRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, "fields": { - "globalSetLabelsRequestResource": { - "type": "GlobalSetLabelsRequest", - "id": 319917189, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "project": { "type": "string", "id": 227560217, @@ -85974,6 +89176,28 @@ "(google.cloud.operation_request_field)": "project" } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, + "regionSetLabelsRequestResource": { + "type": "RegionSetLabelsRequest", + "id": 259357782, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, "resource": { "type": "string", "id": 195806222, @@ -85983,7 +89207,7 @@ } } }, - "SetLabelsRegionDiskRequest": { + "SetLabelsRegionInstantSnapshotRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -86031,7 +89255,7 @@ } } }, - "SetLabelsRegionInstantSnapshotRequest": { + "SetLabelsRegionSecurityPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -86079,7 +89303,7 @@ } } }, - "SetLabelsRegionSecurityPolicyRequest": { + "SetLabelsRegionSnapshotRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -88321,6 +91545,11 @@ "params" ] }, + "_region": { + "oneof": [ + "region" + ] + }, "_satisfiesPzi": { "oneof": [ "satisfiesPzi" @@ -88341,6 +91570,16 @@ "snapshotEncryptionKey" ] }, + "_snapshotGroupId": { + "oneof": [ + "snapshotGroupId" + ] + }, + "_snapshotGroupName": { + "oneof": [ + "snapshotGroupName" + ] + }, "_snapshotType": { "oneof": [ "snapshotType" @@ -88540,6 +91779,13 @@ "proto3_optional": true } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "proto3_optional": true + } + }, "satisfiesPzi": { "type": "bool", "id": 480964257, @@ -88568,6 +91814,20 @@ "proto3_optional": true } }, + "snapshotGroupId": { + "type": "string", + "id": 255004406, + "options": { + "proto3_optional": true + } + }, + "snapshotGroupName": { + "type": "string", + "id": 246247846, + "options": { + "proto3_optional": true + } + }, "snapshotType": { "type": "string", "id": 124349653, @@ -88700,6 +91960,41 @@ } } }, + "SnapshotGroupParameters": { + "oneofs": { + "_sourceSnapshotGroup": { + "oneof": [ + "sourceSnapshotGroup" + ] + }, + "_type": { + "oneof": [ + "type" + ] + } + }, + "fields": { + "replicaZones": { + "rule": "repeated", + "type": "string", + "id": 48438272 + }, + "sourceSnapshotGroup": { + "type": "string", + "id": 225130728, + "options": { + "proto3_optional": true + } + }, + "type": { + "type": "string", + "id": 3575610, + "options": { + "proto3_optional": true + } + } + } + }, "SnapshotList": { "oneofs": { "_id": { @@ -88782,6 +92077,11 @@ }, "SnapshotSettings": { "oneofs": { + "_accessLocation": { + "oneof": [ + "accessLocation" + ] + }, "_storageLocation": { "oneof": [ "storageLocation" @@ -88789,6 +92089,13 @@ } }, "fields": { + "accessLocation": { + "type": "SnapshotSettingsAccessLocation", + "id": 18410544, + "options": { + "proto3_optional": true + } + }, "storageLocation": { "type": "SnapshotSettingsStorageLocationSettings", "id": 460859641, @@ -88798,6 +92105,57 @@ } } }, + "SnapshotSettingsAccessLocation": { + "oneofs": { + "_policy": { + "oneof": [ + "policy" + ] + } + }, + "fields": { + "locations": { + "keyType": "string", + "type": "SnapshotSettingsAccessLocationAccessLocationPreference", + "id": 413423454 + }, + "policy": { + "type": "string", + "id": 91071794, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "Policy": { + "values": { + "UNDEFINED_POLICY": 0, + "ALL_REGIONS": 273143585, + "POLICY_UNSPECIFIED": 197974922, + "SPECIFIC_REGIONS": 454128082 + } + } + } + }, + "SnapshotSettingsAccessLocationAccessLocationPreference": { + "oneofs": { + "_region": { + "oneof": [ + "region" + ] + } + }, + "fields": { + "region": { + "type": "string", + "id": 138946292, + "options": { + "proto3_optional": true + } + } + } + }, "SnapshotSettingsStorageLocationSettings": { "oneofs": { "_policy": { @@ -88850,6 +92208,24 @@ } } }, + "SnapshotUpdateKmsKeyRequest": { + "oneofs": { + "_kmsKeyName": { + "oneof": [ + "kmsKeyName" + ] + } + }, + "fields": { + "kmsKeyName": { + "type": "string", + "id": 484373913, + "options": { + "proto3_optional": true + } + } + } + }, "SourceDiskEncryptionKey": { "oneofs": { "_diskEncryptionKey": { @@ -96270,6 +99646,38 @@ } } }, + "TestIamPermissionsInstantSnapshotGroupRequest": { + "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" + } + } + } + }, "TestIamPermissionsInstantSnapshotRequest": { "fields": { "project": { @@ -96644,6 +100052,38 @@ } } }, + "TestIamPermissionsRegionBackendBucketRequest": { + "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" + } + } + } + }, "TestIamPermissionsRegionBackendServiceRequest": { "fields": { "project": { @@ -96740,7 +100180,39 @@ } } }, - "TestIamPermissionsRegionHealthAggregationPolicyRequest": { + "TestIamPermissionsRegionHealthAggregationPolicyRequest": { + "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" + } + } + } + }, + "TestIamPermissionsRegionHealthCheckRequest": { "fields": { "project": { "type": "string", @@ -96772,7 +100244,7 @@ } } }, - "TestIamPermissionsRegionHealthCheckRequest": { + "TestIamPermissionsRegionHealthCheckServiceRequest": { "fields": { "project": { "type": "string", @@ -96804,7 +100276,7 @@ } } }, - "TestIamPermissionsRegionHealthCheckServiceRequest": { + "TestIamPermissionsRegionHealthSourceRequest": { "fields": { "project": { "type": "string", @@ -96836,7 +100308,7 @@ } } }, - "TestIamPermissionsRegionHealthSourceRequest": { + "TestIamPermissionsRegionInstanceGroupRequest": { "fields": { "project": { "type": "string", @@ -96868,7 +100340,7 @@ } } }, - "TestIamPermissionsRegionInstanceGroupRequest": { + "TestIamPermissionsRegionInstantSnapshotGroupRequest": { "fields": { "project": { "type": "string", @@ -96996,6 +100468,38 @@ } } }, + "TestIamPermissionsRegionSnapshotRequest": { + "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" + } + } + } + }, "TestIamPermissionsReservationBlockRequest": { "fields": { "parentResource": { @@ -98183,6 +101687,190 @@ } } }, + "UpdateKmsKeyDiskRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "disk": { + "type": "string", + "id": 3083677, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "diskUpdateKmsKeyRequestResource": { + "type": "DiskUpdateKmsKeyRequest", + "id": 178025952, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "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 + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "zone" + } + } + } + }, + "UpdateKmsKeyRegionDiskRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "disk": { + "type": "string", + "id": 3083677, + "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" + } + }, + "regionDiskUpdateKmsKeyRequestResource": { + "type": "RegionDiskUpdateKmsKeyRequest", + "id": 10015819, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + } + } + }, + "UpdateKmsKeyRegionSnapshotRequest": { + "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" + } + }, + "regionSnapshotUpdateKmsKeyRequestResource": { + "type": "RegionSnapshotUpdateKmsKeyRequest", + "id": 279384818, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "snapshot": { + "type": "string", + "id": 284874180, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "UpdateKmsKeySnapshotRequest": { + "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 + } + }, + "snapshot": { + "type": "string", + "id": 284874180, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "snapshotUpdateKmsKeyRequestResource": { + "type": "SnapshotUpdateKmsKeyRequest", + "id": 103145991, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "UpdateLicenseRequest": { "oneofs": { "_requestId": { @@ -99178,6 +102866,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": { @@ -100358,6 +104094,321 @@ } } }, + "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 + } + } + } + }, + "VmExtensionPolicyExtensionPolicy": { + "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 + } + } + } + }, + "VmExtensionPolicyInstanceSelector": { + "oneofs": { + "_labelSelector": { + "oneof": [ + "labelSelector" + ] + } + }, + "fields": { + "labelSelector": { + "type": "VmExtensionPolicyLabelSelector", + "id": 349780170, + "options": { + "proto3_optional": true + } + } + } + }, + "VmExtensionPolicyLabelSelector": { + "fields": { + "inclusionLabels": { + "keyType": "string", + "type": "string", + "id": 501312642 + } + } + }, + "VmExtensionPolicyList": { + "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": { + "rule": "repeated", + "type": "VmExtensionPolicy", + "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 + } + } + } + }, "VpnGateway": { "oneofs": { "_creationTimestamp": { @@ -103228,6 +107279,24 @@ } ] }, + "AggregatedList": { + "requestType": "AggregatedListBackendBucketsRequest", + "responseType": "BackendBucketAggregatedList", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/aggregated/backendBuckets", + "(google.api.method_signature)": "project" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/aggregated/backendBuckets" + } + }, + { + "(google.api.method_signature)": "project" + } + ] + }, "Delete": { "requestType": "DeleteBackendBucketRequest", "responseType": "Operation", @@ -103350,6 +107419,24 @@ } ] }, + "ListUsable": { + "requestType": "ListUsableBackendBucketsRequest", + "responseType": "BackendBucketListUsable", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/global/backendBuckets/listUsable", + "(google.api.method_signature)": "project" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/global/backendBuckets/listUsable" + } + }, + { + "(google.api.method_signature)": "project" + } + ] + }, "Patch": { "requestType": "PatchBackendBucketRequest", "responseType": "Operation", @@ -104429,6 +108516,30 @@ "(google.cloud.operation_service)": "ZoneOperations" } ] + }, + "UpdateKmsKey": { + "requestType": "UpdateKmsKeyDiskRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "disk_update_kms_key_request_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/zones/{zone}/disks/{disk}/updateKmsKey", + "(google.api.method_signature)": "project,zone,disk,disk_update_kms_key_request_resource", + "(google.cloud.operation_service)": "ZoneOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "disk_update_kms_key_request_resource", + "post": "/compute/v1/projects/{project}/zones/{zone}/disks/{disk}/updateKmsKey" + } + }, + { + "(google.api.method_signature)": "project,zone,disk,disk_update_kms_key_request_resource" + }, + { + "(google.cloud.operation_service)": "ZoneOperations" + } + ] } } }, @@ -108866,6 +112977,154 @@ } } }, + "InstantSnapshotGroups": { + "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": "DeleteInstantSnapshotGroupRequest", + "responseType": "Operation", + "options": { + "(google.api.http).delete": "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups/{instant_snapshot_group}", + "(google.api.method_signature)": "project,zone,instant_snapshot_group", + "(google.cloud.operation_service)": "ZoneOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups/{instant_snapshot_group}" + } + }, + { + "(google.api.method_signature)": "project,zone,instant_snapshot_group" + }, + { + "(google.cloud.operation_service)": "ZoneOperations" + } + ] + }, + "Get": { + "requestType": "GetInstantSnapshotGroupRequest", + "responseType": "InstantSnapshotGroup", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups/{instant_snapshot_group}", + "(google.api.method_signature)": "project,zone,instant_snapshot_group" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups/{instant_snapshot_group}" + } + }, + { + "(google.api.method_signature)": "project,zone,instant_snapshot_group" + } + ] + }, + "GetIamPolicy": { + "requestType": "GetIamPolicyInstantSnapshotGroupRequest", + "responseType": "Policy", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/getIamPolicy", + "(google.api.method_signature)": "project,zone,resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/getIamPolicy" + } + }, + { + "(google.api.method_signature)": "project,zone,resource" + } + ] + }, + "Insert": { + "requestType": "InsertInstantSnapshotGroupRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "instant_snapshot_group_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups", + "(google.api.method_signature)": "project,zone,instant_snapshot_group_resource", + "(google.cloud.operation_service)": "ZoneOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "instant_snapshot_group_resource", + "post": "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups" + } + }, + { + "(google.api.method_signature)": "project,zone,instant_snapshot_group_resource" + }, + { + "(google.cloud.operation_service)": "ZoneOperations" + } + ] + }, + "List": { + "requestType": "ListInstantSnapshotGroupsRequest", + "responseType": "ListInstantSnapshotGroups", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups", + "(google.api.method_signature)": "project,zone" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups" + } + }, + { + "(google.api.method_signature)": "project,zone" + } + ] + }, + "SetIamPolicy": { + "requestType": "SetIamPolicyInstantSnapshotGroupRequest", + "responseType": "Policy", + "options": { + "(google.api.http).body": "zone_set_policy_request_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/setIamPolicy", + "(google.api.method_signature)": "project,zone,resource,zone_set_policy_request_resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "zone_set_policy_request_resource", + "post": "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/setIamPolicy" + } + }, + { + "(google.api.method_signature)": "project,zone,resource,zone_set_policy_request_resource" + } + ] + }, + "TestIamPermissions": { + "requestType": "TestIamPermissionsInstantSnapshotGroupRequest", + "responseType": "TestPermissionsResponse", + "options": { + "(google.api.http).body": "test_permissions_request_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/testIamPermissions", + "(google.api.method_signature)": "project,zone,resource,test_permissions_request_resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "test_permissions_request_resource", + "post": "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/testIamPermissions" + } + }, + { + "(google.api.method_signature)": "project,zone,resource,test_permissions_request_resource" + } + ] + } + } + }, "InstantSnapshots": { "options": { "(google.api.default_host)": "compute.googleapis.com", @@ -113526,6 +117785,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/v1/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/v1/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/v1/projects/{project}/regions/{region}/backendBuckets/{backend_bucket}", + "(google.api.method_signature)": "project,region,backend_bucket" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/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/v1/projects/{project}/regions/{region}/backendBuckets/{resource}/getIamPolicy", + "(google.api.method_signature)": "project,region,resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/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/v1/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/v1/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/v1/projects/{project}/regions/{region}/backendBuckets", + "(google.api.method_signature)": "project,region" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/regions/{region}/backendBuckets" + } + }, + { + "(google.api.method_signature)": "project,region" + } + ] + }, + "ListUsable": { + "requestType": "ListUsableRegionBackendBucketsRequest", + "responseType": "BackendBucketListUsable", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/regions/{region}/backendBuckets/listUsable", + "(google.api.method_signature)": "project,region" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/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/v1/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/v1/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/v1/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/v1/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/v1/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/v1/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", @@ -113958,6 +118407,24 @@ } ] }, + "GetHealth": { + "requestType": "GetHealthRegionCompositeHealthCheckRequest", + "responseType": "CompositeHealthCheckHealth", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/regions/{region}/compositeHealthChecks/{composite_health_check}/getHealth", + "(google.api.method_signature)": "project,region,composite_health_check" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/regions/{region}/compositeHealthChecks/{composite_health_check}/getHealth" + } + }, + { + "(google.api.method_signature)": "project,region,composite_health_check" + } + ] + }, "Insert": { "requestType": "InsertRegionCompositeHealthCheckRequest", "responseType": "Operation", @@ -114473,6 +118940,30 @@ "(google.cloud.operation_service)": "RegionOperations" } ] + }, + "UpdateKmsKey": { + "requestType": "UpdateKmsKeyRegionDiskRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "region_disk_update_kms_key_request_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/regions/{region}/disks/{disk}/updateKmsKey", + "(google.api.method_signature)": "project,region,disk,region_disk_update_kms_key_request_resource", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "region_disk_update_kms_key_request_resource", + "post": "/compute/v1/projects/{project}/regions/{region}/disks/{disk}/updateKmsKey" + } + }, + { + "(google.api.method_signature)": "project,region,disk,region_disk_update_kms_key_request_resource" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] } } }, @@ -115002,6 +119493,24 @@ } ] }, + "GetHealth": { + "requestType": "GetHealthRegionHealthSourceRequest", + "responseType": "HealthSourceHealth", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/regions/{region}/healthSources/{health_source}/getHealth", + "(google.api.method_signature)": "project,region,health_source" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/regions/{region}/healthSources/{health_source}/getHealth" + } + }, + { + "(google.api.method_signature)": "project,region,health_source" + } + ] + }, "Insert": { "requestType": "InsertRegionHealthSourceRequest", "responseType": "Operation", @@ -115090,6 +119599,118 @@ } } }, + "RegionInstanceGroupManagerResizeRequests": { + "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": { + "Cancel": { + "requestType": "CancelRegionInstanceGroupManagerResizeRequestRequest", + "responseType": "Operation", + "options": { + "(google.api.http).post": "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/resizeRequests/{resize_request}/cancel", + "(google.api.method_signature)": "project,region,instance_group_manager,resize_request", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/resizeRequests/{resize_request}/cancel" + } + }, + { + "(google.api.method_signature)": "project,region,instance_group_manager,resize_request" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "Delete": { + "requestType": "DeleteRegionInstanceGroupManagerResizeRequestRequest", + "responseType": "Operation", + "options": { + "(google.api.http).delete": "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/resizeRequests/{resize_request}", + "(google.api.method_signature)": "project,region,instance_group_manager,resize_request", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/resizeRequests/{resize_request}" + } + }, + { + "(google.api.method_signature)": "project,region,instance_group_manager,resize_request" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "Get": { + "requestType": "GetRegionInstanceGroupManagerResizeRequestRequest", + "responseType": "InstanceGroupManagerResizeRequest", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/resizeRequests/{resize_request}", + "(google.api.method_signature)": "project,region,instance_group_manager,resize_request" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/resizeRequests/{resize_request}" + } + }, + { + "(google.api.method_signature)": "project,region,instance_group_manager,resize_request" + } + ] + }, + "Insert": { + "requestType": "InsertRegionInstanceGroupManagerResizeRequestRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "instance_group_manager_resize_request_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/resizeRequests", + "(google.api.method_signature)": "project,region,instance_group_manager,instance_group_manager_resize_request_resource", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "instance_group_manager_resize_request_resource", + "post": "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/resizeRequests" + } + }, + { + "(google.api.method_signature)": "project,region,instance_group_manager,instance_group_manager_resize_request_resource" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "List": { + "requestType": "ListRegionInstanceGroupManagerResizeRequestsRequest", + "responseType": "RegionInstanceGroupManagerResizeRequestsListResponse", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/resizeRequests", + "(google.api.method_signature)": "project,region,instance_group_manager" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/resizeRequests" + } + }, + { + "(google.api.method_signature)": "project,region,instance_group_manager" + } + ] + } + } + }, "RegionInstanceGroupManagers": { "options": { "(google.api.default_host)": "compute.googleapis.com", @@ -115846,6 +120467,154 @@ } } }, + "RegionInstantSnapshotGroups": { + "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": "DeleteRegionInstantSnapshotGroupRequest", + "responseType": "Operation", + "options": { + "(google.api.http).delete": "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups/{instant_snapshot_group}", + "(google.api.method_signature)": "project,region,instant_snapshot_group", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups/{instant_snapshot_group}" + } + }, + { + "(google.api.method_signature)": "project,region,instant_snapshot_group" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "Get": { + "requestType": "GetRegionInstantSnapshotGroupRequest", + "responseType": "InstantSnapshotGroup", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups/{instant_snapshot_group}", + "(google.api.method_signature)": "project,region,instant_snapshot_group" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups/{instant_snapshot_group}" + } + }, + { + "(google.api.method_signature)": "project,region,instant_snapshot_group" + } + ] + }, + "GetIamPolicy": { + "requestType": "GetIamPolicyRegionInstantSnapshotGroupRequest", + "responseType": "Policy", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/getIamPolicy", + "(google.api.method_signature)": "project,region,resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/getIamPolicy" + } + }, + { + "(google.api.method_signature)": "project,region,resource" + } + ] + }, + "Insert": { + "requestType": "InsertRegionInstantSnapshotGroupRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "instant_snapshot_group_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups", + "(google.api.method_signature)": "project,region,instant_snapshot_group_resource", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "instant_snapshot_group_resource", + "post": "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups" + } + }, + { + "(google.api.method_signature)": "project,region,instant_snapshot_group_resource" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "List": { + "requestType": "ListRegionInstantSnapshotGroupsRequest", + "responseType": "ListInstantSnapshotGroups", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups", + "(google.api.method_signature)": "project,region" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups" + } + }, + { + "(google.api.method_signature)": "project,region" + } + ] + }, + "SetIamPolicy": { + "requestType": "SetIamPolicyRegionInstantSnapshotGroupRequest", + "responseType": "Policy", + "options": { + "(google.api.http).body": "region_set_policy_request_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups/{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/v1/projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/setIamPolicy" + } + }, + { + "(google.api.method_signature)": "project,region,resource,region_set_policy_request_resource" + } + ] + }, + "TestIamPermissions": { + "requestType": "TestIamPermissionsRegionInstantSnapshotGroupRequest", + "responseType": "TestPermissionsResponse", + "options": { + "(google.api.http).body": "test_permissions_request_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/testIamPermissions", + "(google.api.method_signature)": "project,region,resource,test_permissions_request_resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "test_permissions_request_resource", + "post": "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/testIamPermissions" + } + }, + { + "(google.api.method_signature)": "project,region,resource,test_permissions_request_resource" + } + ] + } + } + }, "RegionInstantSnapshots": { "options": { "(google.api.default_host)": "compute.googleapis.com", @@ -116976,6 +121745,252 @@ } } }, + "RegionSnapshotSettings": { + "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": { + "Get": { + "requestType": "GetRegionSnapshotSettingRequest", + "responseType": "SnapshotSettings", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/regions/{region}/snapshotSettings", + "(google.api.method_signature)": "project,region" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/regions/{region}/snapshotSettings" + } + }, + { + "(google.api.method_signature)": "project,region" + } + ] + }, + "Patch": { + "requestType": "PatchRegionSnapshotSettingRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "snapshot_settings_resource", + "(google.api.http).patch": "/compute/v1/projects/{project}/regions/{region}/snapshotSettings", + "(google.api.method_signature)": "project,region,snapshot_settings_resource", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "snapshot_settings_resource", + "patch": "/compute/v1/projects/{project}/regions/{region}/snapshotSettings" + } + }, + { + "(google.api.method_signature)": "project,region,snapshot_settings_resource" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + } + } + }, + "RegionSnapshots": { + "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": "DeleteRegionSnapshotRequest", + "responseType": "Operation", + "options": { + "(google.api.http).delete": "/compute/v1/projects/{project}/regions/{region}/snapshots/{snapshot}", + "(google.api.method_signature)": "project,region,snapshot", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/compute/v1/projects/{project}/regions/{region}/snapshots/{snapshot}" + } + }, + { + "(google.api.method_signature)": "project,region,snapshot" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "Get": { + "requestType": "GetRegionSnapshotRequest", + "responseType": "Snapshot", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/regions/{region}/snapshots/{snapshot}", + "(google.api.method_signature)": "project,region,snapshot" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/regions/{region}/snapshots/{snapshot}" + } + }, + { + "(google.api.method_signature)": "project,region,snapshot" + } + ] + }, + "GetIamPolicy": { + "requestType": "GetIamPolicyRegionSnapshotRequest", + "responseType": "Policy", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/regions/{region}/snapshots/{resource}/getIamPolicy", + "(google.api.method_signature)": "project,region,resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/regions/{region}/snapshots/{resource}/getIamPolicy" + } + }, + { + "(google.api.method_signature)": "project,region,resource" + } + ] + }, + "Insert": { + "requestType": "InsertRegionSnapshotRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "snapshot_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/regions/{region}/snapshots", + "(google.api.method_signature)": "project,region,snapshot_resource", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "snapshot_resource", + "post": "/compute/v1/projects/{project}/regions/{region}/snapshots" + } + }, + { + "(google.api.method_signature)": "project,region,snapshot_resource" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "List": { + "requestType": "ListRegionSnapshotsRequest", + "responseType": "SnapshotList", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/regions/{region}/snapshots", + "(google.api.method_signature)": "project,region" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/regions/{region}/snapshots" + } + }, + { + "(google.api.method_signature)": "project,region" + } + ] + }, + "SetIamPolicy": { + "requestType": "SetIamPolicyRegionSnapshotRequest", + "responseType": "Policy", + "options": { + "(google.api.http).body": "region_set_policy_request_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/regions/{region}/snapshots/{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/v1/projects/{project}/regions/{region}/snapshots/{resource}/setIamPolicy" + } + }, + { + "(google.api.method_signature)": "project,region,resource,region_set_policy_request_resource" + } + ] + }, + "SetLabels": { + "requestType": "SetLabelsRegionSnapshotRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "region_set_labels_request_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/regions/{region}/snapshots/{resource}/setLabels", + "(google.api.method_signature)": "project,region,resource,region_set_labels_request_resource", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "region_set_labels_request_resource", + "post": "/compute/v1/projects/{project}/regions/{region}/snapshots/{resource}/setLabels" + } + }, + { + "(google.api.method_signature)": "project,region,resource,region_set_labels_request_resource" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "TestIamPermissions": { + "requestType": "TestIamPermissionsRegionSnapshotRequest", + "responseType": "TestPermissionsResponse", + "options": { + "(google.api.http).body": "test_permissions_request_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/regions/{region}/snapshots/{resource}/testIamPermissions", + "(google.api.method_signature)": "project,region,resource,test_permissions_request_resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "test_permissions_request_resource", + "post": "/compute/v1/projects/{project}/regions/{region}/snapshots/{resource}/testIamPermissions" + } + }, + { + "(google.api.method_signature)": "project,region,resource,test_permissions_request_resource" + } + ] + }, + "UpdateKmsKey": { + "requestType": "UpdateKmsKeyRegionSnapshotRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "region_snapshot_update_kms_key_request_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/regions/{region}/snapshots/{snapshot}/updateKmsKey", + "(google.api.method_signature)": "project,region,snapshot,region_snapshot_update_kms_key_request_resource", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "region_snapshot_update_kms_key_request_resource", + "post": "/compute/v1/projects/{project}/regions/{region}/snapshots/{snapshot}/updateKmsKey" + } + }, + { + "(google.api.method_signature)": "project,region,snapshot,region_snapshot_update_kms_key_request_resource" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + } + } + }, "RegionSslCertificates": { "options": { "(google.api.default_host)": "compute.googleapis.com", @@ -119745,6 +124760,30 @@ "(google.api.method_signature)": "project,resource,test_permissions_request_resource" } ] + }, + "UpdateKmsKey": { + "requestType": "UpdateKmsKeySnapshotRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "snapshot_update_kms_key_request_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/global/snapshots/{snapshot}/updateKmsKey", + "(google.api.method_signature)": "project,snapshot,snapshot_update_kms_key_request_resource", + "(google.cloud.operation_service)": "GlobalOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "snapshot_update_kms_key_request_resource", + "post": "/compute/v1/projects/{project}/global/snapshots/{snapshot}/updateKmsKey" + } + }, + { + "(google.api.method_signature)": "project,snapshot,snapshot_update_kms_key_request_resource" + }, + { + "(google.cloud.operation_service)": "GlobalOperations" + } + ] } } }, @@ -122756,6 +127795,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/v1/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/v1/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/v1/projects/{project}/zones/{zone}/vmExtensionPolicies/{vm_extension_policy}", + "(google.api.method_signature)": "project,zone,vm_extension_policy" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/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/v1/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/v1/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/v1/projects/{project}/zones/{zone}/vmExtensionPolicies", + "(google.api.method_signature)": "project,zone" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/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/v1/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/v1/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", @@ -133086,6 +138239,11 @@ "preference" ] }, + "_service": { + "oneof": [ + "service" + ] + }, "_trafficDuration": { "oneof": [ "trafficDuration" @@ -133217,6 +138375,13 @@ "proto3_optional": true } }, + "service": { + "type": "string", + "id": 373540533, + "options": { + "proto3_optional": true + } + }, "trafficDuration": { "type": "string", "id": 11618710, @@ -137850,6 +143015,11 @@ "name" ] }, + "_params": { + "oneof": [ + "params" + ] + }, "_plan": { "oneof": [ "plan" @@ -137977,6 +143147,13 @@ "proto3_optional": true } }, + "params": { + "type": "CommitmentParams", + "id": 78313862, + "options": { + "proto3_optional": true + } + }, "plan": { "type": "string", "id": 3443497, @@ -138186,11 +143363,82 @@ "proto3_optional": true } }, - "unreachables": { - "rule": "repeated", - "type": "string", - "id": 243372063 - }, + "unreachables": { + "rule": "repeated", + "type": "string", + "id": 243372063 + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, + "CommitmentList": { + "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": "Commitment", + "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, @@ -138200,74 +143448,12 @@ } } }, - "CommitmentList": { - "oneofs": { - "_id": { - "oneof": [ - "id" - ] - }, - "_kind": { - "oneof": [ - "kind" - ] - }, - "_nextPageToken": { - "oneof": [ - "nextPageToken" - ] - }, - "_selfLink": { - "oneof": [ - "selfLink" - ] - }, - "_warning": { - "oneof": [ - "warning" - ] - } - }, + "CommitmentParams": { "fields": { - "id": { - "type": "string", - "id": 3355, - "options": { - "proto3_optional": true - } - }, - "items": { - "rule": "repeated", - "type": "Commitment", - "id": 100526016 - }, - "kind": { - "type": "string", - "id": 3292052, - "options": { - "proto3_optional": true - } - }, - "nextPageToken": { - "type": "string", - "id": 79797525, - "options": { - "proto3_optional": true - } - }, - "selfLink": { + "resourceManagerTags": { + "keyType": "string", "type": "string", - "id": 456214797, - "options": { - "proto3_optional": true - } - }, - "warning": { - "type": "Warning", - "id": 50704284, - "options": { - "proto3_optional": true - } + "id": 377671164 } } }, @@ -138519,6 +143705,51 @@ } } }, + "CompositeHealthCheckHealth": { + "oneofs": { + "_healthState": { + "oneof": [ + "healthState" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + } + }, + "fields": { + "healthSources": { + "rule": "repeated", + "type": "CompositeHealthChecksGetHealthResponseHealthSourceHealth", + "id": 397879509 + }, + "healthState": { + "type": "string", + "id": 324007150, + "options": { + "proto3_optional": true + } + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "HealthState": { + "values": { + "UNDEFINED_HEALTH_STATE": 0, + "HEALTHY": 439801213, + "UNHEALTHY": 462118084, + "UNKNOWN": 433141802 + } + } + } + }, "CompositeHealthCheckList": { "oneofs": { "_id": { @@ -138590,6 +143821,46 @@ } } }, + "CompositeHealthChecksGetHealthResponseHealthSourceHealth": { + "oneofs": { + "_healthState": { + "oneof": [ + "healthState" + ] + }, + "_source": { + "oneof": [ + "source" + ] + } + }, + "fields": { + "healthState": { + "type": "string", + "id": 324007150, + "options": { + "proto3_optional": true + } + }, + "source": { + "type": "string", + "id": 177235995, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "HealthState": { + "values": { + "UNDEFINED_HEALTH_STATE": 0, + "HEALTHY": 439801213, + "UNHEALTHY": 462118084, + "UNKNOWN": 433141802 + } + } + } + }, "CompositeHealthChecksScopedList": { "oneofs": { "_warning": { @@ -145615,6 +150886,24 @@ } } }, + "DiskUpdateKmsKeyRequest": { + "oneofs": { + "_kmsKeyName": { + "oneof": [ + "kmsKeyName" + ] + } + }, + "fields": { + "kmsKeyName": { + "type": "string", + "id": 484373913, + "options": { + "proto3_optional": true + } + } + } + }, "DisksAddResourcePoliciesRequest": { "fields": { "resourcePolicies": { @@ -148620,6 +153909,11 @@ "commitmentInfo" ] }, + "_confidentialComputeType": { + "oneof": [ + "confidentialComputeType" + ] + }, "_creationTimestamp": { "oneof": [ "creationTimestamp" @@ -148660,6 +153954,11 @@ "namePrefix" ] }, + "_params": { + "oneof": [ + "params" + ] + }, "_planningStatus": { "oneof": [ "planningStatus" @@ -148769,6 +154068,13 @@ "proto3_optional": true } }, + "confidentialComputeType": { + "type": "string", + "id": 386447257, + "options": { + "proto3_optional": true + } + }, "creationTimestamp": { "type": "string", "id": 30525366, @@ -148825,6 +154131,13 @@ "proto3_optional": true } }, + "params": { + "type": "FutureReservationParams", + "id": 78313862, + "options": { + "proto3_optional": true + } + }, "planningStatus": { "type": "string", "id": 19714836, @@ -148918,6 +154231,13 @@ } }, "nested": { + "ConfidentialComputeType": { + "values": { + "UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE": 0, + "CONFIDENTIAL_COMPUTE_TYPE_TDX": 301241954, + "CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED": 42227601 + } + }, "DeploymentType": { "values": { "UNDEFINED_DEPLOYMENT_TYPE": 0, @@ -149019,6 +154339,15 @@ } } }, + "FutureReservationParams": { + "fields": { + "resourceManagerTags": { + "keyType": "string", + "type": "string", + "id": 377671164 + } + } + }, "FutureReservationSpecificSKUProperties": { "oneofs": { "_instanceProperties": { @@ -150991,6 +156320,56 @@ } } }, + "GetHealthRegionCompositeHealthCheckRequest": { + "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" + } + } + } + }, + "GetHealthRegionHealthSourceRequest": { + "fields": { + "healthSource": { + "type": "string", + "id": 376521566, + "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" + } + } + } + }, "GetHealthTargetPoolRequest": { "fields": { "instanceReferenceResource": { @@ -158377,6 +163756,51 @@ } } }, + "HealthSourceHealth": { + "oneofs": { + "_healthState": { + "oneof": [ + "healthState" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + } + }, + "fields": { + "healthState": { + "type": "string", + "id": 324007150, + "options": { + "proto3_optional": true + } + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "sources": { + "rule": "repeated", + "type": "HealthSourcesGetHealthResponseSourceInfo", + "id": 125606840 + } + }, + "nested": { + "HealthState": { + "values": { + "UNDEFINED_HEALTH_STATE": 0, + "HEALTHY": 439801213, + "UNHEALTHY": 462118084, + "UNKNOWN": 433141802 + } + } + } + }, "HealthSourceList": { "oneofs": { "_id": { @@ -158448,6 +163872,83 @@ } } }, + "HealthSourcesGetHealthResponseSourceInfo": { + "oneofs": { + "_forwardingRule": { + "oneof": [ + "forwardingRule" + ] + }, + "_source": { + "oneof": [ + "source" + ] + } + }, + "fields": { + "backends": { + "rule": "repeated", + "type": "HealthSourcesGetHealthResponseSourceInfoBackendInfo", + "id": 510839903 + }, + "forwardingRule": { + "type": "string", + "id": 269964030, + "options": { + "proto3_optional": true + } + }, + "source": { + "type": "string", + "id": 177235995, + "options": { + "proto3_optional": true + } + } + } + }, + "HealthSourcesGetHealthResponseSourceInfoBackendInfo": { + "oneofs": { + "_endpointCount": { + "oneof": [ + "endpointCount" + ] + }, + "_group": { + "oneof": [ + "group" + ] + }, + "_healthyEndpointCount": { + "oneof": [ + "healthyEndpointCount" + ] + } + }, + "fields": { + "endpointCount": { + "type": "int32", + "id": 486641125, + "options": { + "proto3_optional": true + } + }, + "group": { + "type": "string", + "id": 98629247, + "options": { + "proto3_optional": true + } + }, + "healthyEndpointCount": { + "type": "int32", + "id": 291284167, + "options": { + "proto3_optional": true + } + } + } + }, "HealthSourcesScopedList": { "oneofs": { "_warning": { @@ -167273,6 +172774,51 @@ "keyType": "string", "type": "string", "id": 16520833 + }, + "acceleratorTopologyConfigurations": { + "keyType": "string", + "type": "InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration", + "id": 95019065 + } + } + }, + "InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration": { + "oneofs": { + "_action": { + "oneof": [ + "action" + ] + }, + "_externalId": { + "oneof": [ + "externalId" + ] + } + }, + "fields": { + "action": { + "type": "string", + "id": 187661878, + "options": { + "proto3_optional": true + } + }, + "externalId": { + "type": "string", + "id": 457537039, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "Action": { + "values": { + "UNDEFINED_ACTION": 0, + "ACCELERATOR_TOPOLOGY_ACTION_UNSPECIFIED": 78494314, + "ACTIVATE": 200393971, + "DEACTIVATE": 98942068 + } } } }, @@ -167440,6 +172986,11 @@ "oneof": [ "errorTimestamp" ] + }, + "_externalId": { + "oneof": [ + "externalId" + ] } }, "fields": { @@ -167463,6 +173014,13 @@ "options": { "proto3_optional": true } + }, + "externalId": { + "type": "string", + "id": 457537039, + "options": { + "proto3_optional": true + } } }, "nested": { @@ -190335,6 +195893,11 @@ "projectIdOrNum" ] }, + "_serviceClassId": { + "oneof": [ + "serviceClassId" + ] + }, "_status": { "oneof": [ "status" @@ -190378,6 +195941,13 @@ "type": "string", "id": 117184788 }, + "serviceClassId": { + "type": "string", + "id": 422763404, + "options": { + "proto3_optional": true + } + }, "status": { "type": "string", "id": 181260274, @@ -191856,6 +197426,11 @@ "queueCount" ] }, + "_serviceClassId": { + "oneof": [ + "serviceClassId" + ] + }, "_stackType": { "oneof": [ "stackType" @@ -191993,6 +197568,13 @@ "proto3_optional": true } }, + "serviceClassId": { + "type": "string", + "id": 422763404, + "options": { + "proto3_optional": true + } + }, "stackType": { "type": "string", "id": 425908881, @@ -204503,6 +210085,24 @@ } } }, + "RegionDiskUpdateKmsKeyRequest": { + "oneofs": { + "_kmsKeyName": { + "oneof": [ + "kmsKeyName" + ] + } + }, + "fields": { + "kmsKeyName": { + "type": "string", + "id": 484373913, + "options": { + "proto3_optional": true + } + } + } + }, "RegionDisksAddResourcePoliciesRequest": { "fields": { "resourcePolicies": { @@ -205528,6 +211128,24 @@ } } }, + "RegionSnapshotUpdateKmsKeyRequest": { + "oneofs": { + "_kmsKeyName": { + "oneof": [ + "kmsKeyName" + ] + } + }, + "fields": { + "kmsKeyName": { + "type": "string", + "id": 484373913, + "options": { + "proto3_optional": true + } + } + } + }, "RegionTargetHttpsProxiesSetSslCertificatesRequest": { "fields": { "sslCertificates": { @@ -206679,6 +212297,11 @@ "commitment" ] }, + "_confidentialComputeType": { + "oneof": [ + "confidentialComputeType" + ] + }, "_creationTimestamp": { "oneof": [ "creationTimestamp" @@ -206817,6 +212440,13 @@ "proto3_optional": true } }, + "confidentialComputeType": { + "type": "string", + "id": 386447257, + "options": { + "proto3_optional": true + } + }, "creationTimestamp": { "type": "string", "id": 30525366, @@ -206990,6 +212620,13 @@ } }, "nested": { + "ConfidentialComputeType": { + "values": { + "UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE": 0, + "CONFIDENTIAL_COMPUTE_TYPE_TDX": 301241954, + "CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED": 42227601 + } + }, "DeploymentType": { "values": { "UNDEFINED_DEPLOYMENT_TYPE": 0, @@ -211519,6 +217156,42 @@ "options": { "proto3_optional": true } + }, + "locationStatus": { + "keyType": "string", + "type": "RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus", + "id": 19007420 + } + } + }, + "RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus": { + "oneofs": { + "_state": { + "oneof": [ + "state" + ] + } + }, + "fields": { + "state": { + "type": "string", + "id": 109757585, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "State": { + "values": { + "UNDEFINED_STATE": 0, + "STATE_FAILED": 50857931, + "STATE_IN_PROGRESS": 413162809, + "STATE_PENDING": 369985449, + "STATE_SKIPPED": 515663170, + "STATE_SUCCEEDED": 466911219, + "STATE_UNSPECIFIED": 470755401 + } } } }, @@ -223652,6 +229325,24 @@ } } }, + "SnapshotUpdateKmsKeyRequest": { + "oneofs": { + "_kmsKeyName": { + "oneof": [ + "kmsKeyName" + ] + } + }, + "fields": { + "kmsKeyName": { + "type": "string", + "id": 484373913, + "options": { + "proto3_optional": true + } + } + } + }, "SnapshotsScopedList": { "oneofs": { "_warning": { @@ -234008,15 +239699,199 @@ } } }, - "nested": { - "MinimalAction": { - "values": { - "UNDEFINED_MINIMAL_ACTION": 0 + "nested": { + "MinimalAction": { + "values": { + "UNDEFINED_MINIMAL_ACTION": 0 + } + }, + "MostDisruptiveAllowedAction": { + "values": { + "UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION": 0 + } + } + } + }, + "UpdateKmsKeyDiskRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "disk": { + "type": "string", + "id": 3083677, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "diskUpdateKmsKeyRequestResource": { + "type": "DiskUpdateKmsKeyRequest", + "id": 178025952, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "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 + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "zone" + } + } + } + }, + "UpdateKmsKeyRegionDiskRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "disk": { + "type": "string", + "id": 3083677, + "options": { + "(google.api.field_behavior)": "REQUIRED" } }, - "MostDisruptiveAllowedAction": { - "values": { - "UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION": 0 + "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" + } + }, + "regionDiskUpdateKmsKeyRequestResource": { + "type": "RegionDiskUpdateKmsKeyRequest", + "id": 10015819, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + } + } + }, + "UpdateKmsKeyRegionSnapshotRequest": { + "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" + } + }, + "regionSnapshotUpdateKmsKeyRequestResource": { + "type": "RegionSnapshotUpdateKmsKeyRequest", + "id": 279384818, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "snapshot": { + "type": "string", + "id": 284874180, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "UpdateKmsKeySnapshotRequest": { + "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 + } + }, + "snapshot": { + "type": "string", + "id": 284874180, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "snapshotUpdateKmsKeyRequestResource": { + "type": "SnapshotUpdateKmsKeyRequest", + "id": 103145991, + "options": { + "(google.api.field_behavior)": "REQUIRED" } } } @@ -235322,6 +241197,11 @@ "oneof": [ "selfLink" ] + }, + "_status": { + "oneof": [ + "status" + ] } }, "fields": { @@ -235426,6 +241306,13 @@ "proto3_optional": true } }, + "status": { + "type": "UrlMapStatus", + "id": 181260274, + "options": { + "proto3_optional": true + } + }, "tests": { "rule": "repeated", "type": "UrlMapTest", @@ -235504,6 +241391,36 @@ } } }, + "UrlMapQuotaUsage": { + "oneofs": { + "_forwardingRules": { + "oneof": [ + "forwardingRules" + ] + }, + "_units": { + "oneof": [ + "units" + ] + } + }, + "fields": { + "forwardingRules": { + "type": "int32", + "id": 315821365, + "options": { + "proto3_optional": true + } + }, + "units": { + "type": "int64", + "id": 111433583, + "options": { + "proto3_optional": true + } + } + } + }, "UrlMapReference": { "oneofs": { "_urlMap": { @@ -235522,6 +241439,24 @@ } } }, + "UrlMapStatus": { + "oneofs": { + "_quotaUsage": { + "oneof": [ + "quotaUsage" + ] + } + }, + "fields": { + "quotaUsage": { + "type": "UrlMapQuotaUsage", + "id": 238511386, + "options": { + "proto3_optional": true + } + } + } + }, "UrlMapTest": { "oneofs": { "_description": { @@ -235642,6 +241577,11 @@ "loadSucceeded" ] }, + "_quotaUsage": { + "oneof": [ + "quotaUsage" + ] + }, "_testPassed": { "oneof": [ "testPassed" @@ -235661,6 +241601,13 @@ "proto3_optional": true } }, + "quotaUsage": { + "type": "UrlMapQuotaUsage", + "id": 238511386, + "options": { + "proto3_optional": true + } + }, "testFailures": { "rule": "repeated", "type": "TestFailure", @@ -241078,6 +247025,30 @@ "(google.cloud.operation_service)": "ZoneOperations" } ] + }, + "UpdateKmsKey": { + "requestType": "UpdateKmsKeyDiskRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "disk_update_kms_key_request_resource", + "(google.api.http).post": "/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/updateKmsKey", + "(google.api.method_signature)": "project,zone,disk,disk_update_kms_key_request_resource", + "(google.cloud.operation_service)": "ZoneOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "disk_update_kms_key_request_resource", + "post": "/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/updateKmsKey" + } + }, + { + "(google.api.method_signature)": "project,zone,disk,disk_update_kms_key_request_resource" + }, + { + "(google.cloud.operation_service)": "ZoneOperations" + } + ] } } }, @@ -251603,6 +257574,24 @@ } ] }, + "GetHealth": { + "requestType": "GetHealthRegionCompositeHealthCheckRequest", + "responseType": "CompositeHealthCheckHealth", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/regions/{region}/compositeHealthChecks/{composite_health_check}/getHealth", + "(google.api.method_signature)": "project,region,composite_health_check" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/regions/{region}/compositeHealthChecks/{composite_health_check}/getHealth" + } + }, + { + "(google.api.method_signature)": "project,region,composite_health_check" + } + ] + }, "Insert": { "requestType": "InsertRegionCompositeHealthCheckRequest", "responseType": "Operation", @@ -252168,6 +258157,30 @@ "(google.cloud.operation_service)": "RegionOperations" } ] + }, + "UpdateKmsKey": { + "requestType": "UpdateKmsKeyRegionDiskRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "region_disk_update_kms_key_request_resource", + "(google.api.http).post": "/compute/beta/projects/{project}/regions/{region}/disks/{disk}/updateKmsKey", + "(google.api.method_signature)": "project,region,disk,region_disk_update_kms_key_request_resource", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "region_disk_update_kms_key_request_resource", + "post": "/compute/beta/projects/{project}/regions/{region}/disks/{disk}/updateKmsKey" + } + }, + { + "(google.api.method_signature)": "project,region,disk,region_disk_update_kms_key_request_resource" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] } } }, @@ -252697,6 +258710,24 @@ } ] }, + "GetHealth": { + "requestType": "GetHealthRegionHealthSourceRequest", + "responseType": "HealthSourceHealth", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/regions/{region}/healthSources/{health_source}/getHealth", + "(google.api.method_signature)": "project,region,health_source" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/regions/{region}/healthSources/{health_source}/getHealth" + } + }, + { + "(google.api.method_signature)": "project,region,health_source" + } + ] + }, "Insert": { "requestType": "InsertRegionHealthSourceRequest", "responseType": "Operation", @@ -255708,6 +261739,30 @@ "(google.api.method_signature)": "project,region,resource,test_permissions_request_resource" } ] + }, + "UpdateKmsKey": { + "requestType": "UpdateKmsKeyRegionSnapshotRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "region_snapshot_update_kms_key_request_resource", + "(google.api.http).post": "/compute/beta/projects/{project}/regions/{region}/snapshots/{snapshot}/updateKmsKey", + "(google.api.method_signature)": "project,region,snapshot,region_snapshot_update_kms_key_request_resource", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "region_snapshot_update_kms_key_request_resource", + "post": "/compute/beta/projects/{project}/regions/{region}/snapshots/{snapshot}/updateKmsKey" + } + }, + { + "(google.api.method_signature)": "project,region,snapshot,region_snapshot_update_kms_key_request_resource" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] } } }, @@ -259114,6 +265169,30 @@ "(google.api.method_signature)": "project,resource,test_permissions_request_resource" } ] + }, + "UpdateKmsKey": { + "requestType": "UpdateKmsKeySnapshotRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "snapshot_update_kms_key_request_resource", + "(google.api.http).post": "/compute/beta/projects/{project}/global/snapshots/{snapshot}/updateKmsKey", + "(google.api.method_signature)": "project,snapshot,snapshot_update_kms_key_request_resource", + "(google.cloud.operation_service)": "GlobalOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "snapshot_update_kms_key_request_resource", + "post": "/compute/beta/projects/{project}/global/snapshots/{snapshot}/updateKmsKey" + } + }, + { + "(google.api.method_signature)": "project,snapshot,snapshot_update_kms_key_request_resource" + }, + { + "(google.cloud.operation_service)": "GlobalOperations" + } + ] } } }, diff --git a/packages/google-cloud-compute/samples/generated/v1/backend_buckets.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/backend_buckets.aggregated_list.js new file mode 100644 index 000000000000..8cd95a13586c --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/backend_buckets.aggregated_list.js @@ -0,0 +1,163 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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_v1_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').v1; + + // 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_v1_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/v1/backend_buckets.list_usable.js b/packages/google-cloud-compute/samples/generated/v1/backend_buckets.list_usable.js new file mode 100644 index 000000000000..3dbd20ced1fb --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/backend_buckets.list_usable.js @@ -0,0 +1,148 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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_v1_generated_BackendBuckets_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' + /** + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial 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 {BackendBucketsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new BackendBucketsClient(); + + async function callListUsable() { + // Construct request + const request = { + project, + }; + + // Run request + const iterable = computeClient.listUsableAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListUsable(); + // [END compute_v1_generated_BackendBuckets_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/v1/disks.update_kms_key.js b/packages/google-cloud-compute/samples/generated/v1/disks.update_kms_key.js new file mode 100644 index 000000000000..b8d4274b72ef --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/disks.update_kms_key.js @@ -0,0 +1,90 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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(disk, diskUpdateKmsKeyRequestResource, project, zone) { + // [START compute_v1_generated_Disks_UpdateKmsKey_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 Disk resource, should conform to RFC1035. + */ + // const disk = 'abc123' + /** + * The body resource for this request + */ + // const diskUpdateKmsKeyRequestResource = {} + /** + * 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 name of the zone for this request. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {DisksClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new DisksClient(); + + async function callUpdateKmsKey() { + // Construct request + const request = { + disk, + diskUpdateKmsKeyRequestResource, + project, + zone, + }; + + // Run request + const response = await computeClient.updateKmsKey(request); + console.log(response); + } + + callUpdateKmsKey(); + // [END compute_v1_generated_Disks_UpdateKmsKey_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/v1/instant_snapshot_groups.delete.js b/packages/google-cloud-compute/samples/generated/v1/instant_snapshot_groups.delete.js new file mode 100644 index 000000000000..5f07f875e7ba --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/instant_snapshot_groups.delete.js @@ -0,0 +1,85 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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(instantSnapshotGroup, project, zone) { + // [START compute_v1_generated_InstantSnapshotGroups_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 InstantSnapshot resource to delete. + */ + // const instantSnapshotGroup = 'abc123' + /** + * 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 name of the zone for this request. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {InstantSnapshotGroupsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new InstantSnapshotGroupsClient(); + + async function callDelete() { + // Construct request + const request = { + instantSnapshotGroup, + project, + zone, + }; + + // Run request + const response = await computeClient.delete(request); + console.log(response); + } + + callDelete(); + // [END compute_v1_generated_InstantSnapshotGroups_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/v1/instant_snapshot_groups.get.js b/packages/google-cloud-compute/samples/generated/v1/instant_snapshot_groups.get.js new file mode 100644 index 000000000000..56994e6d8c83 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/instant_snapshot_groups.get.js @@ -0,0 +1,71 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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(instantSnapshotGroup, project, zone) { + // [START compute_v1_generated_InstantSnapshotGroups_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 InstantSnapshotGroup resource to return. + */ + // const instantSnapshotGroup = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * The name of the zone for this request. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {InstantSnapshotGroupsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new InstantSnapshotGroupsClient(); + + async function callGet() { + // Construct request + const request = { + instantSnapshotGroup, + project, + zone, + }; + + // Run request + const response = await computeClient.get(request); + console.log(response); + } + + callGet(); + // [END compute_v1_generated_InstantSnapshotGroups_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/v1/instant_snapshot_groups.get_iam_policy.js b/packages/google-cloud-compute/samples/generated/v1/instant_snapshot_groups.get_iam_policy.js new file mode 100644 index 000000000000..df6f72c08873 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/instant_snapshot_groups.get_iam_policy.js @@ -0,0 +1,75 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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, resource, zone) { + // [START compute_v1_generated_InstantSnapshotGroups_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' + /** + * 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 {InstantSnapshotGroupsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new InstantSnapshotGroupsClient(); + + async function callGetIamPolicy() { + // Construct request + const request = { + project, + resource, + zone, + }; + + // Run request + const response = await computeClient.getIamPolicy(request); + console.log(response); + } + + callGetIamPolicy(); + // [END compute_v1_generated_InstantSnapshotGroups_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/v1/instant_snapshot_groups.insert.js b/packages/google-cloud-compute/samples/generated/v1/instant_snapshot_groups.insert.js new file mode 100644 index 000000000000..03ec59e387a3 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/instant_snapshot_groups.insert.js @@ -0,0 +1,89 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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(instantSnapshotGroupResource, project, zone) { + // [START compute_v1_generated_InstantSnapshotGroups_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 instantSnapshotGroupResource = {} + /** + * 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' + /** + * begin_interface: MixerMutationRequestBuilder + */ + // const sourceConsistencyGroup = 'abc123' + /** + * Name of the zone for this request. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {InstantSnapshotGroupsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new InstantSnapshotGroupsClient(); + + async function callInsert() { + // Construct request + const request = { + instantSnapshotGroupResource, + project, + zone, + }; + + // Run request + const response = await computeClient.insert(request); + console.log(response); + } + + callInsert(); + // [END compute_v1_generated_InstantSnapshotGroups_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/v1/instant_snapshot_groups.list.js b/packages/google-cloud-compute/samples/generated/v1/instant_snapshot_groups.list.js new file mode 100644 index 000000000000..ed7549e809e8 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/instant_snapshot_groups.list.js @@ -0,0 +1,153 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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_v1_generated_InstantSnapshotGroups_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 + /** + * The name of the zone for this request. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {InstantSnapshotGroupsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new InstantSnapshotGroupsClient(); + + 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_v1_generated_InstantSnapshotGroups_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/v1/instant_snapshot_groups.set_iam_policy.js b/packages/google-cloud-compute/samples/generated/v1/instant_snapshot_groups.set_iam_policy.js new file mode 100644 index 000000000000..69e10b7d56ba --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/instant_snapshot_groups.set_iam_policy.js @@ -0,0 +1,76 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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, resource, zone, zoneSetPolicyRequestResource) { + // [START compute_v1_generated_InstantSnapshotGroups_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' + /** + * 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 zoneSetPolicyRequestResource = {} + + // Imports the Compute library + const {InstantSnapshotGroupsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new InstantSnapshotGroupsClient(); + + async function callSetIamPolicy() { + // Construct request + const request = { + project, + resource, + zone, + zoneSetPolicyRequestResource, + }; + + // Run request + const response = await computeClient.setIamPolicy(request); + console.log(response); + } + + callSetIamPolicy(); + // [END compute_v1_generated_InstantSnapshotGroups_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/v1/instant_snapshot_groups.test_iam_permissions.js b/packages/google-cloud-compute/samples/generated/v1/instant_snapshot_groups.test_iam_permissions.js new file mode 100644 index 000000000000..aaf3289261c6 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/instant_snapshot_groups.test_iam_permissions.js @@ -0,0 +1,76 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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, resource, testPermissionsRequestResource, zone) { + // [START compute_v1_generated_InstantSnapshotGroups_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' + /** + * 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 {InstantSnapshotGroupsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new InstantSnapshotGroupsClient(); + + async function callTestIamPermissions() { + // Construct request + const request = { + project, + resource, + testPermissionsRequestResource, + zone, + }; + + // Run request + const response = await computeClient.testIamPermissions(request); + console.log(response); + } + + callTestIamPermissions(); + // [END compute_v1_generated_InstantSnapshotGroups_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/v1/region_backend_buckets.delete.js b/packages/google-cloud-compute/samples/generated/v1/region_backend_buckets.delete.js new file mode 100644 index 000000000000..623e4a39941e --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_backend_buckets.delete.js @@ -0,0 +1,86 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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_v1_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' + /** + * 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').v1; + + // 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_v1_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/v1/region_backend_buckets.get.js b/packages/google-cloud-compute/samples/generated/v1/region_backend_buckets.get.js new file mode 100644 index 000000000000..e9c202e20bb7 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_backend_buckets.get.js @@ -0,0 +1,71 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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_v1_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').v1; + + // 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_v1_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/v1/region_backend_buckets.get_iam_policy.js b/packages/google-cloud-compute/samples/generated/v1/region_backend_buckets.get_iam_policy.js new file mode 100644 index 000000000000..eae0a0f636f1 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_backend_buckets.get_iam_policy.js @@ -0,0 +1,75 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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_v1_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').v1; + + // 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_v1_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/v1/region_backend_buckets.insert.js b/packages/google-cloud-compute/samples/generated/v1/region_backend_buckets.insert.js new file mode 100644 index 000000000000..93eb938031f9 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_backend_buckets.insert.js @@ -0,0 +1,85 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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_v1_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').v1; + + // 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_v1_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/v1/region_backend_buckets.list.js b/packages/google-cloud-compute/samples/generated/v1/region_backend_buckets.list.js new file mode 100644 index 000000000000..6e4080ec9ad2 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_backend_buckets.list.js @@ -0,0 +1,153 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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_v1_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').v1; + + // 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_v1_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/v1/region_backend_buckets.list_usable.js b/packages/google-cloud-compute/samples/generated/v1/region_backend_buckets.list_usable.js new file mode 100644 index 000000000000..b761125bc71f --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_backend_buckets.list_usable.js @@ -0,0 +1,154 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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_v1_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').v1; + + // 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_v1_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/v1/region_backend_buckets.patch.js b/packages/google-cloud-compute/samples/generated/v1/region_backend_buckets.patch.js new file mode 100644 index 000000000000..307271af71eb --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_backend_buckets.patch.js @@ -0,0 +1,91 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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_v1_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').v1; + + // 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_v1_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/v1/region_backend_buckets.set_iam_policy.js b/packages/google-cloud-compute/samples/generated/v1/region_backend_buckets.set_iam_policy.js new file mode 100644 index 000000000000..6b235b7527cf --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_backend_buckets.set_iam_policy.js @@ -0,0 +1,76 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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_v1_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').v1; + + // 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_v1_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/v1/region_backend_buckets.test_iam_permissions.js b/packages/google-cloud-compute/samples/generated/v1/region_backend_buckets.test_iam_permissions.js new file mode 100644 index 000000000000..686ed783f0da --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_backend_buckets.test_iam_permissions.js @@ -0,0 +1,76 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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_v1_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').v1; + + // 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_v1_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/v1/region_composite_health_checks.get_health.js b/packages/google-cloud-compute/samples/generated/v1/region_composite_health_checks.get_health.js new file mode 100644 index 000000000000..6e61f2c5ce65 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_composite_health_checks.get_health.js @@ -0,0 +1,71 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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_v1_generated_RegionCompositeHealthChecks_GetHealth_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 get health for. + */ + // const compositeHealthCheck = 'abc123' + /** + * Name of the project scoping 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').v1; + + // Instantiates a client + const computeClient = new RegionCompositeHealthChecksClient(); + + async function callGetHealth() { + // Construct request + const request = { + compositeHealthCheck, + project, + region, + }; + + // Run request + const response = await computeClient.getHealth(request); + console.log(response); + } + + callGetHealth(); + // [END compute_v1_generated_RegionCompositeHealthChecks_GetHealth_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/v1/region_disks.update_kms_key.js b/packages/google-cloud-compute/samples/generated/v1/region_disks.update_kms_key.js new file mode 100644 index 000000000000..755dc43dac29 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_disks.update_kms_key.js @@ -0,0 +1,90 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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(disk, project, region, regionDiskUpdateKmsKeyRequestResource) { + // [START compute_v1_generated_RegionDisks_UpdateKmsKey_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 Disk resource, should conform to RFC1035. + */ + // const disk = 'abc123' + /** + * 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 regionDiskUpdateKmsKeyRequestResource = {} + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The 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 {RegionDisksClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionDisksClient(); + + async function callUpdateKmsKey() { + // Construct request + const request = { + disk, + project, + region, + regionDiskUpdateKmsKeyRequestResource, + }; + + // Run request + const response = await computeClient.updateKmsKey(request); + console.log(response); + } + + callUpdateKmsKey(); + // [END compute_v1_generated_RegionDisks_UpdateKmsKey_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/v1/region_health_sources.get_health.js b/packages/google-cloud-compute/samples/generated/v1/region_health_sources.get_health.js new file mode 100644 index 000000000000..d7aea291b745 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_health_sources.get_health.js @@ -0,0 +1,71 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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(healthSource, project, region) { + // [START compute_v1_generated_RegionHealthSources_GetHealth_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 HealthSource resource to get health for. + */ + // const healthSource = 'abc123' + /** + * Name of the project scoping this request. + */ + // const project = 'my-project' + /** + * Name of the region scoping this request. + */ + // const region = 'us-central1' + + // Imports the Compute library + const {RegionHealthSourcesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionHealthSourcesClient(); + + async function callGetHealth() { + // Construct request + const request = { + healthSource, + project, + region, + }; + + // Run request + const response = await computeClient.getHealth(request); + console.log(response); + } + + callGetHealth(); + // [END compute_v1_generated_RegionHealthSources_GetHealth_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/v1/region_instance_group_manager_resize_requests.cancel.js b/packages/google-cloud-compute/samples/generated/v1/region_instance_group_manager_resize_requests.cancel.js new file mode 100644 index 000000000000..14032d912837 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_instance_group_manager_resize_requests.cancel.js @@ -0,0 +1,93 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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(instanceGroupManager, project, region, resizeRequest) { + // [START compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Cancel_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 name of the managed instance group. + * Name should conform to RFC1035 or be a resource ID. + */ + // const instanceGroupManager = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * 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). + */ + // const requestId = 'abc123' + /** + * The name of the resize request to cancel. + * Name should conform to RFC1035 or be a resource ID. + */ + // const resizeRequest = 'abc123' + + // Imports the Compute library + const {RegionInstanceGroupManagerResizeRequestsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionInstanceGroupManagerResizeRequestsClient(); + + async function callCancel() { + // Construct request + const request = { + instanceGroupManager, + project, + region, + resizeRequest, + }; + + // Run request + const response = await computeClient.cancel(request); + console.log(response); + } + + callCancel(); + // [END compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Cancel_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/v1/region_instance_group_manager_resize_requests.delete.js b/packages/google-cloud-compute/samples/generated/v1/region_instance_group_manager_resize_requests.delete.js new file mode 100644 index 000000000000..f34c8fe164dd --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_instance_group_manager_resize_requests.delete.js @@ -0,0 +1,93 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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(instanceGroupManager, project, region, resizeRequest) { + // [START compute_v1_generated_RegionInstanceGroupManagerResizeRequests_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. + */ + /** + * The name of the managed instance group. + * Name should conform to RFC1035 or be a resource ID. + */ + // const instanceGroupManager = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * 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). + */ + // const requestId = 'abc123' + /** + * The name of the resize request to delete. + * Name should conform to RFC1035 or be a resource ID. + */ + // const resizeRequest = 'abc123' + + // Imports the Compute library + const {RegionInstanceGroupManagerResizeRequestsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionInstanceGroupManagerResizeRequestsClient(); + + async function callDelete() { + // Construct request + const request = { + instanceGroupManager, + project, + region, + resizeRequest, + }; + + // Run request + const response = await computeClient.delete(request); + console.log(response); + } + + callDelete(); + // [END compute_v1_generated_RegionInstanceGroupManagerResizeRequests_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/v1/region_instance_group_manager_resize_requests.get.js b/packages/google-cloud-compute/samples/generated/v1/region_instance_group_manager_resize_requests.get.js new file mode 100644 index 000000000000..08c3dd29810c --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_instance_group_manager_resize_requests.get.js @@ -0,0 +1,79 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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(instanceGroupManager, project, region, resizeRequest) { + // [START compute_v1_generated_RegionInstanceGroupManagerResizeRequests_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. + */ + /** + * The name of the managed instance group. + * Name should conform to RFC1035 or be a resource ID. + */ + // const instanceGroupManager = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * 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. + */ + // const resizeRequest = 'abc123' + + // Imports the Compute library + const {RegionInstanceGroupManagerResizeRequestsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionInstanceGroupManagerResizeRequestsClient(); + + async function callGet() { + // Construct request + const request = { + instanceGroupManager, + project, + region, + resizeRequest, + }; + + // Run request + const response = await computeClient.get(request); + console.log(response); + } + + callGet(); + // [END compute_v1_generated_RegionInstanceGroupManagerResizeRequests_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/v1/region_instance_group_manager_resize_requests.insert.js b/packages/google-cloud-compute/samples/generated/v1/region_instance_group_manager_resize_requests.insert.js new file mode 100644 index 000000000000..83a1b0b8aa86 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_instance_group_manager_resize_requests.insert.js @@ -0,0 +1,92 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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(instanceGroupManager, instanceGroupManagerResizeRequestResource, project, region) { + // [START compute_v1_generated_RegionInstanceGroupManagerResizeRequests_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. + */ + /** + * 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' + /** + * The body resource for this request + */ + // const instanceGroupManagerResizeRequestResource = {} + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * 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). + */ + // const requestId = 'abc123' + + // Imports the Compute library + const {RegionInstanceGroupManagerResizeRequestsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionInstanceGroupManagerResizeRequestsClient(); + + async function callInsert() { + // Construct request + const request = { + instanceGroupManager, + instanceGroupManagerResizeRequestResource, + project, + region, + }; + + // Run request + const response = await computeClient.insert(request); + console.log(response); + } + + callInsert(); + // [END compute_v1_generated_RegionInstanceGroupManagerResizeRequests_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/v1/region_instance_group_manager_resize_requests.list.js b/packages/google-cloud-compute/samples/generated/v1/region_instance_group_manager_resize_requests.list.js new file mode 100644 index 000000000000..91c8742d35a9 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_instance_group_manager_resize_requests.list.js @@ -0,0 +1,159 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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(instanceGroupManager, project, region) { + // [START compute_v1_generated_RegionInstanceGroupManagerResizeRequests_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 name of the managed instance group. The name should conform to RFC1035. + */ + // 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`) + */ + // 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. 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. + */ + // const returnPartialSuccess = true + + // Imports the Compute library + const {RegionInstanceGroupManagerResizeRequestsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionInstanceGroupManagerResizeRequestsClient(); + + async function callList() { + // Construct request + const request = { + instanceGroupManager, + project, + region, + }; + + // Run request + const iterable = computeClient.listAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callList(); + // [END compute_v1_generated_RegionInstanceGroupManagerResizeRequests_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/v1/region_instant_snapshot_groups.delete.js b/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshot_groups.delete.js new file mode 100644 index 000000000000..47c4e761bbd0 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshot_groups.delete.js @@ -0,0 +1,85 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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(instantSnapshotGroup, project, region) { + // [START compute_v1_generated_RegionInstantSnapshotGroups_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 InstantSnapshotGroup resource to delete. + */ + // const instantSnapshotGroup = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * The name of the region for 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 {RegionInstantSnapshotGroupsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionInstantSnapshotGroupsClient(); + + async function callDelete() { + // Construct request + const request = { + instantSnapshotGroup, + project, + region, + }; + + // Run request + const response = await computeClient.delete(request); + console.log(response); + } + + callDelete(); + // [END compute_v1_generated_RegionInstantSnapshotGroups_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/v1/region_instant_snapshot_groups.get.js b/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshot_groups.get.js new file mode 100644 index 000000000000..23a9e8c9fde7 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshot_groups.get.js @@ -0,0 +1,71 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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(instantSnapshotGroup, project, region) { + // [START compute_v1_generated_RegionInstantSnapshotGroups_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 InstantSnapshotGroup resource to return. + */ + // const instantSnapshotGroup = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * The name of the region for this request. + */ + // const region = 'us-central1' + + // Imports the Compute library + const {RegionInstantSnapshotGroupsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionInstantSnapshotGroupsClient(); + + async function callGet() { + // Construct request + const request = { + instantSnapshotGroup, + project, + region, + }; + + // Run request + const response = await computeClient.get(request); + console.log(response); + } + + callGet(); + // [END compute_v1_generated_RegionInstantSnapshotGroups_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/v1/region_instant_snapshot_groups.get_iam_policy.js b/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshot_groups.get_iam_policy.js new file mode 100644 index 000000000000..1a1457616a3d --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshot_groups.get_iam_policy.js @@ -0,0 +1,75 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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_v1_generated_RegionInstantSnapshotGroups_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 {RegionInstantSnapshotGroupsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionInstantSnapshotGroupsClient(); + + async function callGetIamPolicy() { + // Construct request + const request = { + project, + region, + resource, + }; + + // Run request + const response = await computeClient.getIamPolicy(request); + console.log(response); + } + + callGetIamPolicy(); + // [END compute_v1_generated_RegionInstantSnapshotGroups_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/v1/region_instant_snapshot_groups.insert.js b/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshot_groups.insert.js new file mode 100644 index 000000000000..99fa0e9ca5ec --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshot_groups.insert.js @@ -0,0 +1,89 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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(instantSnapshotGroupResource, project, region) { + // [START compute_v1_generated_RegionInstantSnapshotGroups_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 instantSnapshotGroupResource = {} + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region for 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' + /** + * begin_interface: MixerMutationRequestBuilder + */ + // const sourceConsistencyGroup = 'abc123' + + // Imports the Compute library + const {RegionInstantSnapshotGroupsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionInstantSnapshotGroupsClient(); + + async function callInsert() { + // Construct request + const request = { + instantSnapshotGroupResource, + project, + region, + }; + + // Run request + const response = await computeClient.insert(request); + console.log(response); + } + + callInsert(); + // [END compute_v1_generated_RegionInstantSnapshotGroups_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/v1/region_instant_snapshot_groups.list.js b/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshot_groups.list.js new file mode 100644 index 000000000000..5c48ca4d7d4b --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshot_groups.list.js @@ -0,0 +1,153 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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_v1_generated_RegionInstantSnapshotGroups_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' + /** + * The name of the region for 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 {RegionInstantSnapshotGroupsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionInstantSnapshotGroupsClient(); + + 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_v1_generated_RegionInstantSnapshotGroups_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/v1/region_instant_snapshot_groups.set_iam_policy.js b/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshot_groups.set_iam_policy.js new file mode 100644 index 000000000000..026f0e661ccf --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshot_groups.set_iam_policy.js @@ -0,0 +1,76 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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_v1_generated_RegionInstantSnapshotGroups_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 {RegionInstantSnapshotGroupsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionInstantSnapshotGroupsClient(); + + 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_v1_generated_RegionInstantSnapshotGroups_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/v1/region_instant_snapshot_groups.test_iam_permissions.js b/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshot_groups.test_iam_permissions.js new file mode 100644 index 000000000000..d901547ab021 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_instant_snapshot_groups.test_iam_permissions.js @@ -0,0 +1,76 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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_v1_generated_RegionInstantSnapshotGroups_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 {RegionInstantSnapshotGroupsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionInstantSnapshotGroupsClient(); + + 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_v1_generated_RegionInstantSnapshotGroups_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/v1/region_snapshot_settings.get.js b/packages/google-cloud-compute/samples/generated/v1/region_snapshot_settings.get.js new file mode 100644 index 000000000000..6be14f039c19 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_snapshot_settings.get.js @@ -0,0 +1,66 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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_v1_generated_RegionSnapshotSettings_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 region for this request. + */ + // const region = 'us-central1' + + // Imports the Compute library + const {RegionSnapshotSettingsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionSnapshotSettingsClient(); + + async function callGet() { + // Construct request + const request = { + project, + region, + }; + + // Run request + const response = await computeClient.get(request); + console.log(response); + } + + callGet(); + // [END compute_v1_generated_RegionSnapshotSettings_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/v1/region_snapshot_settings.patch.js b/packages/google-cloud-compute/samples/generated/v1/region_snapshot_settings.patch.js new file mode 100644 index 000000000000..e4a654ba39a5 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_snapshot_settings.patch.js @@ -0,0 +1,89 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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, snapshotSettingsResource) { + // [START compute_v1_generated_RegionSnapshotSettings_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. + */ + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region for 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' + /** + * The body resource for this request + */ + // const snapshotSettingsResource = {} + /** + * update_mask indicates fields to be updated as part of this request. + */ + // const updateMask = 'abc123' + + // Imports the Compute library + const {RegionSnapshotSettingsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionSnapshotSettingsClient(); + + async function callPatch() { + // Construct request + const request = { + project, + region, + snapshotSettingsResource, + }; + + // Run request + const response = await computeClient.patch(request); + console.log(response); + } + + callPatch(); + // [END compute_v1_generated_RegionSnapshotSettings_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/v1/region_snapshots.delete.js b/packages/google-cloud-compute/samples/generated/v1/region_snapshots.delete.js new file mode 100644 index 000000000000..c56d5803f114 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_snapshots.delete.js @@ -0,0 +1,85 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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, snapshot) { + // [START compute_v1_generated_RegionSnapshots_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' + /** + * The name of the region for 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' + /** + * Name of the snapshot resource to delete. + */ + // const snapshot = 'abc123' + + // Imports the Compute library + const {RegionSnapshotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionSnapshotsClient(); + + async function callDelete() { + // Construct request + const request = { + project, + region, + snapshot, + }; + + // Run request + const response = await computeClient.delete(request); + console.log(response); + } + + callDelete(); + // [END compute_v1_generated_RegionSnapshots_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/v1/region_snapshots.get.js b/packages/google-cloud-compute/samples/generated/v1/region_snapshots.get.js new file mode 100644 index 000000000000..8efa3e45340d --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_snapshots.get.js @@ -0,0 +1,71 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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, snapshot) { + // [START compute_v1_generated_RegionSnapshots_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 region for this request. + */ + // const region = 'us-central1' + /** + * Name of the Snapshot resource to return. + */ + // const snapshot = 'abc123' + + // Imports the Compute library + const {RegionSnapshotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionSnapshotsClient(); + + async function callGet() { + // Construct request + const request = { + project, + region, + snapshot, + }; + + // Run request + const response = await computeClient.get(request); + console.log(response); + } + + callGet(); + // [END compute_v1_generated_RegionSnapshots_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/v1/region_snapshots.get_iam_policy.js b/packages/google-cloud-compute/samples/generated/v1/region_snapshots.get_iam_policy.js new file mode 100644 index 000000000000..31bcae20a262 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_snapshots.get_iam_policy.js @@ -0,0 +1,75 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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_v1_generated_RegionSnapshots_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 {RegionSnapshotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionSnapshotsClient(); + + async function callGetIamPolicy() { + // Construct request + const request = { + project, + region, + resource, + }; + + // Run request + const response = await computeClient.getIamPolicy(request); + console.log(response); + } + + callGetIamPolicy(); + // [END compute_v1_generated_RegionSnapshots_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/v1/region_snapshots.insert.js b/packages/google-cloud-compute/samples/generated/v1/region_snapshots.insert.js new file mode 100644 index 000000000000..6a515183fe74 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_snapshots.insert.js @@ -0,0 +1,85 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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, snapshotResource) { + // [START compute_v1_generated_RegionSnapshots_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' + /** + * Name of the region for 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' + /** + * The body resource for this request + */ + // const snapshotResource = {} + + // Imports the Compute library + const {RegionSnapshotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionSnapshotsClient(); + + async function callInsert() { + // Construct request + const request = { + project, + region, + snapshotResource, + }; + + // Run request + const response = await computeClient.insert(request); + console.log(response); + } + + callInsert(); + // [END compute_v1_generated_RegionSnapshots_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/v1/region_snapshots.list.js b/packages/google-cloud-compute/samples/generated/v1/region_snapshots.list.js new file mode 100644 index 000000000000..5f797af2c02e --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_snapshots.list.js @@ -0,0 +1,153 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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_v1_generated_RegionSnapshots_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 for 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 {RegionSnapshotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionSnapshotsClient(); + + 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_v1_generated_RegionSnapshots_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/v1/region_snapshots.set_iam_policy.js b/packages/google-cloud-compute/samples/generated/v1/region_snapshots.set_iam_policy.js new file mode 100644 index 000000000000..1872e143cd99 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_snapshots.set_iam_policy.js @@ -0,0 +1,76 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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_v1_generated_RegionSnapshots_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 {RegionSnapshotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionSnapshotsClient(); + + 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_v1_generated_RegionSnapshots_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/v1/region_snapshots.set_labels.js b/packages/google-cloud-compute/samples/generated/v1/region_snapshots.set_labels.js new file mode 100644 index 000000000000..e1c0d6ab1098 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_snapshots.set_labels.js @@ -0,0 +1,90 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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, regionSetLabelsRequestResource, resource) { + // [START compute_v1_generated_RegionSnapshots_SetLabels_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 region for this request. + */ + // const region = 'us-central1' + /** + * The body resource for this request + */ + // 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). + */ + // const requestId = 'abc123' + /** + * Name or id of the resource for this request. + */ + // const resource = 'abc123' + + // Imports the Compute library + const {RegionSnapshotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionSnapshotsClient(); + + async function callSetLabels() { + // Construct request + const request = { + project, + region, + regionSetLabelsRequestResource, + resource, + }; + + // Run request + const response = await computeClient.setLabels(request); + console.log(response); + } + + callSetLabels(); + // [END compute_v1_generated_RegionSnapshots_SetLabels_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/v1/region_snapshots.test_iam_permissions.js b/packages/google-cloud-compute/samples/generated/v1/region_snapshots.test_iam_permissions.js new file mode 100644 index 000000000000..49c7031e5cc4 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_snapshots.test_iam_permissions.js @@ -0,0 +1,76 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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_v1_generated_RegionSnapshots_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 {RegionSnapshotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionSnapshotsClient(); + + 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_v1_generated_RegionSnapshots_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/v1/region_snapshots.update_kms_key.js b/packages/google-cloud-compute/samples/generated/v1/region_snapshots.update_kms_key.js new file mode 100644 index 000000000000..cdd2de0fcdfd --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_snapshots.update_kms_key.js @@ -0,0 +1,90 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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, regionSnapshotUpdateKmsKeyRequestResource, snapshot) { + // [START compute_v1_generated_RegionSnapshots_UpdateKmsKey_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 region for this request. + */ + // const region = 'us-central1' + /** + * The body resource for this request + */ + // const regionSnapshotUpdateKmsKeyRequestResource = {} + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The 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 snapshot resource to update. Should conform to RFC1035. + */ + // const snapshot = 'abc123' + + // Imports the Compute library + const {RegionSnapshotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionSnapshotsClient(); + + async function callUpdateKmsKey() { + // Construct request + const request = { + project, + region, + regionSnapshotUpdateKmsKeyRequestResource, + snapshot, + }; + + // Run request + const response = await computeClient.updateKmsKey(request); + console.log(response); + } + + callUpdateKmsKey(); + // [END compute_v1_generated_RegionSnapshots_UpdateKmsKey_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/v1/snapshots.update_kms_key.js b/packages/google-cloud-compute/samples/generated/v1/snapshots.update_kms_key.js new file mode 100644 index 000000000000..f05ec9237547 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/snapshots.update_kms_key.js @@ -0,0 +1,85 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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, snapshot, snapshotUpdateKmsKeyRequestResource) { + // [START compute_v1_generated_Snapshots_UpdateKmsKey_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 snapshot resource to update. Should conform to RFC1035. + */ + // const snapshot = 'abc123' + /** + * The body resource for this request + */ + // const snapshotUpdateKmsKeyRequestResource = {} + + // Imports the Compute library + const {SnapshotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new SnapshotsClient(); + + async function callUpdateKmsKey() { + // Construct request + const request = { + project, + snapshot, + snapshotUpdateKmsKeyRequestResource, + }; + + // Run request + const response = await computeClient.updateKmsKey(request); + console.log(response); + } + + callUpdateKmsKey(); + // [END compute_v1_generated_Snapshots_UpdateKmsKey_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/v1/snippet_metadata_google.cloud.compute.v1.json b/packages/google-cloud-compute/samples/generated/v1/snippet_metadata_google.cloud.compute.v1.json index f70cebd0071d..f4d2d9104154 100644 --- a/packages/google-cloud-compute/samples/generated/v1/snippet_metadata_google.cloud.compute.v1.json +++ b/packages/google-cloud-compute/samples/generated/v1/snippet_metadata_google.cloud.compute.v1.json @@ -1187,6 +1187,74 @@ } } }, + { + "regionTag": "compute_v1_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.v1.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.v1.BackendBucketAggregatedList", + "client": { + "shortName": "BackendBucketsClient", + "fullName": "google.cloud.compute.v1.BackendBucketsClient" + }, + "method": { + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1.BackendBuckets.AggregatedList", + "service": { + "shortName": "BackendBuckets", + "fullName": "google.cloud.compute.v1.BackendBuckets" + } + } + } + }, { "regionTag": "compute_v1_generated_BackendBuckets_Delete_async", "title": "AcceleratorTypes delete Sample", @@ -1487,6 +1555,66 @@ } } }, + { + "regionTag": "compute_v1_generated_BackendBuckets_ListUsable_async", + "title": "AcceleratorTypes listUsable Sample", + "origin": "API_DEFINITION", + "description": " Retrieves a list of all usable backend buckets in the specified project.", + "canonical": true, + "file": "backend_buckets.list_usable.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 140, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListUsable", + "fullName": "google.cloud.compute.v1.BackendBuckets.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": "return_partial_success", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.cloud.compute.v1.BackendBucketListUsable", + "client": { + "shortName": "BackendBucketsClient", + "fullName": "google.cloud.compute.v1.BackendBucketsClient" + }, + "method": { + "shortName": "ListUsable", + "fullName": "google.cloud.compute.v1.BackendBuckets.ListUsable", + "service": { + "shortName": "BackendBuckets", + "fullName": "google.cloud.compute.v1.BackendBuckets" + } + } + } + }, { "regionTag": "compute_v1_generated_BackendBuckets_Patch_async", "title": "AcceleratorTypes patch Sample", @@ -3939,6 +4067,62 @@ } } }, + { + "regionTag": "compute_v1_generated_Disks_UpdateKmsKey_async", + "title": "AcceleratorTypes updateKmsKey Sample", + "origin": "API_DEFINITION", + "description": " Rotates the customer-managed encryption key to the latest version for the specified persistent disk.", + "canonical": true, + "file": "disks.update_kms_key.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 82, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateKmsKey", + "fullName": "google.cloud.compute.v1.Disks.UpdateKmsKey", + "async": true, + "parameters": [ + { + "name": "disk", + "type": "TYPE_STRING" + }, + { + "name": "disk_update_kms_key_request_resource", + "type": ".google.cloud.compute.v1.DiskUpdateKmsKeyRequest" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "DisksClient", + "fullName": "google.cloud.compute.v1.DisksClient" + }, + "method": { + "shortName": "UpdateKmsKey", + "fullName": "google.cloud.compute.v1.Disks.UpdateKmsKey", + "service": { + "shortName": "Disks", + "fullName": "google.cloud.compute.v1.Disks" + } + } + } + }, { "regionTag": "compute_v1_generated_DiskTypes_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", @@ -14812,80 +14996,12 @@ } }, { - "regionTag": "compute_v1_generated_InstantSnapshots_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of instantSnapshots. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "instant_snapshots.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.InstantSnapshots.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.v1.InstantSnapshotAggregatedList", - "client": { - "shortName": "InstantSnapshotsClient", - "fullName": "google.cloud.compute.v1.InstantSnapshotsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.InstantSnapshots.AggregatedList", - "service": { - "shortName": "InstantSnapshots", - "fullName": "google.cloud.compute.v1.InstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstantSnapshots_Delete_async", + "regionTag": "compute_v1_generated_InstantSnapshotGroups_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, seeDeleting instantSnapshots.", + "description": " deletes a Zonal InstantSnapshotGroup resource", "canonical": true, - "file": "instant_snapshots.delete.js", + "file": "instant_snapshot_groups.delete.js", "language": "JAVASCRIPT", "segments": [ { @@ -14896,11 +15012,11 @@ ], "clientMethod": { "shortName": "Delete", - "fullName": "google.cloud.compute.v1.InstantSnapshots.Delete", + "fullName": "google.cloud.compute.v1.InstantSnapshotGroups.Delete", "async": true, "parameters": [ { - "name": "instant_snapshot", + "name": "instant_snapshot_group", "type": "TYPE_STRING" }, { @@ -14918,26 +15034,26 @@ ], "resultType": ".google.cloud.compute.v1.Operation", "client": { - "shortName": "InstantSnapshotsClient", - "fullName": "google.cloud.compute.v1.InstantSnapshotsClient" + "shortName": "InstantSnapshotGroupsClient", + "fullName": "google.cloud.compute.v1.InstantSnapshotGroupsClient" }, "method": { "shortName": "Delete", - "fullName": "google.cloud.compute.v1.InstantSnapshots.Delete", + "fullName": "google.cloud.compute.v1.InstantSnapshotGroups.Delete", "service": { - "shortName": "InstantSnapshots", - "fullName": "google.cloud.compute.v1.InstantSnapshots" + "shortName": "InstantSnapshotGroups", + "fullName": "google.cloud.compute.v1.InstantSnapshotGroups" } } } }, { - "regionTag": "compute_v1_generated_InstantSnapshots_Get_async", + "regionTag": "compute_v1_generated_InstantSnapshotGroups_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified InstantSnapshot resource in the specified zone.", + "description": " returns the specified InstantSnapshotGroup resource in the specified zone.", "canonical": true, - "file": "instant_snapshots.get.js", + "file": "instant_snapshot_groups.get.js", "language": "JAVASCRIPT", "segments": [ { @@ -14948,11 +15064,11 @@ ], "clientMethod": { "shortName": "Get", - "fullName": "google.cloud.compute.v1.InstantSnapshots.Get", + "fullName": "google.cloud.compute.v1.InstantSnapshotGroups.Get", "async": true, "parameters": [ { - "name": "instant_snapshot", + "name": "instant_snapshot_group", "type": "TYPE_STRING" }, { @@ -14964,28 +15080,28 @@ "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.compute.v1.InstantSnapshot", + "resultType": ".google.cloud.compute.v1.InstantSnapshotGroup", "client": { - "shortName": "InstantSnapshotsClient", - "fullName": "google.cloud.compute.v1.InstantSnapshotsClient" + "shortName": "InstantSnapshotGroupsClient", + "fullName": "google.cloud.compute.v1.InstantSnapshotGroupsClient" }, "method": { "shortName": "Get", - "fullName": "google.cloud.compute.v1.InstantSnapshots.Get", + "fullName": "google.cloud.compute.v1.InstantSnapshotGroups.Get", "service": { - "shortName": "InstantSnapshots", - "fullName": "google.cloud.compute.v1.InstantSnapshots" + "shortName": "InstantSnapshotGroups", + "fullName": "google.cloud.compute.v1.InstantSnapshotGroups" } } } }, { - "regionTag": "compute_v1_generated_InstantSnapshots_GetIamPolicy_async", + "regionTag": "compute_v1_generated_InstantSnapshotGroups_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": "instant_snapshots.get_iam_policy.js", + "file": "instant_snapshot_groups.get_iam_policy.js", "language": "JAVASCRIPT", "segments": [ { @@ -14996,7 +15112,7 @@ ], "clientMethod": { "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.InstantSnapshots.GetIamPolicy", + "fullName": "google.cloud.compute.v1.InstantSnapshotGroups.GetIamPolicy", "async": true, "parameters": [ { @@ -15018,42 +15134,42 @@ ], "resultType": ".google.cloud.compute.v1.Policy", "client": { - "shortName": "InstantSnapshotsClient", - "fullName": "google.cloud.compute.v1.InstantSnapshotsClient" + "shortName": "InstantSnapshotGroupsClient", + "fullName": "google.cloud.compute.v1.InstantSnapshotGroupsClient" }, "method": { "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.InstantSnapshots.GetIamPolicy", + "fullName": "google.cloud.compute.v1.InstantSnapshotGroups.GetIamPolicy", "service": { - "shortName": "InstantSnapshots", - "fullName": "google.cloud.compute.v1.InstantSnapshots" + "shortName": "InstantSnapshotGroups", + "fullName": "google.cloud.compute.v1.InstantSnapshotGroups" } } } }, { - "regionTag": "compute_v1_generated_InstantSnapshots_Insert_async", + "regionTag": "compute_v1_generated_InstantSnapshotGroups_Insert_async", "title": "AcceleratorTypes insert Sample", "origin": "API_DEFINITION", - "description": " Creates an instant snapshot in the specified zone.", + "description": " inserts a Zonal InstantSnapshotGroup resource", "canonical": true, - "file": "instant_snapshots.insert.js", + "file": "instant_snapshot_groups.insert.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 77, + "end": 81, "type": "FULL" } ], "clientMethod": { "shortName": "Insert", - "fullName": "google.cloud.compute.v1.InstantSnapshots.Insert", + "fullName": "google.cloud.compute.v1.InstantSnapshotGroups.Insert", "async": true, "parameters": [ { - "name": "instant_snapshot_resource", - "type": ".google.cloud.compute.v1.InstantSnapshot" + "name": "instant_snapshot_group_resource", + "type": ".google.cloud.compute.v1.InstantSnapshotGroup" }, { "name": "project", @@ -15063,6 +15179,10 @@ "name": "request_id", "type": "TYPE_STRING" }, + { + "name": "source_consistency_group", + "type": "TYPE_STRING" + }, { "name": "zone", "type": "TYPE_STRING" @@ -15070,26 +15190,26 @@ ], "resultType": ".google.cloud.compute.v1.Operation", "client": { - "shortName": "InstantSnapshotsClient", - "fullName": "google.cloud.compute.v1.InstantSnapshotsClient" + "shortName": "InstantSnapshotGroupsClient", + "fullName": "google.cloud.compute.v1.InstantSnapshotGroupsClient" }, "method": { "shortName": "Insert", - "fullName": "google.cloud.compute.v1.InstantSnapshots.Insert", + "fullName": "google.cloud.compute.v1.InstantSnapshotGroups.Insert", "service": { - "shortName": "InstantSnapshots", - "fullName": "google.cloud.compute.v1.InstantSnapshots" + "shortName": "InstantSnapshotGroups", + "fullName": "google.cloud.compute.v1.InstantSnapshotGroups" } } } }, { - "regionTag": "compute_v1_generated_InstantSnapshots_List_async", + "regionTag": "compute_v1_generated_InstantSnapshotGroups_List_async", "title": "AcceleratorTypes list Sample", "origin": "API_DEFINITION", - "description": " Retrieves the list of InstantSnapshot resources contained within the specified zone.", + "description": " retrieves the list of InstantSnapshotGroup resources contained within the specified zone.", "canonical": true, - "file": "instant_snapshots.list.js", + "file": "instant_snapshot_groups.list.js", "language": "JAVASCRIPT", "segments": [ { @@ -15100,7 +15220,447 @@ ], "clientMethod": { "shortName": "List", - "fullName": "google.cloud.compute.v1.InstantSnapshots.List", + "fullName": "google.cloud.compute.v1.InstantSnapshotGroups.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.v1.ListInstantSnapshotGroups", + "client": { + "shortName": "InstantSnapshotGroupsClient", + "fullName": "google.cloud.compute.v1.InstantSnapshotGroupsClient" + }, + "method": { + "shortName": "List", + "fullName": "google.cloud.compute.v1.InstantSnapshotGroups.List", + "service": { + "shortName": "InstantSnapshotGroups", + "fullName": "google.cloud.compute.v1.InstantSnapshotGroups" + } + } + } + }, + { + "regionTag": "compute_v1_generated_InstantSnapshotGroups_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": "instant_snapshot_groups.set_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.compute.v1.InstantSnapshotGroups.SetIamPolicy", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "zone_set_policy_request_resource", + "type": ".google.cloud.compute.v1.ZoneSetPolicyRequest" + } + ], + "resultType": ".google.cloud.compute.v1.Policy", + "client": { + "shortName": "InstantSnapshotGroupsClient", + "fullName": "google.cloud.compute.v1.InstantSnapshotGroupsClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.compute.v1.InstantSnapshotGroups.SetIamPolicy", + "service": { + "shortName": "InstantSnapshotGroups", + "fullName": "google.cloud.compute.v1.InstantSnapshotGroups" + } + } + } + }, + { + "regionTag": "compute_v1_generated_InstantSnapshotGroups_TestIamPermissions_async", + "title": "AcceleratorTypes testIamPermissions Sample", + "origin": "API_DEFINITION", + "description": " Returns permissions that a caller has on the specified resource.", + "canonical": true, + "file": "instant_snapshot_groups.test_iam_permissions.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1.InstantSnapshotGroups.TestIamPermissions", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "test_permissions_request_resource", + "type": ".google.cloud.compute.v1.TestPermissionsRequest" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", + "client": { + "shortName": "InstantSnapshotGroupsClient", + "fullName": "google.cloud.compute.v1.InstantSnapshotGroupsClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1.InstantSnapshotGroups.TestIamPermissions", + "service": { + "shortName": "InstantSnapshotGroups", + "fullName": "google.cloud.compute.v1.InstantSnapshotGroups" + } + } + } + }, + { + "regionTag": "compute_v1_generated_InstantSnapshots_AggregatedList_async", + "title": "AcceleratorTypes aggregatedList Sample", + "origin": "API_DEFINITION", + "description": " Retrieves an aggregated list of instantSnapshots. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", + "canonical": true, + "file": "instant_snapshots.aggregated_list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 155, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1.InstantSnapshots.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.v1.InstantSnapshotAggregatedList", + "client": { + "shortName": "InstantSnapshotsClient", + "fullName": "google.cloud.compute.v1.InstantSnapshotsClient" + }, + "method": { + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1.InstantSnapshots.AggregatedList", + "service": { + "shortName": "InstantSnapshots", + "fullName": "google.cloud.compute.v1.InstantSnapshots" + } + } + } + }, + { + "regionTag": "compute_v1_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, seeDeleting instantSnapshots.", + "canonical": true, + "file": "instant_snapshots.delete.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 77, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1.InstantSnapshots.Delete", + "async": true, + "parameters": [ + { + "name": "instant_snapshot", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "InstantSnapshotsClient", + "fullName": "google.cloud.compute.v1.InstantSnapshotsClient" + }, + "method": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1.InstantSnapshots.Delete", + "service": { + "shortName": "InstantSnapshots", + "fullName": "google.cloud.compute.v1.InstantSnapshots" + } + } + } + }, + { + "regionTag": "compute_v1_generated_InstantSnapshots_Get_async", + "title": "AcceleratorTypes get Sample", + "origin": "API_DEFINITION", + "description": " Returns the specified InstantSnapshot resource in the specified zone.", + "canonical": true, + "file": "instant_snapshots.get.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1.InstantSnapshots.Get", + "async": true, + "parameters": [ + { + "name": "instant_snapshot", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.InstantSnapshot", + "client": { + "shortName": "InstantSnapshotsClient", + "fullName": "google.cloud.compute.v1.InstantSnapshotsClient" + }, + "method": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1.InstantSnapshots.Get", + "service": { + "shortName": "InstantSnapshots", + "fullName": "google.cloud.compute.v1.InstantSnapshots" + } + } + } + }, + { + "regionTag": "compute_v1_generated_InstantSnapshots_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": "instant_snapshots.get_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.compute.v1.InstantSnapshots.GetIamPolicy", + "async": true, + "parameters": [ + { + "name": "options_requested_policy_version", + "type": "TYPE_INT32" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Policy", + "client": { + "shortName": "InstantSnapshotsClient", + "fullName": "google.cloud.compute.v1.InstantSnapshotsClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.compute.v1.InstantSnapshots.GetIamPolicy", + "service": { + "shortName": "InstantSnapshots", + "fullName": "google.cloud.compute.v1.InstantSnapshots" + } + } + } + }, + { + "regionTag": "compute_v1_generated_InstantSnapshots_Insert_async", + "title": "AcceleratorTypes insert Sample", + "origin": "API_DEFINITION", + "description": " Creates an instant snapshot in the specified zone.", + "canonical": true, + "file": "instant_snapshots.insert.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 77, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1.InstantSnapshots.Insert", + "async": true, + "parameters": [ + { + "name": "instant_snapshot_resource", + "type": ".google.cloud.compute.v1.InstantSnapshot" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "InstantSnapshotsClient", + "fullName": "google.cloud.compute.v1.InstantSnapshotsClient" + }, + "method": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1.InstantSnapshots.Insert", + "service": { + "shortName": "InstantSnapshots", + "fullName": "google.cloud.compute.v1.InstantSnapshots" + } + } + } + }, + { + "regionTag": "compute_v1_generated_InstantSnapshots_List_async", + "title": "AcceleratorTypes list Sample", + "origin": "API_DEFINITION", + "description": " Retrieves the list of InstantSnapshot resources contained within the specified zone.", + "canonical": true, + "file": "instant_snapshots.list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 145, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "List", + "fullName": "google.cloud.compute.v1.InstantSnapshots.List", "async": true, "parameters": [ { @@ -26084,27 +26644,27 @@ } }, { - "regionTag": "compute_v1_generated_RegionBackendServices_Delete_async", + "regionTag": "compute_v1_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": 77, + "end": 78, "type": "FULL" } ], "clientMethod": { "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionBackendServices.Delete", + "fullName": "google.cloud.compute.v1.RegionBackendBuckets.Delete", "async": true, "parameters": [ { - "name": "backend_service", + "name": "backend_bucket", "type": "TYPE_STRING" }, { @@ -26122,26 +26682,26 @@ ], "resultType": ".google.cloud.compute.v1.Operation", "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" + "shortName": "RegionBackendBucketsClient", + "fullName": "google.cloud.compute.v1.RegionBackendBucketsClient" }, "method": { "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionBackendServices.Delete", + "fullName": "google.cloud.compute.v1.RegionBackendBuckets.Delete", "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1.RegionBackendServices" + "shortName": "RegionBackendBuckets", + "fullName": "google.cloud.compute.v1.RegionBackendBuckets" } } } }, { - "regionTag": "compute_v1_generated_RegionBackendServices_Get_async", + "regionTag": "compute_v1_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": [ { @@ -26152,11 +26712,11 @@ ], "clientMethod": { "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionBackendServices.Get", + "fullName": "google.cloud.compute.v1.RegionBackendBuckets.Get", "async": true, "parameters": [ { - "name": "backend_service", + "name": "backend_bucket", "type": "TYPE_STRING" }, { @@ -26168,80 +26728,28 @@ "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.compute.v1.BackendService", + "resultType": ".google.cloud.compute.v1.BackendBucket", "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" + "shortName": "RegionBackendBucketsClient", + "fullName": "google.cloud.compute.v1.RegionBackendBucketsClient" }, "method": { "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionBackendServices.Get", + "fullName": "google.cloud.compute.v1.RegionBackendBuckets.Get", "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1.RegionBackendServices" + "shortName": "RegionBackendBuckets", + "fullName": "google.cloud.compute.v1.RegionBackendBuckets" } } } }, { - "regionTag": "compute_v1_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.v1.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.v1.ResourceGroupReference" - } - ], - "resultType": ".google.cloud.compute.v1.BackendServiceGroupHealth", - "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" - }, - "method": { - "shortName": "GetHealth", - "fullName": "google.cloud.compute.v1.RegionBackendServices.GetHealth", - "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1.RegionBackendServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionBackendServices_GetIamPolicy_async", + "regionTag": "compute_v1_generated_RegionBackendBuckets_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", + "file": "region_backend_buckets.get_iam_policy.js", "language": "JAVASCRIPT", "segments": [ { @@ -26252,7 +26760,7 @@ ], "clientMethod": { "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionBackendServices.GetIamPolicy", + "fullName": "google.cloud.compute.v1.RegionBackendBuckets.GetIamPolicy", "async": true, "parameters": [ { @@ -26274,26 +26782,26 @@ ], "resultType": ".google.cloud.compute.v1.Policy", "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" + "shortName": "RegionBackendBucketsClient", + "fullName": "google.cloud.compute.v1.RegionBackendBucketsClient" }, "method": { "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionBackendServices.GetIamPolicy", + "fullName": "google.cloud.compute.v1.RegionBackendBuckets.GetIamPolicy", "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1.RegionBackendServices" + "shortName": "RegionBackendBuckets", + "fullName": "google.cloud.compute.v1.RegionBackendBuckets" } } } }, { - "regionTag": "compute_v1_generated_RegionBackendServices_Insert_async", + "regionTag": "compute_v1_generated_RegionBackendBuckets_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.", + "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.insert.js", + "file": "region_backend_buckets.insert.js", "language": "JAVASCRIPT", "segments": [ { @@ -26304,12 +26812,12 @@ ], "clientMethod": { "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionBackendServices.Insert", + "fullName": "google.cloud.compute.v1.RegionBackendBuckets.Insert", "async": true, "parameters": [ { - "name": "backend_service_resource", - "type": ".google.cloud.compute.v1.BackendService" + "name": "backend_bucket_resource", + "type": ".google.cloud.compute.v1.BackendBucket" }, { "name": "project", @@ -26326,26 +26834,26 @@ ], "resultType": ".google.cloud.compute.v1.Operation", "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" + "shortName": "RegionBackendBucketsClient", + "fullName": "google.cloud.compute.v1.RegionBackendBucketsClient" }, "method": { "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionBackendServices.Insert", + "fullName": "google.cloud.compute.v1.RegionBackendBuckets.Insert", "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1.RegionBackendServices" + "shortName": "RegionBackendBuckets", + "fullName": "google.cloud.compute.v1.RegionBackendBuckets" } } } }, { - "regionTag": "compute_v1_generated_RegionBackendServices_List_async", + "regionTag": "compute_v1_generated_RegionBackendBuckets_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.", + "description": " Retrieves the list of BackendBucket resources available to the specified project in the given region.", "canonical": true, - "file": "region_backend_services.list.js", + "file": "region_backend_buckets.list.js", "language": "JAVASCRIPT", "segments": [ { @@ -26356,7 +26864,7 @@ ], "clientMethod": { "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionBackendServices.List", + "fullName": "google.cloud.compute.v1.RegionBackendBuckets.List", "async": true, "parameters": [ { @@ -26388,28 +26896,28 @@ "type": "TYPE_BOOL" } ], - "resultType": ".google.cloud.compute.v1.BackendServiceList", + "resultType": ".google.cloud.compute.v1.BackendBucketList", "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" + "shortName": "RegionBackendBucketsClient", + "fullName": "google.cloud.compute.v1.RegionBackendBucketsClient" }, "method": { "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionBackendServices.List", + "fullName": "google.cloud.compute.v1.RegionBackendBuckets.List", "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1.RegionBackendServices" + "shortName": "RegionBackendBuckets", + "fullName": "google.cloud.compute.v1.RegionBackendBuckets" } } } }, { - "regionTag": "compute_v1_generated_RegionBackendServices_ListUsable_async", + "regionTag": "compute_v1_generated_RegionBackendBuckets_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.", + "description": " Retrieves a list of all usable backend buckets in the specified project in the given region.", "canonical": true, - "file": "region_backend_services.list_usable.js", + "file": "region_backend_buckets.list_usable.js", "language": "JAVASCRIPT", "segments": [ { @@ -26420,7 +26928,7 @@ ], "clientMethod": { "shortName": "ListUsable", - "fullName": "google.cloud.compute.v1.RegionBackendServices.ListUsable", + "fullName": "google.cloud.compute.v1.RegionBackendBuckets.ListUsable", "async": true, "parameters": [ { @@ -26452,48 +26960,48 @@ "type": "TYPE_BOOL" } ], - "resultType": ".google.cloud.compute.v1.BackendServiceListUsable", + "resultType": ".google.cloud.compute.v1.BackendBucketListUsable", "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" + "shortName": "RegionBackendBucketsClient", + "fullName": "google.cloud.compute.v1.RegionBackendBucketsClient" }, "method": { "shortName": "ListUsable", - "fullName": "google.cloud.compute.v1.RegionBackendServices.ListUsable", + "fullName": "google.cloud.compute.v1.RegionBackendBuckets.ListUsable", "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1.RegionBackendServices" + "shortName": "RegionBackendBuckets", + "fullName": "google.cloud.compute.v1.RegionBackendBuckets" } } } }, { - "regionTag": "compute_v1_generated_RegionBackendServices_Patch_async", + "regionTag": "compute_v1_generated_RegionBackendBuckets_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.", + "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.patch.js", + "file": "region_backend_buckets.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], "clientMethod": { "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionBackendServices.Patch", + "fullName": "google.cloud.compute.v1.RegionBackendBuckets.Patch", "async": true, "parameters": [ { - "name": "backend_service", + "name": "backend_bucket", "type": "TYPE_STRING" }, { - "name": "backend_service_resource", - "type": ".google.cloud.compute.v1.BackendService" + "name": "backend_bucket_resource", + "type": ".google.cloud.compute.v1.BackendBucket" }, { "name": "project", @@ -26510,26 +27018,26 @@ ], "resultType": ".google.cloud.compute.v1.Operation", "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" + "shortName": "RegionBackendBucketsClient", + "fullName": "google.cloud.compute.v1.RegionBackendBucketsClient" }, "method": { "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionBackendServices.Patch", + "fullName": "google.cloud.compute.v1.RegionBackendBuckets.Patch", "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1.RegionBackendServices" + "shortName": "RegionBackendBuckets", + "fullName": "google.cloud.compute.v1.RegionBackendBuckets" } } } }, { - "regionTag": "compute_v1_generated_RegionBackendServices_SetIamPolicy_async", + "regionTag": "compute_v1_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_services.set_iam_policy.js", + "file": "region_backend_buckets.set_iam_policy.js", "language": "JAVASCRIPT", "segments": [ { @@ -26540,7 +27048,7 @@ ], "clientMethod": { "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionBackendServices.SetIamPolicy", + "fullName": "google.cloud.compute.v1.RegionBackendBuckets.SetIamPolicy", "async": true, "parameters": [ { @@ -26562,43 +27070,39 @@ ], "resultType": ".google.cloud.compute.v1.Policy", "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" + "shortName": "RegionBackendBucketsClient", + "fullName": "google.cloud.compute.v1.RegionBackendBucketsClient" }, "method": { "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionBackendServices.SetIamPolicy", + "fullName": "google.cloud.compute.v1.RegionBackendBuckets.SetIamPolicy", "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1.RegionBackendServices" + "shortName": "RegionBackendBuckets", + "fullName": "google.cloud.compute.v1.RegionBackendBuckets" } } } }, { - "regionTag": "compute_v1_generated_RegionBackendServices_SetSecurityPolicy_async", - "title": "AcceleratorTypes setSecurityPolicy Sample", + "regionTag": "compute_v1_generated_RegionBackendBuckets_TestIamPermissions_async", + "title": "AcceleratorTypes testIamPermissions Sample", "origin": "API_DEFINITION", - "description": " Sets the Google Cloud Armor security policy for the specified backend service. For more information, seeGoogle Cloud Armor Overview", + "description": " Returns permissions that a caller has on the specified resource.", "canonical": true, - "file": "region_backend_services.set_security_policy.js", + "file": "region_backend_buckets.test_iam_permissions.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 83, + "end": 68, "type": "FULL" } ], "clientMethod": { - "shortName": "SetSecurityPolicy", - "fullName": "google.cloud.compute.v1.RegionBackendServices.SetSecurityPolicy", + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionBackendBuckets.TestIamPermissions", "async": true, "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, { "name": "project", "type": "TYPE_STRING" @@ -26608,74 +27112,74 @@ "type": "TYPE_STRING" }, { - "name": "request_id", + "name": "resource", "type": "TYPE_STRING" }, { - "name": "security_policy_reference_resource", - "type": ".google.cloud.compute.v1.SecurityPolicyReference" + "name": "test_permissions_request_resource", + "type": ".google.cloud.compute.v1.TestPermissionsRequest" } ], - "resultType": ".google.cloud.compute.v1.Operation", + "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" + "shortName": "RegionBackendBucketsClient", + "fullName": "google.cloud.compute.v1.RegionBackendBucketsClient" }, "method": { - "shortName": "SetSecurityPolicy", - "fullName": "google.cloud.compute.v1.RegionBackendServices.SetSecurityPolicy", + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionBackendBuckets.TestIamPermissions", "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1.RegionBackendServices" + "shortName": "RegionBackendBuckets", + "fullName": "google.cloud.compute.v1.RegionBackendBuckets" } } } }, { - "regionTag": "compute_v1_generated_RegionBackendServices_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", + "regionTag": "compute_v1_generated_RegionBackendServices_Delete_async", + "title": "AcceleratorTypes delete Sample", "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", + "description": " Deletes the specified regional BackendService resource.", "canonical": true, - "file": "region_backend_services.test_iam_permissions.js", + "file": "region_backend_services.delete.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 68, + "end": 77, "type": "FULL" } ], "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionBackendServices.TestIamPermissions", + "shortName": "Delete", + "fullName": "google.cloud.compute.v1.RegionBackendServices.Delete", "async": true, "parameters": [ { - "name": "project", + "name": "backend_service", "type": "TYPE_STRING" }, { - "name": "region", + "name": "project", "type": "TYPE_STRING" }, { - "name": "resource", + "name": "region", "type": "TYPE_STRING" }, { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" + "name": "request_id", + "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", + "resultType": ".google.cloud.compute.v1.Operation", "client": { "shortName": "RegionBackendServicesClient", "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" }, "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionBackendServices.TestIamPermissions", + "shortName": "Delete", + "fullName": "google.cloud.compute.v1.RegionBackendServices.Delete", "service": { "shortName": "RegionBackendServices", "fullName": "google.cloud.compute.v1.RegionBackendServices" @@ -26684,33 +27188,29 @@ } }, { - "regionTag": "compute_v1_generated_RegionBackendServices_Update_async", - "title": "AcceleratorTypes update Sample", + "regionTag": "compute_v1_generated_RegionBackendServices_Get_async", + "title": "AcceleratorTypes get 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": " Returns the specified regional BackendService resource.", "canonical": true, - "file": "region_backend_services.update.js", + "file": "region_backend_services.get.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 82, + "end": 63, "type": "FULL" } ], "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.RegionBackendServices.Update", + "shortName": "Get", + "fullName": "google.cloud.compute.v1.RegionBackendServices.Get", "async": true, "parameters": [ { "name": "backend_service", "type": "TYPE_STRING" }, - { - "name": "backend_service_resource", - "type": ".google.cloud.compute.v1.BackendService" - }, { "name": "project", "type": "TYPE_STRING" @@ -26718,20 +27218,16 @@ { "name": "region", "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.compute.v1.Operation", + "resultType": ".google.cloud.compute.v1.BackendService", "client": { "shortName": "RegionBackendServicesClient", "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" }, "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.RegionBackendServices.Update", + "shortName": "Get", + "fullName": "google.cloud.compute.v1.RegionBackendServices.Get", "service": { "shortName": "RegionBackendServices", "fullName": "google.cloud.compute.v1.RegionBackendServices" @@ -26740,43 +27236,27 @@ } }, { - "regionTag": "compute_v1_generated_RegionCommitments_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", + "regionTag": "compute_v1_generated_RegionBackendServices_GetHealth_async", + "title": "AcceleratorTypes getHealth 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`.", + "description": " Gets the most recent health check results for this regional BackendService.", "canonical": true, - "file": "region_commitments.aggregated_list.js", + "file": "region_backend_services.get_health.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 155, + "end": 67, "type": "FULL" } ], "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.RegionCommitments.AggregatedList", + "shortName": "GetHealth", + "fullName": "google.cloud.compute.v1.RegionBackendServices.GetHealth", "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", + "name": "backend_service", "type": "TYPE_STRING" }, { @@ -26784,52 +27264,52 @@ "type": "TYPE_STRING" }, { - "name": "return_partial_success", - "type": "TYPE_BOOL" + "name": "region", + "type": "TYPE_STRING" }, { - "name": "service_project_number", - "type": "TYPE_INT64" + "name": "resource_group_reference_resource", + "type": ".google.cloud.compute.v1.ResourceGroupReference" } ], - "resultType": ".google.cloud.compute.v1.CommitmentAggregatedList", + "resultType": ".google.cloud.compute.v1.BackendServiceGroupHealth", "client": { - "shortName": "RegionCommitmentsClient", - "fullName": "google.cloud.compute.v1.RegionCommitmentsClient" + "shortName": "RegionBackendServicesClient", + "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" }, "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.RegionCommitments.AggregatedList", + "shortName": "GetHealth", + "fullName": "google.cloud.compute.v1.RegionBackendServices.GetHealth", "service": { - "shortName": "RegionCommitments", - "fullName": "google.cloud.compute.v1.RegionCommitments" + "shortName": "RegionBackendServices", + "fullName": "google.cloud.compute.v1.RegionBackendServices" } } } }, { - "regionTag": "compute_v1_generated_RegionCommitments_Get_async", - "title": "AcceleratorTypes get Sample", + "regionTag": "compute_v1_generated_RegionBackendServices_GetIamPolicy_async", + "title": "AcceleratorTypes getIamPolicy Sample", "origin": "API_DEFINITION", - "description": " Returns the specified commitment resource.", + "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", "canonical": true, - "file": "region_commitments.get.js", + "file": "region_backend_services.get_iam_policy.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 63, + "end": 67, "type": "FULL" } ], "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionCommitments.Get", + "shortName": "GetIamPolicy", + "fullName": "google.cloud.compute.v1.RegionBackendServices.GetIamPolicy", "async": true, "parameters": [ { - "name": "commitment", - "type": "TYPE_STRING" + "name": "options_requested_policy_version", + "type": "TYPE_INT32" }, { "name": "project", @@ -26838,30 +27318,34 @@ { "name": "region", "type": "TYPE_STRING" + }, + { + "name": "resource", + "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.compute.v1.Commitment", + "resultType": ".google.cloud.compute.v1.Policy", "client": { - "shortName": "RegionCommitmentsClient", - "fullName": "google.cloud.compute.v1.RegionCommitmentsClient" + "shortName": "RegionBackendServicesClient", + "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" }, "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionCommitments.Get", + "shortName": "GetIamPolicy", + "fullName": "google.cloud.compute.v1.RegionBackendServices.GetIamPolicy", "service": { - "shortName": "RegionCommitments", - "fullName": "google.cloud.compute.v1.RegionCommitments" + "shortName": "RegionBackendServices", + "fullName": "google.cloud.compute.v1.RegionBackendServices" } } } }, { - "regionTag": "compute_v1_generated_RegionCommitments_Insert_async", + "regionTag": "compute_v1_generated_RegionBackendServices_Insert_async", "title": "AcceleratorTypes insert Sample", "origin": "API_DEFINITION", - "description": " Creates a commitment in the specified project using the data included in the request.", + "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_commitments.insert.js", + "file": "region_backend_services.insert.js", "language": "JAVASCRIPT", "segments": [ { @@ -26872,12 +27356,12 @@ ], "clientMethod": { "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionCommitments.Insert", + "fullName": "google.cloud.compute.v1.RegionBackendServices.Insert", "async": true, "parameters": [ { - "name": "commitment_resource", - "type": ".google.cloud.compute.v1.Commitment" + "name": "backend_service_resource", + "type": ".google.cloud.compute.v1.BackendService" }, { "name": "project", @@ -26894,26 +27378,26 @@ ], "resultType": ".google.cloud.compute.v1.Operation", "client": { - "shortName": "RegionCommitmentsClient", - "fullName": "google.cloud.compute.v1.RegionCommitmentsClient" + "shortName": "RegionBackendServicesClient", + "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" }, "method": { "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionCommitments.Insert", + "fullName": "google.cloud.compute.v1.RegionBackendServices.Insert", "service": { - "shortName": "RegionCommitments", - "fullName": "google.cloud.compute.v1.RegionCommitments" + "shortName": "RegionBackendServices", + "fullName": "google.cloud.compute.v1.RegionBackendServices" } } } }, { - "regionTag": "compute_v1_generated_RegionCommitments_List_async", + "regionTag": "compute_v1_generated_RegionBackendServices_List_async", "title": "AcceleratorTypes list Sample", "origin": "API_DEFINITION", - "description": " Retrieves a list of commitments contained within the specified region.", + "description": " Retrieves the list of regional BackendService resources available to the specified project in the given region.", "canonical": true, - "file": "region_commitments.list.js", + "file": "region_backend_services.list.js", "language": "JAVASCRIPT", "segments": [ { @@ -26924,7 +27408,575 @@ ], "clientMethod": { "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionCommitments.List", + "fullName": "google.cloud.compute.v1.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.v1.BackendServiceList", + "client": { + "shortName": "RegionBackendServicesClient", + "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" + }, + "method": { + "shortName": "List", + "fullName": "google.cloud.compute.v1.RegionBackendServices.List", + "service": { + "shortName": "RegionBackendServices", + "fullName": "google.cloud.compute.v1.RegionBackendServices" + } + } + } + }, + { + "regionTag": "compute_v1_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.v1.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.v1.BackendServiceListUsable", + "client": { + "shortName": "RegionBackendServicesClient", + "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" + }, + "method": { + "shortName": "ListUsable", + "fullName": "google.cloud.compute.v1.RegionBackendServices.ListUsable", + "service": { + "shortName": "RegionBackendServices", + "fullName": "google.cloud.compute.v1.RegionBackendServices" + } + } + } + }, + { + "regionTag": "compute_v1_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.v1.RegionBackendServices.Patch", + "async": true, + "parameters": [ + { + "name": "backend_service", + "type": "TYPE_STRING" + }, + { + "name": "backend_service_resource", + "type": ".google.cloud.compute.v1.BackendService" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "RegionBackendServicesClient", + "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" + }, + "method": { + "shortName": "Patch", + "fullName": "google.cloud.compute.v1.RegionBackendServices.Patch", + "service": { + "shortName": "RegionBackendServices", + "fullName": "google.cloud.compute.v1.RegionBackendServices" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionBackendServices_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_services.set_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.compute.v1.RegionBackendServices.SetIamPolicy", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "region_set_policy_request_resource", + "type": ".google.cloud.compute.v1.RegionSetPolicyRequest" + }, + { + "name": "resource", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Policy", + "client": { + "shortName": "RegionBackendServicesClient", + "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.compute.v1.RegionBackendServices.SetIamPolicy", + "service": { + "shortName": "RegionBackendServices", + "fullName": "google.cloud.compute.v1.RegionBackendServices" + } + } + } + }, + { + "regionTag": "compute_v1_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, seeGoogle Cloud Armor Overview", + "canonical": true, + "file": "region_backend_services.set_security_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 83, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetSecurityPolicy", + "fullName": "google.cloud.compute.v1.RegionBackendServices.SetSecurityPolicy", + "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" + }, + { + "name": "security_policy_reference_resource", + "type": ".google.cloud.compute.v1.SecurityPolicyReference" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "RegionBackendServicesClient", + "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" + }, + "method": { + "shortName": "SetSecurityPolicy", + "fullName": "google.cloud.compute.v1.RegionBackendServices.SetSecurityPolicy", + "service": { + "shortName": "RegionBackendServices", + "fullName": "google.cloud.compute.v1.RegionBackendServices" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionBackendServices_TestIamPermissions_async", + "title": "AcceleratorTypes testIamPermissions Sample", + "origin": "API_DEFINITION", + "description": " Returns permissions that a caller has on the specified resource.", + "canonical": true, + "file": "region_backend_services.test_iam_permissions.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionBackendServices.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.v1.TestPermissionsRequest" + } + ], + "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", + "client": { + "shortName": "RegionBackendServicesClient", + "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionBackendServices.TestIamPermissions", + "service": { + "shortName": "RegionBackendServices", + "fullName": "google.cloud.compute.v1.RegionBackendServices" + } + } + } + }, + { + "regionTag": "compute_v1_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.v1.RegionBackendServices.Update", + "async": true, + "parameters": [ + { + "name": "backend_service", + "type": "TYPE_STRING" + }, + { + "name": "backend_service_resource", + "type": ".google.cloud.compute.v1.BackendService" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "RegionBackendServicesClient", + "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" + }, + "method": { + "shortName": "Update", + "fullName": "google.cloud.compute.v1.RegionBackendServices.Update", + "service": { + "shortName": "RegionBackendServices", + "fullName": "google.cloud.compute.v1.RegionBackendServices" + } + } + } + }, + { + "regionTag": "compute_v1_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.v1.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.v1.CommitmentAggregatedList", + "client": { + "shortName": "RegionCommitmentsClient", + "fullName": "google.cloud.compute.v1.RegionCommitmentsClient" + }, + "method": { + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1.RegionCommitments.AggregatedList", + "service": { + "shortName": "RegionCommitments", + "fullName": "google.cloud.compute.v1.RegionCommitments" + } + } + } + }, + { + "regionTag": "compute_v1_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.v1.RegionCommitments.Get", + "async": true, + "parameters": [ + { + "name": "commitment", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Commitment", + "client": { + "shortName": "RegionCommitmentsClient", + "fullName": "google.cloud.compute.v1.RegionCommitmentsClient" + }, + "method": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1.RegionCommitments.Get", + "service": { + "shortName": "RegionCommitments", + "fullName": "google.cloud.compute.v1.RegionCommitments" + } + } + } + }, + { + "regionTag": "compute_v1_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.v1.RegionCommitments.Insert", + "async": true, + "parameters": [ + { + "name": "commitment_resource", + "type": ".google.cloud.compute.v1.Commitment" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "RegionCommitmentsClient", + "fullName": "google.cloud.compute.v1.RegionCommitmentsClient" + }, + "method": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1.RegionCommitments.Insert", + "service": { + "shortName": "RegionCommitments", + "fullName": "google.cloud.compute.v1.RegionCommitments" + } + } + } + }, + { + "regionTag": "compute_v1_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.v1.RegionCommitments.List", "async": true, "parameters": [ { @@ -27203,6 +28255,54 @@ } } }, + { + "regionTag": "compute_v1_generated_RegionCompositeHealthChecks_GetHealth_async", + "title": "AcceleratorTypes getHealth Sample", + "origin": "API_DEFINITION", + "description": " Gets the most recent health check results for this regional CompositeHealthCheck.", + "canonical": true, + "file": "region_composite_health_checks.get_health.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetHealth", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.GetHealth", + "async": true, + "parameters": [ + { + "name": "composite_health_check", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.CompositeHealthCheckHealth", + "client": { + "shortName": "RegionCompositeHealthChecksClient", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecksClient" + }, + "method": { + "shortName": "GetHealth", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.GetHealth", + "service": { + "shortName": "RegionCompositeHealthChecks", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks" + } + } + } + }, { "regionTag": "compute_v1_generated_RegionCompositeHealthChecks_Insert_async", "title": "AcceleratorTypes insert Sample", @@ -28359,6 +29459,62 @@ } } }, + { + "regionTag": "compute_v1_generated_RegionDisks_UpdateKmsKey_async", + "title": "AcceleratorTypes updateKmsKey Sample", + "origin": "API_DEFINITION", + "description": " Rotates the customer-managed encryption key to the latest version for the specified persistent disk.", + "canonical": true, + "file": "region_disks.update_kms_key.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 82, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateKmsKey", + "fullName": "google.cloud.compute.v1.RegionDisks.UpdateKmsKey", + "async": true, + "parameters": [ + { + "name": "disk", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "region_disk_update_kms_key_request_resource", + "type": ".google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "RegionDisksClient", + "fullName": "google.cloud.compute.v1.RegionDisksClient" + }, + "method": { + "shortName": "UpdateKmsKey", + "fullName": "google.cloud.compute.v1.RegionDisks.UpdateKmsKey", + "service": { + "shortName": "RegionDisks", + "fullName": "google.cloud.compute.v1.RegionDisks" + } + } + } + }, { "regionTag": "compute_v1_generated_RegionDiskTypes_Get_async", "title": "AcceleratorTypes get Sample", @@ -29803,6 +30959,54 @@ } } }, + { + "regionTag": "compute_v1_generated_RegionHealthSources_GetHealth_async", + "title": "AcceleratorTypes getHealth Sample", + "origin": "API_DEFINITION", + "description": " Gets the most recent health check results for this regional HealthSource.", + "canonical": true, + "file": "region_health_sources.get_health.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetHealth", + "fullName": "google.cloud.compute.v1.RegionHealthSources.GetHealth", + "async": true, + "parameters": [ + { + "name": "health_source", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.HealthSourceHealth", + "client": { + "shortName": "RegionHealthSourcesClient", + "fullName": "google.cloud.compute.v1.RegionHealthSourcesClient" + }, + "method": { + "shortName": "GetHealth", + "fullName": "google.cloud.compute.v1.RegionHealthSources.GetHealth", + "service": { + "shortName": "RegionHealthSources", + "fullName": "google.cloud.compute.v1.RegionHealthSources" + } + } + } + }, { "regionTag": "compute_v1_generated_RegionHealthSources_Insert_async", "title": "AcceleratorTypes insert Sample", @@ -30027,6 +31231,294 @@ } } }, + { + "regionTag": "compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Cancel_async", + "title": "AcceleratorTypes cancel Sample", + "origin": "API_DEFINITION", + "description": " 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.", + "canonical": true, + "file": "region_instance_group_manager_resize_requests.cancel.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 85, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Cancel", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests.Cancel", + "async": true, + "parameters": [ + { + "name": "instance_group_manager", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "resize_request", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "RegionInstanceGroupManagerResizeRequestsClient", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient" + }, + "method": { + "shortName": "Cancel", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests.Cancel", + "service": { + "shortName": "RegionInstanceGroupManagerResizeRequests", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Delete_async", + "title": "AcceleratorTypes delete Sample", + "origin": "API_DEFINITION", + "description": " Deletes the specified, inactive resize request. Requests that are still active cannot be deleted. Deleting request does not delete instances that were provisioned previously.", + "canonical": true, + "file": "region_instance_group_manager_resize_requests.delete.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 85, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests.Delete", + "async": true, + "parameters": [ + { + "name": "instance_group_manager", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "resize_request", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "RegionInstanceGroupManagerResizeRequestsClient", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient" + }, + "method": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests.Delete", + "service": { + "shortName": "RegionInstanceGroupManagerResizeRequests", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Get_async", + "title": "AcceleratorTypes get Sample", + "origin": "API_DEFINITION", + "description": " Returns all of the details about the specified resize request.", + "canonical": true, + "file": "region_instance_group_manager_resize_requests.get.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 71, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests.Get", + "async": true, + "parameters": [ + { + "name": "instance_group_manager", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "resize_request", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.InstanceGroupManagerResizeRequest", + "client": { + "shortName": "RegionInstanceGroupManagerResizeRequestsClient", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient" + }, + "method": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests.Get", + "service": { + "shortName": "RegionInstanceGroupManagerResizeRequests", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Insert_async", + "title": "AcceleratorTypes insert Sample", + "origin": "API_DEFINITION", + "description": " Creates a new Resize Request that starts provisioning VMs immediately or queues VM creation.", + "canonical": true, + "file": "region_instance_group_manager_resize_requests.insert.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 84, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests.Insert", + "async": true, + "parameters": [ + { + "name": "instance_group_manager", + "type": "TYPE_STRING" + }, + { + "name": "instance_group_manager_resize_request_resource", + "type": ".google.cloud.compute.v1.InstanceGroupManagerResizeRequest" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "RegionInstanceGroupManagerResizeRequestsClient", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient" + }, + "method": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests.Insert", + "service": { + "shortName": "RegionInstanceGroupManagerResizeRequests", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionInstanceGroupManagerResizeRequests_List_async", + "title": "AcceleratorTypes list Sample", + "origin": "API_DEFINITION", + "description": " Retrieves a list of Resize Requests that are contained in the managed instance group.", + "canonical": true, + "file": "region_instance_group_manager_resize_requests.list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 151, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "List", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests.List", + "async": true, + "parameters": [ + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "instance_group_manager", + "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.v1.RegionInstanceGroupManagerResizeRequestsListResponse", + "client": { + "shortName": "RegionInstanceGroupManagerResizeRequestsClient", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient" + }, + "method": { + "shortName": "List", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests.List", + "service": { + "shortName": "RegionInstanceGroupManagerResizeRequests", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests" + } + } + } + }, { "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_AbandonInstances_async", "title": "AcceleratorTypes abandonInstances Sample", @@ -31895,6 +33387,382 @@ } } }, + { + "regionTag": "compute_v1_generated_RegionInstantSnapshotGroups_Delete_async", + "title": "AcceleratorTypes delete Sample", + "origin": "API_DEFINITION", + "description": " deletes a Regional InstantSnapshotGroup resource", + "canonical": true, + "file": "region_instant_snapshot_groups.delete.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 77, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups.Delete", + "async": true, + "parameters": [ + { + "name": "instant_snapshot_group", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "RegionInstantSnapshotGroupsClient", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroupsClient" + }, + "method": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups.Delete", + "service": { + "shortName": "RegionInstantSnapshotGroups", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionInstantSnapshotGroups_Get_async", + "title": "AcceleratorTypes get Sample", + "origin": "API_DEFINITION", + "description": " returns the specified InstantSnapshotGroup resource in the specified region.", + "canonical": true, + "file": "region_instant_snapshot_groups.get.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups.Get", + "async": true, + "parameters": [ + { + "name": "instant_snapshot_group", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.InstantSnapshotGroup", + "client": { + "shortName": "RegionInstantSnapshotGroupsClient", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroupsClient" + }, + "method": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups.Get", + "service": { + "shortName": "RegionInstantSnapshotGroups", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionInstantSnapshotGroups_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_instant_snapshot_groups.get_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups.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.v1.Policy", + "client": { + "shortName": "RegionInstantSnapshotGroupsClient", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroupsClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups.GetIamPolicy", + "service": { + "shortName": "RegionInstantSnapshotGroups", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionInstantSnapshotGroups_Insert_async", + "title": "AcceleratorTypes insert Sample", + "origin": "API_DEFINITION", + "description": " creates a Regional InstantSnapshotGroup resource", + "canonical": true, + "file": "region_instant_snapshot_groups.insert.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 81, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups.Insert", + "async": true, + "parameters": [ + { + "name": "instant_snapshot_group_resource", + "type": ".google.cloud.compute.v1.InstantSnapshotGroup" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "source_consistency_group", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "RegionInstantSnapshotGroupsClient", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroupsClient" + }, + "method": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups.Insert", + "service": { + "shortName": "RegionInstantSnapshotGroups", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionInstantSnapshotGroups_List_async", + "title": "AcceleratorTypes list Sample", + "origin": "API_DEFINITION", + "description": " retrieves the list of InstantSnapshotGroup resources contained within the specified region.", + "canonical": true, + "file": "region_instant_snapshot_groups.list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 145, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "List", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups.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.v1.ListInstantSnapshotGroups", + "client": { + "shortName": "RegionInstantSnapshotGroupsClient", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroupsClient" + }, + "method": { + "shortName": "List", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups.List", + "service": { + "shortName": "RegionInstantSnapshotGroups", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionInstantSnapshotGroups_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_instant_snapshot_groups.set_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups.SetIamPolicy", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "region_set_policy_request_resource", + "type": ".google.cloud.compute.v1.RegionSetPolicyRequest" + }, + { + "name": "resource", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Policy", + "client": { + "shortName": "RegionInstantSnapshotGroupsClient", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroupsClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups.SetIamPolicy", + "service": { + "shortName": "RegionInstantSnapshotGroups", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionInstantSnapshotGroups_TestIamPermissions_async", + "title": "AcceleratorTypes testIamPermissions Sample", + "origin": "API_DEFINITION", + "description": " Returns permissions that a caller has on the specified resource.", + "canonical": true, + "file": "region_instant_snapshot_groups.test_iam_permissions.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups.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.v1.TestPermissionsRequest" + } + ], + "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", + "client": { + "shortName": "RegionInstantSnapshotGroupsClient", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroupsClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups.TestIamPermissions", + "service": { + "shortName": "RegionInstantSnapshotGroups", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups" + } + } + } + }, { "regionTag": "compute_v1_generated_RegionInstantSnapshots_Delete_async", "title": "AcceleratorTypes delete Sample", @@ -34859,6 +36727,590 @@ } } }, + { + "regionTag": "compute_v1_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, seeDeleting snapshots.", + "canonical": true, + "file": "region_snapshots.delete.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 77, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1.RegionSnapshots.Delete", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "snapshot", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "RegionSnapshotsClient", + "fullName": "google.cloud.compute.v1.RegionSnapshotsClient" + }, + "method": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1.RegionSnapshots.Delete", + "service": { + "shortName": "RegionSnapshots", + "fullName": "google.cloud.compute.v1.RegionSnapshots" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionSnapshots_Get_async", + "title": "AcceleratorTypes get Sample", + "origin": "API_DEFINITION", + "description": " Returns the specified Snapshot resource.", + "canonical": true, + "file": "region_snapshots.get.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1.RegionSnapshots.Get", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "snapshot", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Snapshot", + "client": { + "shortName": "RegionSnapshotsClient", + "fullName": "google.cloud.compute.v1.RegionSnapshotsClient" + }, + "method": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1.RegionSnapshots.Get", + "service": { + "shortName": "RegionSnapshots", + "fullName": "google.cloud.compute.v1.RegionSnapshots" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionSnapshots_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_snapshots.get_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.compute.v1.RegionSnapshots.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.v1.Policy", + "client": { + "shortName": "RegionSnapshotsClient", + "fullName": "google.cloud.compute.v1.RegionSnapshotsClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.compute.v1.RegionSnapshots.GetIamPolicy", + "service": { + "shortName": "RegionSnapshots", + "fullName": "google.cloud.compute.v1.RegionSnapshots" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionSnapshots_Insert_async", + "title": "AcceleratorTypes insert Sample", + "origin": "API_DEFINITION", + "description": " Creates a snapshot in the specified region using the data included in the request.", + "canonical": true, + "file": "region_snapshots.insert.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 77, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1.RegionSnapshots.Insert", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "snapshot_resource", + "type": ".google.cloud.compute.v1.Snapshot" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "RegionSnapshotsClient", + "fullName": "google.cloud.compute.v1.RegionSnapshotsClient" + }, + "method": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1.RegionSnapshots.Insert", + "service": { + "shortName": "RegionSnapshots", + "fullName": "google.cloud.compute.v1.RegionSnapshots" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionSnapshots_List_async", + "title": "AcceleratorTypes list Sample", + "origin": "API_DEFINITION", + "description": " Retrieves the list of Snapshot resources contained within the specified region.", + "canonical": true, + "file": "region_snapshots.list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 145, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "List", + "fullName": "google.cloud.compute.v1.RegionSnapshots.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.v1.SnapshotList", + "client": { + "shortName": "RegionSnapshotsClient", + "fullName": "google.cloud.compute.v1.RegionSnapshotsClient" + }, + "method": { + "shortName": "List", + "fullName": "google.cloud.compute.v1.RegionSnapshots.List", + "service": { + "shortName": "RegionSnapshots", + "fullName": "google.cloud.compute.v1.RegionSnapshots" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionSnapshots_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_snapshots.set_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.compute.v1.RegionSnapshots.SetIamPolicy", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "region_set_policy_request_resource", + "type": ".google.cloud.compute.v1.RegionSetPolicyRequest" + }, + { + "name": "resource", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Policy", + "client": { + "shortName": "RegionSnapshotsClient", + "fullName": "google.cloud.compute.v1.RegionSnapshotsClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.compute.v1.RegionSnapshots.SetIamPolicy", + "service": { + "shortName": "RegionSnapshots", + "fullName": "google.cloud.compute.v1.RegionSnapshots" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionSnapshots_SetLabels_async", + "title": "AcceleratorTypes setLabels Sample", + "origin": "API_DEFINITION", + "description": " Sets the labels on a regional snapshot. To learn more about labels, read the Labeling Resources documentation.", + "canonical": true, + "file": "region_snapshots.set_labels.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 82, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetLabels", + "fullName": "google.cloud.compute.v1.RegionSnapshots.SetLabels", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "region_set_labels_request_resource", + "type": ".google.cloud.compute.v1.RegionSetLabelsRequest" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "resource", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "RegionSnapshotsClient", + "fullName": "google.cloud.compute.v1.RegionSnapshotsClient" + }, + "method": { + "shortName": "SetLabels", + "fullName": "google.cloud.compute.v1.RegionSnapshots.SetLabels", + "service": { + "shortName": "RegionSnapshots", + "fullName": "google.cloud.compute.v1.RegionSnapshots" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionSnapshots_TestIamPermissions_async", + "title": "AcceleratorTypes testIamPermissions Sample", + "origin": "API_DEFINITION", + "description": " Returns permissions that a caller has on the specified resource.", + "canonical": true, + "file": "region_snapshots.test_iam_permissions.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionSnapshots.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.v1.TestPermissionsRequest" + } + ], + "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", + "client": { + "shortName": "RegionSnapshotsClient", + "fullName": "google.cloud.compute.v1.RegionSnapshotsClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionSnapshots.TestIamPermissions", + "service": { + "shortName": "RegionSnapshots", + "fullName": "google.cloud.compute.v1.RegionSnapshots" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionSnapshots_UpdateKmsKey_async", + "title": "AcceleratorTypes updateKmsKey Sample", + "origin": "API_DEFINITION", + "description": " Rotates the customer-managed encryption key to the latest version for the specified snapshot.", + "canonical": true, + "file": "region_snapshots.update_kms_key.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 82, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateKmsKey", + "fullName": "google.cloud.compute.v1.RegionSnapshots.UpdateKmsKey", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "region_snapshot_update_kms_key_request_resource", + "type": ".google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "snapshot", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "RegionSnapshotsClient", + "fullName": "google.cloud.compute.v1.RegionSnapshotsClient" + }, + "method": { + "shortName": "UpdateKmsKey", + "fullName": "google.cloud.compute.v1.RegionSnapshots.UpdateKmsKey", + "service": { + "shortName": "RegionSnapshots", + "fullName": "google.cloud.compute.v1.RegionSnapshots" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionSnapshotSettings_Get_async", + "title": "AcceleratorTypes get Sample", + "origin": "API_DEFINITION", + "description": " Get region snapshot settings.", + "canonical": true, + "file": "region_snapshot_settings.get.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1.RegionSnapshotSettings.Get", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.SnapshotSettings", + "client": { + "shortName": "RegionSnapshotSettingsClient", + "fullName": "google.cloud.compute.v1.RegionSnapshotSettingsClient" + }, + "method": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1.RegionSnapshotSettings.Get", + "service": { + "shortName": "RegionSnapshotSettings", + "fullName": "google.cloud.compute.v1.RegionSnapshotSettings" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionSnapshotSettings_Patch_async", + "title": "AcceleratorTypes patch Sample", + "origin": "API_DEFINITION", + "description": " Patch region snapshot settings.", + "canonical": true, + "file": "region_snapshot_settings.patch.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 81, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Patch", + "fullName": "google.cloud.compute.v1.RegionSnapshotSettings.Patch", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "snapshot_settings_resource", + "type": ".google.cloud.compute.v1.SnapshotSettings" + }, + { + "name": "update_mask", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "RegionSnapshotSettingsClient", + "fullName": "google.cloud.compute.v1.RegionSnapshotSettingsClient" + }, + "method": { + "shortName": "Patch", + "fullName": "google.cloud.compute.v1.RegionSnapshotSettings.Patch", + "service": { + "shortName": "RegionSnapshotSettings", + "fullName": "google.cloud.compute.v1.RegionSnapshotSettings" + } + } + } + }, { "regionTag": "compute_v1_generated_RegionSslCertificates_Delete_async", "title": "AcceleratorTypes delete Sample", @@ -41683,6 +44135,58 @@ } } }, + { + "regionTag": "compute_v1_generated_Snapshots_UpdateKmsKey_async", + "title": "AcceleratorTypes updateKmsKey Sample", + "origin": "API_DEFINITION", + "description": " Rotates the customer-managed encryption key to the latest version for the specified snapshot.", + "canonical": true, + "file": "snapshots.update_kms_key.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 77, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateKmsKey", + "fullName": "google.cloud.compute.v1.Snapshots.UpdateKmsKey", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "snapshot", + "type": "TYPE_STRING" + }, + { + "name": "snapshot_update_kms_key_request_resource", + "type": ".google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "SnapshotsClient", + "fullName": "google.cloud.compute.v1.SnapshotsClient" + }, + "method": { + "shortName": "UpdateKmsKey", + "fullName": "google.cloud.compute.v1.Snapshots.UpdateKmsKey", + "service": { + "shortName": "Snapshots", + "fullName": "google.cloud.compute.v1.Snapshots" + } + } + } + }, { "regionTag": "compute_v1_generated_SnapshotSettingsService_Get_async", "title": "AcceleratorTypes get Sample", @@ -49346,6 +51850,278 @@ } } } + }, + { + "regionTag": "compute_v1_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.v1.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.v1.Operation", + "client": { + "shortName": "ZoneVmExtensionPoliciesClient", + "fullName": "google.cloud.compute.v1.ZoneVmExtensionPoliciesClient" + }, + "method": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1.ZoneVmExtensionPolicies.Delete", + "service": { + "shortName": "ZoneVmExtensionPolicies", + "fullName": "google.cloud.compute.v1.ZoneVmExtensionPolicies" + } + } + } + }, + { + "regionTag": "compute_v1_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.v1.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.v1.VmExtensionPolicy", + "client": { + "shortName": "ZoneVmExtensionPoliciesClient", + "fullName": "google.cloud.compute.v1.ZoneVmExtensionPoliciesClient" + }, + "method": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1.ZoneVmExtensionPolicies.Get", + "service": { + "shortName": "ZoneVmExtensionPolicies", + "fullName": "google.cloud.compute.v1.ZoneVmExtensionPolicies" + } + } + } + }, + { + "regionTag": "compute_v1_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.v1.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.v1.VmExtensionPolicy" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "ZoneVmExtensionPoliciesClient", + "fullName": "google.cloud.compute.v1.ZoneVmExtensionPoliciesClient" + }, + "method": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1.ZoneVmExtensionPolicies.Insert", + "service": { + "shortName": "ZoneVmExtensionPolicies", + "fullName": "google.cloud.compute.v1.ZoneVmExtensionPolicies" + } + } + } + }, + { + "regionTag": "compute_v1_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.v1.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.v1.VmExtensionPolicyList", + "client": { + "shortName": "ZoneVmExtensionPoliciesClient", + "fullName": "google.cloud.compute.v1.ZoneVmExtensionPoliciesClient" + }, + "method": { + "shortName": "List", + "fullName": "google.cloud.compute.v1.ZoneVmExtensionPolicies.List", + "service": { + "shortName": "ZoneVmExtensionPolicies", + "fullName": "google.cloud.compute.v1.ZoneVmExtensionPolicies" + } + } + } + }, + { + "regionTag": "compute_v1_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.v1.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.v1.VmExtensionPolicy" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "ZoneVmExtensionPoliciesClient", + "fullName": "google.cloud.compute.v1.ZoneVmExtensionPoliciesClient" + }, + "method": { + "shortName": "Update", + "fullName": "google.cloud.compute.v1.ZoneVmExtensionPolicies.Update", + "service": { + "shortName": "ZoneVmExtensionPolicies", + "fullName": "google.cloud.compute.v1.ZoneVmExtensionPolicies" + } + } + } } ] } diff --git a/packages/google-cloud-compute/samples/generated/v1/zone_vm_extension_policies.delete.js b/packages/google-cloud-compute/samples/generated/v1/zone_vm_extension_policies.delete.js new file mode 100644 index 000000000000..13816583cfee --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/zone_vm_extension_policies.delete.js @@ -0,0 +1,85 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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_v1_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').v1; + + // 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_v1_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/v1/zone_vm_extension_policies.get.js b/packages/google-cloud-compute/samples/generated/v1/zone_vm_extension_policies.get.js new file mode 100644 index 000000000000..1eb341e80bf6 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/zone_vm_extension_policies.get.js @@ -0,0 +1,71 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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_v1_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').v1; + + // 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_v1_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/v1/zone_vm_extension_policies.insert.js b/packages/google-cloud-compute/samples/generated/v1/zone_vm_extension_policies.insert.js new file mode 100644 index 000000000000..f9ad98264504 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/zone_vm_extension_policies.insert.js @@ -0,0 +1,85 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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_v1_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').v1; + + // 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_v1_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/v1/zone_vm_extension_policies.list.js b/packages/google-cloud-compute/samples/generated/v1/zone_vm_extension_policies.list.js new file mode 100644 index 000000000000..d123bd0c5f34 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/zone_vm_extension_policies.list.js @@ -0,0 +1,153 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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_v1_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').v1; + + // 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_v1_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/v1/zone_vm_extension_policies.update.js b/packages/google-cloud-compute/samples/generated/v1/zone_vm_extension_policies.update.js new file mode 100644 index 000000000000..812174f272dc --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/zone_vm_extension_policies.update.js @@ -0,0 +1,90 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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_v1_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').v1; + + // 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_v1_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/disks.update_kms_key.js b/packages/google-cloud-compute/samples/generated/v1beta/disks.update_kms_key.js new file mode 100644 index 000000000000..2fbc453054a9 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/disks.update_kms_key.js @@ -0,0 +1,90 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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(disk, diskUpdateKmsKeyRequestResource, project, zone) { + // [START compute_v1beta_generated_Disks_UpdateKmsKey_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 Disk resource, should conform to RFC1035. + */ + // const disk = 'abc123' + /** + * The body resource for this request + */ + // const diskUpdateKmsKeyRequestResource = {} + /** + * 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 name of the zone for this request. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {DisksClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new DisksClient(); + + async function callUpdateKmsKey() { + // Construct request + const request = { + disk, + diskUpdateKmsKeyRequestResource, + project, + zone, + }; + + // Run request + const response = await computeClient.updateKmsKey(request); + console.log(response); + } + + callUpdateKmsKey(); + // [END compute_v1beta_generated_Disks_UpdateKmsKey_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_health.js b/packages/google-cloud-compute/samples/generated/v1beta/region_composite_health_checks.get_health.js new file mode 100644 index 000000000000..ec1bc935743e --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_composite_health_checks.get_health.js @@ -0,0 +1,71 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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_GetHealth_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 get health for. + */ + // const compositeHealthCheck = 'abc123' + /** + * Name of the project scoping 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 callGetHealth() { + // Construct request + const request = { + compositeHealthCheck, + project, + region, + }; + + // Run request + const response = await computeClient.getHealth(request); + console.log(response); + } + + callGetHealth(); + // [END compute_v1beta_generated_RegionCompositeHealthChecks_GetHealth_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_disks.update_kms_key.js b/packages/google-cloud-compute/samples/generated/v1beta/region_disks.update_kms_key.js new file mode 100644 index 000000000000..8da9460bab7d --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_disks.update_kms_key.js @@ -0,0 +1,90 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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(disk, project, region, regionDiskUpdateKmsKeyRequestResource) { + // [START compute_v1beta_generated_RegionDisks_UpdateKmsKey_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 Disk resource, should conform to RFC1035. + */ + // const disk = 'abc123' + /** + * 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 regionDiskUpdateKmsKeyRequestResource = {} + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The 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 {RegionDisksClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionDisksClient(); + + async function callUpdateKmsKey() { + // Construct request + const request = { + disk, + project, + region, + regionDiskUpdateKmsKeyRequestResource, + }; + + // Run request + const response = await computeClient.updateKmsKey(request); + console.log(response); + } + + callUpdateKmsKey(); + // [END compute_v1beta_generated_RegionDisks_UpdateKmsKey_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_sources.get_health.js b/packages/google-cloud-compute/samples/generated/v1beta/region_health_sources.get_health.js new file mode 100644 index 000000000000..7292d7b40b0f --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_health_sources.get_health.js @@ -0,0 +1,71 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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(healthSource, project, region) { + // [START compute_v1beta_generated_RegionHealthSources_GetHealth_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 HealthSource resource to get health for. + */ + // const healthSource = 'abc123' + /** + * Name of the project scoping this request. + */ + // const project = 'my-project' + /** + * Name of the region scoping this request. + */ + // const region = 'us-central1' + + // Imports the Compute library + const {RegionHealthSourcesClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionHealthSourcesClient(); + + async function callGetHealth() { + // Construct request + const request = { + healthSource, + project, + region, + }; + + // Run request + const response = await computeClient.getHealth(request); + console.log(response); + } + + callGetHealth(); + // [END compute_v1beta_generated_RegionHealthSources_GetHealth_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_snapshots.update_kms_key.js b/packages/google-cloud-compute/samples/generated/v1beta/region_snapshots.update_kms_key.js new file mode 100644 index 000000000000..11b52d8558e3 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_snapshots.update_kms_key.js @@ -0,0 +1,90 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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, regionSnapshotUpdateKmsKeyRequestResource, snapshot) { + // [START compute_v1beta_generated_RegionSnapshots_UpdateKmsKey_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 region for this request. + */ + // const region = 'us-central1' + /** + * The body resource for this request + */ + // const regionSnapshotUpdateKmsKeyRequestResource = {} + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The 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 snapshot resource to update. Should conform to RFC1035. + */ + // const snapshot = 'abc123' + + // Imports the Compute library + const {RegionSnapshotsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionSnapshotsClient(); + + async function callUpdateKmsKey() { + // Construct request + const request = { + project, + region, + regionSnapshotUpdateKmsKeyRequestResource, + snapshot, + }; + + // Run request + const response = await computeClient.updateKmsKey(request); + console.log(response); + } + + callUpdateKmsKey(); + // [END compute_v1beta_generated_RegionSnapshots_UpdateKmsKey_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/snapshots.update_kms_key.js b/packages/google-cloud-compute/samples/generated/v1beta/snapshots.update_kms_key.js new file mode 100644 index 000000000000..9c5c81d1524c --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/snapshots.update_kms_key.js @@ -0,0 +1,85 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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, snapshot, snapshotUpdateKmsKeyRequestResource) { + // [START compute_v1beta_generated_Snapshots_UpdateKmsKey_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 snapshot resource to update. Should conform to RFC1035. + */ + // const snapshot = 'abc123' + /** + * The body resource for this request + */ + // const snapshotUpdateKmsKeyRequestResource = {} + + // Imports the Compute library + const {SnapshotsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new SnapshotsClient(); + + async function callUpdateKmsKey() { + // Construct request + const request = { + project, + snapshot, + snapshotUpdateKmsKeyRequestResource, + }; + + // Run request + const response = await computeClient.updateKmsKey(request); + console.log(response); + } + + callUpdateKmsKey(); + // [END compute_v1beta_generated_Snapshots_UpdateKmsKey_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/snippet_metadata_google.cloud.compute.v1beta.json b/packages/google-cloud-compute/samples/generated/v1beta/snippet_metadata_google.cloud.compute.v1beta.json index a5db3edec497..c5799d205b1c 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 @@ -4067,6 +4067,62 @@ } } }, + { + "regionTag": "compute_v1beta_generated_Disks_UpdateKmsKey_async", + "title": "AcceleratorTypes updateKmsKey Sample", + "origin": "API_DEFINITION", + "description": " Rotates the customer-managed encryption key to the latest version for the specified persistent disk.", + "canonical": true, + "file": "disks.update_kms_key.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 82, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateKmsKey", + "fullName": "google.cloud.compute.v1beta.Disks.UpdateKmsKey", + "async": true, + "parameters": [ + { + "name": "disk", + "type": "TYPE_STRING" + }, + { + "name": "disk_update_kms_key_request_resource", + "type": ".google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Operation", + "client": { + "shortName": "DisksClient", + "fullName": "google.cloud.compute.v1beta.DisksClient" + }, + "method": { + "shortName": "UpdateKmsKey", + "fullName": "google.cloud.compute.v1beta.Disks.UpdateKmsKey", + "service": { + "shortName": "Disks", + "fullName": "google.cloud.compute.v1beta.Disks" + } + } + } + }, { "regionTag": "compute_v1beta_generated_DiskSettingsService_Get_async", "title": "AcceleratorTypes get Sample", @@ -29907,6 +29963,54 @@ } } }, + { + "regionTag": "compute_v1beta_generated_RegionCompositeHealthChecks_GetHealth_async", + "title": "AcceleratorTypes getHealth Sample", + "origin": "API_DEFINITION", + "description": " Gets the most recent health check results for this regional CompositeHealthCheck.", + "canonical": true, + "file": "region_composite_health_checks.get_health.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetHealth", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.GetHealth", + "async": true, + "parameters": [ + { + "name": "composite_health_check", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.CompositeHealthCheckHealth", + "client": { + "shortName": "RegionCompositeHealthChecksClient", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecksClient" + }, + "method": { + "shortName": "GetHealth", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.GetHealth", + "service": { + "shortName": "RegionCompositeHealthChecks", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks" + } + } + } + }, { "regionTag": "compute_v1beta_generated_RegionCompositeHealthChecks_Insert_async", "title": "AcceleratorTypes insert Sample", @@ -31063,6 +31167,62 @@ } } }, + { + "regionTag": "compute_v1beta_generated_RegionDisks_UpdateKmsKey_async", + "title": "AcceleratorTypes updateKmsKey Sample", + "origin": "API_DEFINITION", + "description": " Rotates the customer-managed encryption key to the latest version for the specified persistent disk.", + "canonical": true, + "file": "region_disks.update_kms_key.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 82, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateKmsKey", + "fullName": "google.cloud.compute.v1beta.RegionDisks.UpdateKmsKey", + "async": true, + "parameters": [ + { + "name": "disk", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "region_disk_update_kms_key_request_resource", + "type": ".google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Operation", + "client": { + "shortName": "RegionDisksClient", + "fullName": "google.cloud.compute.v1beta.RegionDisksClient" + }, + "method": { + "shortName": "UpdateKmsKey", + "fullName": "google.cloud.compute.v1beta.RegionDisks.UpdateKmsKey", + "service": { + "shortName": "RegionDisks", + "fullName": "google.cloud.compute.v1beta.RegionDisks" + } + } + } + }, { "regionTag": "compute_v1beta_generated_RegionDiskSettings_Get_async", "title": "AcceleratorTypes get Sample", @@ -32607,6 +32767,54 @@ } } }, + { + "regionTag": "compute_v1beta_generated_RegionHealthSources_GetHealth_async", + "title": "AcceleratorTypes getHealth Sample", + "origin": "API_DEFINITION", + "description": " Gets the most recent health check results for this regional HealthSource.", + "canonical": true, + "file": "region_health_sources.get_health.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetHealth", + "fullName": "google.cloud.compute.v1beta.RegionHealthSources.GetHealth", + "async": true, + "parameters": [ + { + "name": "health_source", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.HealthSourceHealth", + "client": { + "shortName": "RegionHealthSourcesClient", + "fullName": "google.cloud.compute.v1beta.RegionHealthSourcesClient" + }, + "method": { + "shortName": "GetHealth", + "fullName": "google.cloud.compute.v1beta.RegionHealthSources.GetHealth", + "service": { + "shortName": "RegionHealthSources", + "fullName": "google.cloud.compute.v1beta.RegionHealthSources" + } + } + } + }, { "regionTag": "compute_v1beta_generated_RegionHealthSources_Insert_async", "title": "AcceleratorTypes insert Sample", @@ -40163,6 +40371,62 @@ } } }, + { + "regionTag": "compute_v1beta_generated_RegionSnapshots_UpdateKmsKey_async", + "title": "AcceleratorTypes updateKmsKey Sample", + "origin": "API_DEFINITION", + "description": " Rotates the customer-managed encryption key to the latest version for the specified snapshot.", + "canonical": true, + "file": "region_snapshots.update_kms_key.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 82, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateKmsKey", + "fullName": "google.cloud.compute.v1beta.RegionSnapshots.UpdateKmsKey", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "region_snapshot_update_kms_key_request_resource", + "type": ".google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "snapshot", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Operation", + "client": { + "shortName": "RegionSnapshotsClient", + "fullName": "google.cloud.compute.v1beta.RegionSnapshotsClient" + }, + "method": { + "shortName": "UpdateKmsKey", + "fullName": "google.cloud.compute.v1beta.RegionSnapshots.UpdateKmsKey", + "service": { + "shortName": "RegionSnapshots", + "fullName": "google.cloud.compute.v1beta.RegionSnapshots" + } + } + } + }, { "regionTag": "compute_v1beta_generated_RegionSnapshotSettings_Get_async", "title": "AcceleratorTypes get Sample", @@ -48659,6 +48923,58 @@ } } }, + { + "regionTag": "compute_v1beta_generated_Snapshots_UpdateKmsKey_async", + "title": "AcceleratorTypes updateKmsKey Sample", + "origin": "API_DEFINITION", + "description": " Rotates the customer-managed encryption key to the latest version for the specified snapshot.", + "canonical": true, + "file": "snapshots.update_kms_key.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 77, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateKmsKey", + "fullName": "google.cloud.compute.v1beta.Snapshots.UpdateKmsKey", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "snapshot", + "type": "TYPE_STRING" + }, + { + "name": "snapshot_update_kms_key_request_resource", + "type": ".google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest" + } + ], + "resultType": ".google.cloud.compute.v1beta.Operation", + "client": { + "shortName": "SnapshotsClient", + "fullName": "google.cloud.compute.v1beta.SnapshotsClient" + }, + "method": { + "shortName": "UpdateKmsKey", + "fullName": "google.cloud.compute.v1beta.Snapshots.UpdateKmsKey", + "service": { + "shortName": "Snapshots", + "fullName": "google.cloud.compute.v1beta.Snapshots" + } + } + } + }, { "regionTag": "compute_v1beta_generated_SnapshotSettingsService_Get_async", "title": "AcceleratorTypes get Sample", diff --git a/packages/google-cloud-compute/src/index.ts b/packages/google-cloud-compute/src/index.ts index dbeb809058e8..04cd81e341b7 100644 --- a/packages/google-cloud-compute/src/index.ts +++ b/packages/google-cloud-compute/src/index.ts @@ -78,6 +78,8 @@ const InstanceSettingsServiceClient = v1.InstanceSettingsServiceClient; type InstanceSettingsServiceClient = v1.InstanceSettingsServiceClient; const InstanceTemplatesClient = v1.InstanceTemplatesClient; type InstanceTemplatesClient = v1.InstanceTemplatesClient; +const InstantSnapshotGroupsClient = v1.InstantSnapshotGroupsClient; +type InstantSnapshotGroupsClient = v1.InstantSnapshotGroupsClient; const InstantSnapshotsClient = v1.InstantSnapshotsClient; type InstantSnapshotsClient = v1.InstantSnapshotsClient; const InterconnectAttachmentGroupsClient = v1.InterconnectAttachmentGroupsClient; @@ -132,6 +134,8 @@ const PublicDelegatedPrefixesClient = v1.PublicDelegatedPrefixesClient; type PublicDelegatedPrefixesClient = v1.PublicDelegatedPrefixesClient; const RegionAutoscalersClient = v1.RegionAutoscalersClient; type RegionAutoscalersClient = v1.RegionAutoscalersClient; +const RegionBackendBucketsClient = v1.RegionBackendBucketsClient; +type RegionBackendBucketsClient = v1.RegionBackendBucketsClient; const RegionBackendServicesClient = v1.RegionBackendServicesClient; type RegionBackendServicesClient = v1.RegionBackendServicesClient; const RegionCommitmentsClient = v1.RegionCommitmentsClient; @@ -150,6 +154,8 @@ const RegionHealthCheckServicesClient = v1.RegionHealthCheckServicesClient; type RegionHealthCheckServicesClient = v1.RegionHealthCheckServicesClient; const RegionHealthSourcesClient = v1.RegionHealthSourcesClient; type RegionHealthSourcesClient = v1.RegionHealthSourcesClient; +const RegionInstanceGroupManagerResizeRequestsClient = v1.RegionInstanceGroupManagerResizeRequestsClient; +type RegionInstanceGroupManagerResizeRequestsClient = v1.RegionInstanceGroupManagerResizeRequestsClient; const RegionInstanceGroupManagersClient = v1.RegionInstanceGroupManagersClient; type RegionInstanceGroupManagersClient = v1.RegionInstanceGroupManagersClient; const RegionInstanceGroupsClient = v1.RegionInstanceGroupsClient; @@ -158,6 +164,8 @@ const RegionInstancesClient = v1.RegionInstancesClient; type RegionInstancesClient = v1.RegionInstancesClient; const RegionInstanceTemplatesClient = v1.RegionInstanceTemplatesClient; type RegionInstanceTemplatesClient = v1.RegionInstanceTemplatesClient; +const RegionInstantSnapshotGroupsClient = v1.RegionInstantSnapshotGroupsClient; +type RegionInstantSnapshotGroupsClient = v1.RegionInstantSnapshotGroupsClient; const RegionInstantSnapshotsClient = v1.RegionInstantSnapshotsClient; type RegionInstantSnapshotsClient = v1.RegionInstantSnapshotsClient; const RegionNetworkEndpointGroupsClient = v1.RegionNetworkEndpointGroupsClient; @@ -172,6 +180,10 @@ const RegionsClient = v1.RegionsClient; type RegionsClient = v1.RegionsClient; const RegionSecurityPoliciesClient = v1.RegionSecurityPoliciesClient; type RegionSecurityPoliciesClient = v1.RegionSecurityPoliciesClient; +const RegionSnapshotsClient = v1.RegionSnapshotsClient; +type RegionSnapshotsClient = v1.RegionSnapshotsClient; +const RegionSnapshotSettingsClient = v1.RegionSnapshotSettingsClient; +type RegionSnapshotSettingsClient = v1.RegionSnapshotSettingsClient; const RegionSslCertificatesClient = v1.RegionSslCertificatesClient; type RegionSslCertificatesClient = v1.RegionSslCertificatesClient; const RegionSslPoliciesClient = v1.RegionSslPoliciesClient; @@ -246,8 +258,10 @@ const ZoneOperationsClient = v1.ZoneOperationsClient; type ZoneOperationsClient = v1.ZoneOperationsClient; const ZonesClient = v1.ZonesClient; type ZonesClient = v1.ZonesClient; +const ZoneVmExtensionPoliciesClient = v1.ZoneVmExtensionPoliciesClient; +type ZoneVmExtensionPoliciesClient = v1.ZoneVmExtensionPoliciesClient; -export {v1small, v1, v1beta, AcceleratorTypesClient, AddressesClient, AdviceClient, AutoscalersClient, BackendBucketsClient, BackendServicesClient, CrossSiteNetworksClient, DisksClient, DiskTypesClient, ExternalVpnGatewaysClient, FirewallPoliciesClient, FirewallsClient, ForwardingRulesClient, FutureReservationsClient, 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, RegionCompositeHealthChecksClient, RegionDisksClient, RegionDiskTypesClient, RegionHealthAggregationPoliciesClient, RegionHealthChecksClient, RegionHealthCheckServicesClient, RegionHealthSourcesClient, RegionInstanceGroupManagersClient, RegionInstanceGroupsClient, RegionInstancesClient, RegionInstanceTemplatesClient, RegionInstantSnapshotsClient, RegionNetworkEndpointGroupsClient, RegionNetworkFirewallPoliciesClient, RegionNotificationEndpointsClient, RegionOperationsClient, RegionsClient, RegionSecurityPoliciesClient, RegionSslCertificatesClient, RegionSslPoliciesClient, RegionTargetHttpProxiesClient, RegionTargetHttpsProxiesClient, RegionTargetTcpProxiesClient, RegionUrlMapsClient, RegionZonesClient, ReservationBlocksClient, ReservationsClient, ReservationSlotsClient, ReservationSubBlocksClient, ResourcePoliciesClient, RoutersClient, RoutesClient, SecurityPoliciesClient, ServiceAttachmentsClient, SnapshotsClient, SnapshotSettingsServiceClient, SslCertificatesClient, SslPoliciesClient, StoragePoolsClient, StoragePoolTypesClient, SubnetworksClient, TargetGrpcProxiesClient, TargetHttpProxiesClient, TargetHttpsProxiesClient, TargetInstancesClient, TargetPoolsClient, TargetSslProxiesClient, TargetTcpProxiesClient, TargetVpnGatewaysClient, UrlMapsClient, VpnGatewaysClient, VpnTunnelsClient, WireGroupsClient, ZoneOperationsClient, ZonesClient}; -export default {v1small, v1, v1beta, AcceleratorTypesClient, AddressesClient, AdviceClient, AutoscalersClient, BackendBucketsClient, BackendServicesClient, CrossSiteNetworksClient, DisksClient, DiskTypesClient, ExternalVpnGatewaysClient, FirewallPoliciesClient, FirewallsClient, ForwardingRulesClient, FutureReservationsClient, 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, RegionCompositeHealthChecksClient, RegionDisksClient, RegionDiskTypesClient, RegionHealthAggregationPoliciesClient, RegionHealthChecksClient, RegionHealthCheckServicesClient, RegionHealthSourcesClient, RegionInstanceGroupManagersClient, RegionInstanceGroupsClient, RegionInstancesClient, RegionInstanceTemplatesClient, RegionInstantSnapshotsClient, RegionNetworkEndpointGroupsClient, RegionNetworkFirewallPoliciesClient, RegionNotificationEndpointsClient, RegionOperationsClient, RegionsClient, RegionSecurityPoliciesClient, RegionSslCertificatesClient, RegionSslPoliciesClient, RegionTargetHttpProxiesClient, RegionTargetHttpsProxiesClient, RegionTargetTcpProxiesClient, RegionUrlMapsClient, RegionZonesClient, ReservationBlocksClient, ReservationsClient, ReservationSlotsClient, ReservationSubBlocksClient, ResourcePoliciesClient, RoutersClient, RoutesClient, SecurityPoliciesClient, ServiceAttachmentsClient, SnapshotsClient, SnapshotSettingsServiceClient, SslCertificatesClient, SslPoliciesClient, StoragePoolsClient, StoragePoolTypesClient, SubnetworksClient, TargetGrpcProxiesClient, TargetHttpProxiesClient, TargetHttpsProxiesClient, TargetInstancesClient, TargetPoolsClient, TargetSslProxiesClient, TargetTcpProxiesClient, TargetVpnGatewaysClient, UrlMapsClient, VpnGatewaysClient, VpnTunnelsClient, WireGroupsClient, ZoneOperationsClient, ZonesClient}; +export {v1small, v1, v1beta, AcceleratorTypesClient, AddressesClient, AdviceClient, AutoscalersClient, BackendBucketsClient, BackendServicesClient, CrossSiteNetworksClient, DisksClient, DiskTypesClient, ExternalVpnGatewaysClient, FirewallPoliciesClient, FirewallsClient, ForwardingRulesClient, FutureReservationsClient, GlobalAddressesClient, GlobalForwardingRulesClient, GlobalNetworkEndpointGroupsClient, GlobalOperationsClient, GlobalOrganizationOperationsClient, GlobalPublicDelegatedPrefixesClient, HealthChecksClient, ImageFamilyViewsClient, ImagesClient, InstanceGroupManagerResizeRequestsClient, InstanceGroupManagersClient, InstanceGroupsClient, InstancesClient, InstanceSettingsServiceClient, InstanceTemplatesClient, InstantSnapshotGroupsClient, 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, RegionBackendBucketsClient, RegionBackendServicesClient, RegionCommitmentsClient, RegionCompositeHealthChecksClient, RegionDisksClient, RegionDiskTypesClient, RegionHealthAggregationPoliciesClient, RegionHealthChecksClient, RegionHealthCheckServicesClient, RegionHealthSourcesClient, RegionInstanceGroupManagerResizeRequestsClient, RegionInstanceGroupManagersClient, RegionInstanceGroupsClient, RegionInstancesClient, RegionInstanceTemplatesClient, RegionInstantSnapshotGroupsClient, RegionInstantSnapshotsClient, RegionNetworkEndpointGroupsClient, RegionNetworkFirewallPoliciesClient, RegionNotificationEndpointsClient, RegionOperationsClient, RegionsClient, RegionSecurityPoliciesClient, RegionSnapshotsClient, RegionSnapshotSettingsClient, RegionSslCertificatesClient, RegionSslPoliciesClient, RegionTargetHttpProxiesClient, RegionTargetHttpsProxiesClient, RegionTargetTcpProxiesClient, RegionUrlMapsClient, RegionZonesClient, ReservationBlocksClient, ReservationsClient, ReservationSlotsClient, ReservationSubBlocksClient, ResourcePoliciesClient, RoutersClient, RoutesClient, SecurityPoliciesClient, ServiceAttachmentsClient, SnapshotsClient, SnapshotSettingsServiceClient, SslCertificatesClient, SslPoliciesClient, StoragePoolsClient, StoragePoolTypesClient, SubnetworksClient, TargetGrpcProxiesClient, TargetHttpProxiesClient, TargetHttpsProxiesClient, TargetInstancesClient, TargetPoolsClient, TargetSslProxiesClient, TargetTcpProxiesClient, TargetVpnGatewaysClient, UrlMapsClient, VpnGatewaysClient, VpnTunnelsClient, WireGroupsClient, ZoneOperationsClient, ZonesClient, ZoneVmExtensionPoliciesClient}; +export default {v1small, v1, v1beta, AcceleratorTypesClient, AddressesClient, AdviceClient, AutoscalersClient, BackendBucketsClient, BackendServicesClient, CrossSiteNetworksClient, DisksClient, DiskTypesClient, ExternalVpnGatewaysClient, FirewallPoliciesClient, FirewallsClient, ForwardingRulesClient, FutureReservationsClient, GlobalAddressesClient, GlobalForwardingRulesClient, GlobalNetworkEndpointGroupsClient, GlobalOperationsClient, GlobalOrganizationOperationsClient, GlobalPublicDelegatedPrefixesClient, HealthChecksClient, ImageFamilyViewsClient, ImagesClient, InstanceGroupManagerResizeRequestsClient, InstanceGroupManagersClient, InstanceGroupsClient, InstancesClient, InstanceSettingsServiceClient, InstanceTemplatesClient, InstantSnapshotGroupsClient, 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, RegionBackendBucketsClient, RegionBackendServicesClient, RegionCommitmentsClient, RegionCompositeHealthChecksClient, RegionDisksClient, RegionDiskTypesClient, RegionHealthAggregationPoliciesClient, RegionHealthChecksClient, RegionHealthCheckServicesClient, RegionHealthSourcesClient, RegionInstanceGroupManagerResizeRequestsClient, RegionInstanceGroupManagersClient, RegionInstanceGroupsClient, RegionInstancesClient, RegionInstanceTemplatesClient, RegionInstantSnapshotGroupsClient, RegionInstantSnapshotsClient, RegionNetworkEndpointGroupsClient, RegionNetworkFirewallPoliciesClient, RegionNotificationEndpointsClient, RegionOperationsClient, RegionsClient, RegionSecurityPoliciesClient, RegionSnapshotsClient, RegionSnapshotSettingsClient, RegionSslCertificatesClient, RegionSslPoliciesClient, RegionTargetHttpProxiesClient, RegionTargetHttpsProxiesClient, RegionTargetTcpProxiesClient, RegionUrlMapsClient, RegionZonesClient, ReservationBlocksClient, ReservationsClient, ReservationSlotsClient, ReservationSubBlocksClient, ResourcePoliciesClient, RoutersClient, RoutesClient, SecurityPoliciesClient, ServiceAttachmentsClient, SnapshotsClient, SnapshotSettingsServiceClient, SslCertificatesClient, SslPoliciesClient, StoragePoolsClient, StoragePoolTypesClient, SubnetworksClient, TargetGrpcProxiesClient, TargetHttpProxiesClient, TargetHttpsProxiesClient, TargetInstancesClient, TargetPoolsClient, TargetSslProxiesClient, TargetTcpProxiesClient, TargetVpnGatewaysClient, UrlMapsClient, VpnGatewaysClient, VpnTunnelsClient, WireGroupsClient, ZoneOperationsClient, ZonesClient, ZoneVmExtensionPoliciesClient}; import * as protos from '../protos/protos'; export {protos}; diff --git a/packages/google-cloud-compute/src/v1/backend_buckets_client.ts b/packages/google-cloud-compute/src/v1/backend_buckets_client.ts index b19a57f2413f..4a052d1d1c99 100644 --- a/packages/google-cloud-compute/src/v1/backend_buckets_client.ts +++ b/packages/google-cloud-compute/src/v1/backend_buckets_client.ts @@ -176,7 +176,11 @@ 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: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'items') }; @@ -223,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', '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<{}>) => { @@ -1548,6 +1552,153 @@ 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.v1.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/v1/backend_buckets.aggregated_list.js + * region_tag:compute_v1_generated_BackendBuckets_AggregatedList_async + */ + aggregatedListAsync( + request?: protos.google.cloud.compute.v1.IAggregatedListBackendBucketsRequest, + options?: CallOptions): + AsyncIterable<[string, protos.google.cloud.compute.v1.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.v1.IBackendBucketsScopedList]>; + } /** * Retrieves the list of BackendBucket resources available to the specified * project. @@ -1992,6 +2143,449 @@ export class BackendBucketsClient { callSettings ) as AsyncIterable; } + /** + * Retrieves a list of all usable backend buckets 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 onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `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 {object} [options] + * Call options. See {@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.v1.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.v1.IListUsableBackendBucketsRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.IBackendBucket[], + protos.google.cloud.compute.v1.IListUsableBackendBucketsRequest|null, + protos.google.cloud.compute.v1.IBackendBucketListUsable + ]>; + listUsable( + request: protos.google.cloud.compute.v1.IListUsableBackendBucketsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListUsableBackendBucketsRequest, + protos.google.cloud.compute.v1.IBackendBucketListUsable|null|undefined, + protos.google.cloud.compute.v1.IBackendBucket>): void; + listUsable( + request: protos.google.cloud.compute.v1.IListUsableBackendBucketsRequest, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListUsableBackendBucketsRequest, + protos.google.cloud.compute.v1.IBackendBucketListUsable|null|undefined, + protos.google.cloud.compute.v1.IBackendBucket>): void; + listUsable( + request?: protos.google.cloud.compute.v1.IListUsableBackendBucketsRequest, + optionsOrCallback?: CallOptions|PaginationCallback< + protos.google.cloud.compute.v1.IListUsableBackendBucketsRequest, + protos.google.cloud.compute.v1.IBackendBucketListUsable|null|undefined, + protos.google.cloud.compute.v1.IBackendBucket>, + callback?: PaginationCallback< + protos.google.cloud.compute.v1.IListUsableBackendBucketsRequest, + protos.google.cloud.compute.v1.IBackendBucketListUsable|null|undefined, + protos.google.cloud.compute.v1.IBackendBucket>): + Promise<[ + protos.google.cloud.compute.v1.IBackendBucket[], + protos.google.cloud.compute.v1.IListUsableBackendBucketsRequest|null, + protos.google.cloud.compute.v1.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 ?? '', + }); + this.initialize().catch(err => {throw err}); + const wrappedCallback: PaginationCallback< + protos.google.cloud.compute.v1.IListUsableBackendBucketsRequest, + protos.google.cloud.compute.v1.IBackendBucketListUsable|null|undefined, + protos.google.cloud.compute.v1.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.v1.IBackendBucket[], + protos.google.cloud.compute.v1.IListUsableBackendBucketsRequest|null, + protos.google.cloud.compute.v1.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 {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an 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.v1.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.v1.IListUsableBackendBucketsRequest, + 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 ?? '', + }); + 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 {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an 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.v1.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/v1/backend_buckets.list_usable.js + * region_tag:compute_v1_generated_BackendBuckets_ListUsable_async + */ + listUsableAsync( + request?: protos.google.cloud.compute.v1.IListUsableBackendBucketsRequest, + 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 ?? '', + }); + 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. diff --git a/packages/google-cloud-compute/src/v1/backend_buckets_client_config.json b/packages/google-cloud-compute/src/v1/backend_buckets_client_config.json index ea98a22f10ac..191f8e629ef7 100644 --- a/packages/google-cloud-compute/src/v1/backend_buckets_client_config.json +++ b/packages/google-cloud-compute/src/v1/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" @@ -48,6 +52,10 @@ "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" diff --git a/packages/google-cloud-compute/src/v1/disks_client.ts b/packages/google-cloud-compute/src/v1/disks_client.ts index 3a219ccb723e..1af9da574000 100644 --- a/packages/google-cloud-compute/src/v1/disks_client.ts +++ b/packages/google-cloud-compute/src/v1/disks_client.ts @@ -225,7 +225,7 @@ export class DisksClient { // Iterate over each of the methods that the service provides // and create an API call method for each. const disksStubMethods = - ['addResourcePolicies', 'aggregatedList', 'bulkInsert', 'bulkSetLabels', 'createSnapshot', 'delete', 'get', 'getIamPolicy', 'insert', 'list', 'removeResourcePolicies', 'resize', 'setIamPolicy', 'setLabels', 'startAsyncReplication', 'stopAsyncReplication', 'stopGroupAsyncReplication', 'testIamPermissions', 'update']; + ['addResourcePolicies', 'aggregatedList', 'bulkInsert', 'bulkSetLabels', 'createSnapshot', 'delete', 'get', 'getIamPolicy', 'insert', 'list', 'removeResourcePolicies', 'resize', 'setIamPolicy', 'setLabels', 'startAsyncReplication', 'stopAsyncReplication', 'stopGroupAsyncReplication', 'testIamPermissions', 'update', 'updateKmsKey']; for (const methodName of disksStubMethods) { const callPromise = this.disksStub.then( stub => (...args: Array<{}>) => { @@ -2313,6 +2313,127 @@ export class DisksClient { throw error; }); } +/** + * Rotates the customer-managed + * encryption key to the latest version for the specified persistent disk. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.disk + * Name of the Disk resource, should conform to RFC1035. + * @param {google.cloud.compute.v1.DiskUpdateKmsKeyRequest} request.diskUpdateKmsKeyRequestResource + * 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). + * @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 + * 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/v1/disks.update_kms_key.js + * region_tag:compute_v1_generated_Disks_UpdateKmsKey_async + */ + updateKmsKey( + request?: protos.google.cloud.compute.v1.IUpdateKmsKeyDiskRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + updateKmsKey( + request: protos.google.cloud.compute.v1.IUpdateKmsKeyDiskRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateKmsKeyDiskRequest|null|undefined, + {}|null|undefined>): void; + updateKmsKey( + request: protos.google.cloud.compute.v1.IUpdateKmsKeyDiskRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateKmsKeyDiskRequest|null|undefined, + {}|null|undefined>): void; + updateKmsKey( + request?: protos.google.cloud.compute.v1.IUpdateKmsKeyDiskRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateKmsKeyDiskRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateKmsKeyDiskRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.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 ?? '', + 'disk': request.disk ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('updateKmsKey request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateKmsKeyDiskRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('updateKmsKey response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.updateKmsKey(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; + }); + } /** diff --git a/packages/google-cloud-compute/src/v1/disks_client_config.json b/packages/google-cloud-compute/src/v1/disks_client_config.json index a0c334b0a1b8..1a386b42858f 100644 --- a/packages/google-cloud-compute/src/v1/disks_client_config.json +++ b/packages/google-cloud-compute/src/v1/disks_client_config.json @@ -95,6 +95,10 @@ "Update": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" + }, + "UpdateKmsKey": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" } } } diff --git a/packages/google-cloud-compute/src/v1/gapic_metadata.json b/packages/google-cloud-compute/src/v1/gapic_metadata.json index 2c8e821c1765..8668b5c72d23 100644 --- a/packages/google-cloud-compute/src/v1/gapic_metadata.json +++ b/packages/google-cloud-compute/src/v1/gapic_metadata.json @@ -345,12 +345,26 @@ "update" ] }, + "AggregatedList": { + "methods": [ + "aggregatedList", + "aggregatedListStream", + "aggregatedListAsync" + ] + }, "List": { "methods": [ "list", "listStream", "listAsync" ] + }, + "ListUsable": { + "methods": [ + "listUsable", + "listUsableStream", + "listUsableAsync" + ] } } }, @@ -412,12 +426,26 @@ "update" ] }, + "AggregatedList": { + "methods": [ + "aggregatedList", + "aggregatedListStream", + "aggregatedListAsync" + ] + }, "List": { "methods": [ "list", "listStream", "listAsync" ] + }, + "ListUsable": { + "methods": [ + "listUsable", + "listUsableStream", + "listUsableAsync" + ] } } } @@ -777,6 +805,11 @@ "update" ] }, + "UpdateKmsKey": { + "methods": [ + "updateKmsKey" + ] + }, "AggregatedList": { "methods": [ "aggregatedList", @@ -881,6 +914,11 @@ "update" ] }, + "UpdateKmsKey": { + "methods": [ + "updateKmsKey" + ] + }, "AggregatedList": { "methods": [ "aggregatedList", @@ -3359,6 +3397,94 @@ } } }, + "InstantSnapshotGroups": { + "clients": { + "grpc": { + "libraryClient": "InstantSnapshotGroupsClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "InstantSnapshotGroupsClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + } + } + }, "InstantSnapshots": { "clients": { "grpc": { @@ -6041,6 +6167,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": { @@ -6270,6 +6508,11 @@ "get" ] }, + "GetHealth": { + "methods": [ + "getHealth" + ] + }, "Insert": { "methods": [ "insert" @@ -6314,6 +6557,11 @@ "get" ] }, + "GetHealth": { + "methods": [ + "getHealth" + ] + }, "Insert": { "methods": [ "insert" @@ -6432,6 +6680,11 @@ "update" ] }, + "UpdateKmsKey": { + "methods": [ + "updateKmsKey" + ] + }, "List": { "methods": [ "list", @@ -6524,6 +6777,11 @@ "update" ] }, + "UpdateKmsKey": { + "methods": [ + "updateKmsKey" + ] + }, "List": { "methods": [ "list", @@ -6860,6 +7118,11 @@ "get" ] }, + "GetHealth": { + "methods": [ + "getHealth" + ] + }, "Insert": { "methods": [ "insert" @@ -6904,6 +7167,11 @@ "get" ] }, + "GetHealth": { + "methods": [ + "getHealth" + ] + }, "Insert": { "methods": [ "insert" @@ -6937,10 +7205,78 @@ } } }, - "RegionInstanceGroupManagers": { + "RegionInstanceGroupManagerResizeRequests": { "clients": { "grpc": { - "libraryClient": "RegionInstanceGroupManagersClient", + "libraryClient": "RegionInstanceGroupManagerResizeRequestsClient", + "rpcs": { + "Cancel": { + "methods": [ + "cancel" + ] + }, + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "RegionInstanceGroupManagerResizeRequestsClient", + "rpcs": { + "Cancel": { + "methods": [ + "cancel" + ] + }, + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + } + } + }, + "RegionInstanceGroupManagers": { + "clients": { + "grpc": { + "libraryClient": "RegionInstanceGroupManagersClient", "rpcs": { "AbandonInstances": { "methods": [ @@ -7351,6 +7687,94 @@ } } }, + "RegionInstantSnapshotGroups": { + "clients": { + "grpc": { + "libraryClient": "RegionInstantSnapshotGroupsClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "RegionInstantSnapshotGroupsClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + } + } + }, "RegionInstantSnapshots": { "clients": { "grpc": { @@ -8025,6 +8449,148 @@ } } }, + "RegionSnapshots": { + "clients": { + "grpc": { + "libraryClient": "RegionSnapshotsClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "SetLabels": { + "methods": [ + "setLabels" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "UpdateKmsKey": { + "methods": [ + "updateKmsKey" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "RegionSnapshotsClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "SetLabels": { + "methods": [ + "setLabels" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "UpdateKmsKey": { + "methods": [ + "updateKmsKey" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + } + } + }, + "RegionSnapshotSettings": { + "clients": { + "grpc": { + "libraryClient": "RegionSnapshotSettingsClient", + "rpcs": { + "Get": { + "methods": [ + "get" + ] + }, + "Patch": { + "methods": [ + "patch" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "RegionSnapshotSettingsClient", + "rpcs": { + "Get": { + "methods": [ + "get" + ] + }, + "Patch": { + "methods": [ + "patch" + ] + } + } + } + } + }, "RegionSslCertificates": { "clients": { "grpc": { @@ -9535,6 +10101,11 @@ "testIamPermissions" ] }, + "UpdateKmsKey": { + "methods": [ + "updateKmsKey" + ] + }, "List": { "methods": [ "list", @@ -9582,6 +10153,11 @@ "testIamPermissions" ] }, + "UpdateKmsKey": { + "methods": [ + "updateKmsKey" + ] + }, "List": { "methods": [ "list", @@ -11422,6 +11998,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/v1/index.ts b/packages/google-cloud-compute/src/v1/index.ts index 25718ec8bce9..a72041164793 100644 --- a/packages/google-cloud-compute/src/v1/index.ts +++ b/packages/google-cloud-compute/src/v1/index.ts @@ -45,6 +45,7 @@ export {InstanceGroupsClient} from './instance_groups_client'; export {InstancesClient} from './instances_client'; export {InstanceSettingsServiceClient} from './instance_settings_service_client'; export {InstanceTemplatesClient} from './instance_templates_client'; +export {InstantSnapshotGroupsClient} from './instant_snapshot_groups_client'; export {InstantSnapshotsClient} from './instant_snapshots_client'; export {InterconnectAttachmentGroupsClient} from './interconnect_attachment_groups_client'; export {InterconnectAttachmentsClient} from './interconnect_attachments_client'; @@ -72,6 +73,7 @@ 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'; @@ -81,10 +83,12 @@ export {RegionHealthAggregationPoliciesClient} from './region_health_aggregation export {RegionHealthChecksClient} from './region_health_checks_client'; export {RegionHealthCheckServicesClient} from './region_health_check_services_client'; export {RegionHealthSourcesClient} from './region_health_sources_client'; +export {RegionInstanceGroupManagerResizeRequestsClient} from './region_instance_group_manager_resize_requests_client'; export {RegionInstanceGroupManagersClient} from './region_instance_group_managers_client'; export {RegionInstanceGroupsClient} from './region_instance_groups_client'; export {RegionInstancesClient} from './region_instances_client'; export {RegionInstanceTemplatesClient} from './region_instance_templates_client'; +export {RegionInstantSnapshotGroupsClient} from './region_instant_snapshot_groups_client'; export {RegionInstantSnapshotsClient} from './region_instant_snapshots_client'; export {RegionNetworkEndpointGroupsClient} from './region_network_endpoint_groups_client'; export {RegionNetworkFirewallPoliciesClient} from './region_network_firewall_policies_client'; @@ -92,6 +96,8 @@ export {RegionNotificationEndpointsClient} from './region_notification_endpoints export {RegionOperationsClient} from './region_operations_client'; export {RegionsClient} from './regions_client'; export {RegionSecurityPoliciesClient} from './region_security_policies_client'; +export {RegionSnapshotsClient} from './region_snapshots_client'; +export {RegionSnapshotSettingsClient} from './region_snapshot_settings_client'; export {RegionSslCertificatesClient} from './region_ssl_certificates_client'; export {RegionSslPoliciesClient} from './region_ssl_policies_client'; export {RegionTargetHttpProxiesClient} from './region_target_http_proxies_client'; @@ -129,3 +135,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/v1/instant_snapshot_groups_client.ts b/packages/google-cloud-compute/src/v1/instant_snapshot_groups_client.ts new file mode 100644 index 000000000000..a1a892338358 --- /dev/null +++ b/packages/google-cloud-compute/src/v1/instant_snapshot_groups_client.ts @@ -0,0 +1,1446 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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/v1/instant_snapshot_groups_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './instant_snapshot_groups_client_config.json'; +const version = require('../../../package.json').version; + +/** + * The InstantSnapshotGroups API. + * @class + * @memberof v1 + */ +export class InstantSnapshotGroupsClient { + 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}; + instantSnapshotGroupsStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of InstantSnapshotGroupsClient. + * + * @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 InstantSnapshotGroupsClient({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 InstantSnapshotGroupsClient; + 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.v1.InstantSnapshotGroups', 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.instantSnapshotGroupsStub) { + return this.instantSnapshotGroupsStub; + } + + // Put together the "service stub" for + // google.cloud.compute.v1.InstantSnapshotGroups. + this.instantSnapshotGroupsStub = this._gaxGrpc.createStub( + this._opts.fallback ? + (this._protos as protobuf.Root).lookupService('google.cloud.compute.v1.InstantSnapshotGroups') : + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.compute.v1.InstantSnapshotGroups, + 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 instantSnapshotGroupsStubMethods = + ['delete', 'get', 'getIamPolicy', 'insert', 'list', 'setIamPolicy', 'testIamPermissions']; + for (const methodName of instantSnapshotGroupsStubMethods) { + const callPromise = this.instantSnapshotGroupsStub.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.instantSnapshotGroupsStub; + } + + /** + * 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 Zonal InstantSnapshotGroup resource + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.instantSnapshotGroup + * Name of the InstantSnapshot resource 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). + * @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 + * 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/v1/instant_snapshot_groups.delete.js + * region_tag:compute_v1_generated_InstantSnapshotGroups_Delete_async + */ + delete( + request?: protos.google.cloud.compute.v1.IDeleteInstantSnapshotGroupRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + delete( + request: protos.google.cloud.compute.v1.IDeleteInstantSnapshotGroupRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + delete( + request: protos.google.cloud.compute.v1.IDeleteInstantSnapshotGroupRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + delete( + request?: protos.google.cloud.compute.v1.IDeleteInstantSnapshotGroupRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.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 ?? '', + 'instant_snapshot_group': request.instantSnapshotGroup ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('delete request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteInstantSnapshotGroupRequest|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 InstantSnapshotGroup resource in the specified zone. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.instantSnapshotGroup + * Name of the InstantSnapshotGroup resource to return. + * @param {string} request.project + * Project ID 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.v1.InstantSnapshotGroup|InstantSnapshotGroup}. + * 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/v1/instant_snapshot_groups.get.js + * region_tag:compute_v1_generated_InstantSnapshotGroups_Get_async + */ + get( + request?: protos.google.cloud.compute.v1.IGetInstantSnapshotGroupRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.IInstantSnapshotGroup, + protos.google.cloud.compute.v1.IGetInstantSnapshotGroupRequest|undefined, {}|undefined + ]>; + get( + request: protos.google.cloud.compute.v1.IGetInstantSnapshotGroupRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IInstantSnapshotGroup, + protos.google.cloud.compute.v1.IGetInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + get( + request: protos.google.cloud.compute.v1.IGetInstantSnapshotGroupRequest, + callback: Callback< + protos.google.cloud.compute.v1.IInstantSnapshotGroup, + protos.google.cloud.compute.v1.IGetInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + get( + request?: protos.google.cloud.compute.v1.IGetInstantSnapshotGroupRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IInstantSnapshotGroup, + protos.google.cloud.compute.v1.IGetInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IInstantSnapshotGroup, + protos.google.cloud.compute.v1.IGetInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1.IInstantSnapshotGroup, + protos.google.cloud.compute.v1.IGetInstantSnapshotGroupRequest|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 ?? '', + 'instant_snapshot_group': request.instantSnapshotGroup ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('get request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.IInstantSnapshotGroup, + protos.google.cloud.compute.v1.IGetInstantSnapshotGroupRequest|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.v1.IInstantSnapshotGroup, + protos.google.cloud.compute.v1.IGetInstantSnapshotGroupRequest|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.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.v1.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/v1/instant_snapshot_groups.get_iam_policy.js + * region_tag:compute_v1_generated_InstantSnapshotGroups_GetIamPolicy_async + */ + getIamPolicy( + request?: protos.google.cloud.compute.v1.IGetIamPolicyInstantSnapshotGroupRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.IGetIamPolicyInstantSnapshotGroupRequest|undefined, {}|undefined + ]>; + getIamPolicy( + request: protos.google.cloud.compute.v1.IGetIamPolicyInstantSnapshotGroupRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.IGetIamPolicyInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + getIamPolicy( + request: protos.google.cloud.compute.v1.IGetIamPolicyInstantSnapshotGroupRequest, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.IGetIamPolicyInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + getIamPolicy( + request?: protos.google.cloud.compute.v1.IGetIamPolicyInstantSnapshotGroupRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.IGetIamPolicyInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.IGetIamPolicyInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.IGetIamPolicyInstantSnapshotGroupRequest|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': request.resource ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('getIamPolicy request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.IGetIamPolicyInstantSnapshotGroupRequest|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.v1.IPolicy, + protos.google.cloud.compute.v1.IGetIamPolicyInstantSnapshotGroupRequest|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; + }); + } +/** + * inserts a Zonal InstantSnapshotGroup resource + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.compute.v1.InstantSnapshotGroup} request.instantSnapshotGroupResource + * 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). + * @param {string} request.sourceConsistencyGroup + * begin_interface: MixerMutationRequestBuilder + * @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/v1/instant_snapshot_groups.insert.js + * region_tag:compute_v1_generated_InstantSnapshotGroups_Insert_async + */ + insert( + request?: protos.google.cloud.compute.v1.IInsertInstantSnapshotGroupRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + insert( + request: protos.google.cloud.compute.v1.IInsertInstantSnapshotGroupRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + insert( + request: protos.google.cloud.compute.v1.IInsertInstantSnapshotGroupRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + insert( + request?: protos.google.cloud.compute.v1.IInsertInstantSnapshotGroupRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.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.v1.IOperation, + protos.google.cloud.compute.v1.IInsertInstantSnapshotGroupRequest|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; + }); + } +/** + * 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.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.v1.ZoneSetPolicyRequest} request.zoneSetPolicyRequestResource + * 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.v1.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/v1/instant_snapshot_groups.set_iam_policy.js + * region_tag:compute_v1_generated_InstantSnapshotGroups_SetIamPolicy_async + */ + setIamPolicy( + request?: protos.google.cloud.compute.v1.ISetIamPolicyInstantSnapshotGroupRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.ISetIamPolicyInstantSnapshotGroupRequest|undefined, {}|undefined + ]>; + setIamPolicy( + request: protos.google.cloud.compute.v1.ISetIamPolicyInstantSnapshotGroupRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.ISetIamPolicyInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + setIamPolicy( + request: protos.google.cloud.compute.v1.ISetIamPolicyInstantSnapshotGroupRequest, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.ISetIamPolicyInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + setIamPolicy( + request?: protos.google.cloud.compute.v1.ISetIamPolicyInstantSnapshotGroupRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.ISetIamPolicyInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.ISetIamPolicyInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.ISetIamPolicyInstantSnapshotGroupRequest|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': request.resource ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('setIamPolicy request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.ISetIamPolicyInstantSnapshotGroupRequest|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.v1.IPolicy, + protos.google.cloud.compute.v1.ISetIamPolicyInstantSnapshotGroupRequest|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.resource + * Name or id of the resource for this request. + * @param {google.cloud.compute.v1.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.v1.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/v1/instant_snapshot_groups.test_iam_permissions.js + * region_tag:compute_v1_generated_InstantSnapshotGroups_TestIamPermissions_async + */ + testIamPermissions( + request?: protos.google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotGroupRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotGroupRequest|undefined, {}|undefined + ]>; + testIamPermissions( + request: protos.google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotGroupRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request: protos.google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotGroupRequest, + callback: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request?: protos.google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotGroupRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotGroupRequest|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': request.resource ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('testIamPermissions request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotGroupRequest|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.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsInstantSnapshotGroupRequest|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 InstantSnapshotGroup 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 onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `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 + * 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 Array of {@link protos.google.cloud.compute.v1.InstantSnapshotGroup|InstantSnapshotGroup}. + * 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.v1.IListInstantSnapshotGroupsRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.IInstantSnapshotGroup[], + protos.google.cloud.compute.v1.IListInstantSnapshotGroupsRequest|null, + protos.google.cloud.compute.v1.IListInstantSnapshotGroups + ]>; + list( + request: protos.google.cloud.compute.v1.IListInstantSnapshotGroupsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListInstantSnapshotGroupsRequest, + protos.google.cloud.compute.v1.IListInstantSnapshotGroups|null|undefined, + protos.google.cloud.compute.v1.IInstantSnapshotGroup>): void; + list( + request: protos.google.cloud.compute.v1.IListInstantSnapshotGroupsRequest, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListInstantSnapshotGroupsRequest, + protos.google.cloud.compute.v1.IListInstantSnapshotGroups|null|undefined, + protos.google.cloud.compute.v1.IInstantSnapshotGroup>): void; + list( + request?: protos.google.cloud.compute.v1.IListInstantSnapshotGroupsRequest, + optionsOrCallback?: CallOptions|PaginationCallback< + protos.google.cloud.compute.v1.IListInstantSnapshotGroupsRequest, + protos.google.cloud.compute.v1.IListInstantSnapshotGroups|null|undefined, + protos.google.cloud.compute.v1.IInstantSnapshotGroup>, + callback?: PaginationCallback< + protos.google.cloud.compute.v1.IListInstantSnapshotGroupsRequest, + protos.google.cloud.compute.v1.IListInstantSnapshotGroups|null|undefined, + protos.google.cloud.compute.v1.IInstantSnapshotGroup>): + Promise<[ + protos.google.cloud.compute.v1.IInstantSnapshotGroup[], + protos.google.cloud.compute.v1.IListInstantSnapshotGroupsRequest|null, + protos.google.cloud.compute.v1.IListInstantSnapshotGroups + ]>|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.v1.IListInstantSnapshotGroupsRequest, + protos.google.cloud.compute.v1.IListInstantSnapshotGroups|null|undefined, + protos.google.cloud.compute.v1.IInstantSnapshotGroup>|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.v1.IInstantSnapshotGroup[], + protos.google.cloud.compute.v1.IListInstantSnapshotGroupsRequest|null, + protos.google.cloud.compute.v1.IListInstantSnapshotGroups + ]) => { + 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 + * 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 {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.compute.v1.InstantSnapshotGroup|InstantSnapshotGroup} 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.v1.IListInstantSnapshotGroupsRequest, + 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 + * 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 {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.v1.InstantSnapshotGroup|InstantSnapshotGroup}. 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/instant_snapshot_groups.list.js + * region_tag:compute_v1_generated_InstantSnapshotGroups_List_async + */ + listAsync( + request?: protos.google.cloud.compute.v1.IListInstantSnapshotGroupsRequest, + 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.instantSnapshotGroupsStub && !this._terminated) { + return this.instantSnapshotGroupsStub.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/v1/instant_snapshot_groups_client_config.json b/packages/google-cloud-compute/src/v1/instant_snapshot_groups_client_config.json new file mode 100644 index 000000000000..dbab17f59740 --- /dev/null +++ b/packages/google-cloud-compute/src/v1/instant_snapshot_groups_client_config.json @@ -0,0 +1,54 @@ +{ + "interfaces": { + "google.cloud.compute.v1.InstantSnapshotGroups": { + "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" + }, + "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/v1/instant_snapshot_groups_proto_list.json b/packages/google-cloud-compute/src/v1/instant_snapshot_groups_proto_list.json new file mode 100644 index 000000000000..4ad01aef24b0 --- /dev/null +++ b/packages/google-cloud-compute/src/v1/instant_snapshot_groups_proto_list.json @@ -0,0 +1,3 @@ +[ + "../../protos/google/cloud/compute/v1/compute.proto" +] diff --git a/packages/google-cloud-compute/src/v1/region_backend_buckets_client.ts b/packages/google-cloud-compute/src/v1/region_backend_buckets_client.ts new file mode 100644 index 000000000000..a09d247ca078 --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_backend_buckets_client.ts @@ -0,0 +1,2028 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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/v1/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 v1 + */ +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.v1.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.v1.RegionBackendBuckets. + this.regionBackendBucketsStub = this._gaxGrpc.createStub( + this._opts.fallback ? + (this._protos as protobuf.Root).lookupService('google.cloud.compute.v1.RegionBackendBuckets') : + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.compute.v1.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 {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/v1/region_backend_buckets.delete.js + * region_tag:compute_v1_generated_RegionBackendBuckets_Delete_async + */ + delete( + request?: protos.google.cloud.compute.v1.IDeleteRegionBackendBucketRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + delete( + request: protos.google.cloud.compute.v1.IDeleteRegionBackendBucketRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): void; + delete( + request: protos.google.cloud.compute.v1.IDeleteRegionBackendBucketRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): void; + delete( + request?: protos.google.cloud.compute.v1.IDeleteRegionBackendBucketRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionBackendBucketRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.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.v1.IOperation, + protos.google.cloud.compute.v1.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.v1.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/v1/region_backend_buckets.get.js + * region_tag:compute_v1_generated_RegionBackendBuckets_Get_async + */ + get( + request?: protos.google.cloud.compute.v1.IGetRegionBackendBucketRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.IBackendBucket, + protos.google.cloud.compute.v1.IGetRegionBackendBucketRequest|undefined, {}|undefined + ]>; + get( + request: protos.google.cloud.compute.v1.IGetRegionBackendBucketRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IBackendBucket, + protos.google.cloud.compute.v1.IGetRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): void; + get( + request: protos.google.cloud.compute.v1.IGetRegionBackendBucketRequest, + callback: Callback< + protos.google.cloud.compute.v1.IBackendBucket, + protos.google.cloud.compute.v1.IGetRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): void; + get( + request?: protos.google.cloud.compute.v1.IGetRegionBackendBucketRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IBackendBucket, + protos.google.cloud.compute.v1.IGetRegionBackendBucketRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IBackendBucket, + protos.google.cloud.compute.v1.IGetRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1.IBackendBucket, + protos.google.cloud.compute.v1.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.v1.IBackendBucket, + protos.google.cloud.compute.v1.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.v1.IBackendBucket, + protos.google.cloud.compute.v1.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.v1.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/v1/region_backend_buckets.get_iam_policy.js + * region_tag:compute_v1_generated_RegionBackendBuckets_GetIamPolicy_async + */ + getIamPolicy( + request?: protos.google.cloud.compute.v1.IGetIamPolicyRegionBackendBucketRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.IGetIamPolicyRegionBackendBucketRequest|undefined, {}|undefined + ]>; + getIamPolicy( + request: protos.google.cloud.compute.v1.IGetIamPolicyRegionBackendBucketRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.IGetIamPolicyRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): void; + getIamPolicy( + request: protos.google.cloud.compute.v1.IGetIamPolicyRegionBackendBucketRequest, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.IGetIamPolicyRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): void; + getIamPolicy( + request?: protos.google.cloud.compute.v1.IGetIamPolicyRegionBackendBucketRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.IGetIamPolicyRegionBackendBucketRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.IGetIamPolicyRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.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.v1.IPolicy, + protos.google.cloud.compute.v1.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.v1.IPolicy, + protos.google.cloud.compute.v1.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.v1.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/v1/region_backend_buckets.insert.js + * region_tag:compute_v1_generated_RegionBackendBuckets_Insert_async + */ + insert( + request?: protos.google.cloud.compute.v1.IInsertRegionBackendBucketRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + insert( + request: protos.google.cloud.compute.v1.IInsertRegionBackendBucketRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): void; + insert( + request: protos.google.cloud.compute.v1.IInsertRegionBackendBucketRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): void; + insert( + request?: protos.google.cloud.compute.v1.IInsertRegionBackendBucketRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionBackendBucketRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.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.v1.IOperation, + protos.google.cloud.compute.v1.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.v1.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/v1/region_backend_buckets.patch.js + * region_tag:compute_v1_generated_RegionBackendBuckets_Patch_async + */ + patch( + request?: protos.google.cloud.compute.v1.IPatchRegionBackendBucketRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + patch( + request: protos.google.cloud.compute.v1.IPatchRegionBackendBucketRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IPatchRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): void; + patch( + request: protos.google.cloud.compute.v1.IPatchRegionBackendBucketRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IPatchRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): void; + patch( + request?: protos.google.cloud.compute.v1.IPatchRegionBackendBucketRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IPatchRegionBackendBucketRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IPatchRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.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.v1.IOperation, + protos.google.cloud.compute.v1.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.v1.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.v1.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/v1/region_backend_buckets.set_iam_policy.js + * region_tag:compute_v1_generated_RegionBackendBuckets_SetIamPolicy_async + */ + setIamPolicy( + request?: protos.google.cloud.compute.v1.ISetIamPolicyRegionBackendBucketRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.ISetIamPolicyRegionBackendBucketRequest|undefined, {}|undefined + ]>; + setIamPolicy( + request: protos.google.cloud.compute.v1.ISetIamPolicyRegionBackendBucketRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.ISetIamPolicyRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): void; + setIamPolicy( + request: protos.google.cloud.compute.v1.ISetIamPolicyRegionBackendBucketRequest, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.ISetIamPolicyRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): void; + setIamPolicy( + request?: protos.google.cloud.compute.v1.ISetIamPolicyRegionBackendBucketRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.ISetIamPolicyRegionBackendBucketRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.ISetIamPolicyRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.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.v1.IPolicy, + protos.google.cloud.compute.v1.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.v1.IPolicy, + protos.google.cloud.compute.v1.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.v1.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.v1.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/v1/region_backend_buckets.test_iam_permissions.js + * region_tag:compute_v1_generated_RegionBackendBuckets_TestIamPermissions_async + */ + testIamPermissions( + request?: protos.google.cloud.compute.v1.ITestIamPermissionsRegionBackendBucketRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionBackendBucketRequest|undefined, {}|undefined + ]>; + testIamPermissions( + request: protos.google.cloud.compute.v1.ITestIamPermissionsRegionBackendBucketRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request: protos.google.cloud.compute.v1.ITestIamPermissionsRegionBackendBucketRequest, + callback: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request?: protos.google.cloud.compute.v1.ITestIamPermissionsRegionBackendBucketRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionBackendBucketRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.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.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.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.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.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.v1.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.v1.IListRegionBackendBucketsRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.IBackendBucket[], + protos.google.cloud.compute.v1.IListRegionBackendBucketsRequest|null, + protos.google.cloud.compute.v1.IBackendBucketList + ]>; + list( + request: protos.google.cloud.compute.v1.IListRegionBackendBucketsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionBackendBucketsRequest, + protos.google.cloud.compute.v1.IBackendBucketList|null|undefined, + protos.google.cloud.compute.v1.IBackendBucket>): void; + list( + request: protos.google.cloud.compute.v1.IListRegionBackendBucketsRequest, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionBackendBucketsRequest, + protos.google.cloud.compute.v1.IBackendBucketList|null|undefined, + protos.google.cloud.compute.v1.IBackendBucket>): void; + list( + request?: protos.google.cloud.compute.v1.IListRegionBackendBucketsRequest, + optionsOrCallback?: CallOptions|PaginationCallback< + protos.google.cloud.compute.v1.IListRegionBackendBucketsRequest, + protos.google.cloud.compute.v1.IBackendBucketList|null|undefined, + protos.google.cloud.compute.v1.IBackendBucket>, + callback?: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionBackendBucketsRequest, + protos.google.cloud.compute.v1.IBackendBucketList|null|undefined, + protos.google.cloud.compute.v1.IBackendBucket>): + Promise<[ + protos.google.cloud.compute.v1.IBackendBucket[], + protos.google.cloud.compute.v1.IListRegionBackendBucketsRequest|null, + protos.google.cloud.compute.v1.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.v1.IListRegionBackendBucketsRequest, + protos.google.cloud.compute.v1.IBackendBucketList|null|undefined, + protos.google.cloud.compute.v1.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.v1.IBackendBucket[], + protos.google.cloud.compute.v1.IListRegionBackendBucketsRequest|null, + protos.google.cloud.compute.v1.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.v1.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.v1.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.v1.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/v1/region_backend_buckets.list.js + * region_tag:compute_v1_generated_RegionBackendBuckets_List_async + */ + listAsync( + request?: protos.google.cloud.compute.v1.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.v1.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.v1.IListUsableRegionBackendBucketsRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.IBackendBucket[], + protos.google.cloud.compute.v1.IListUsableRegionBackendBucketsRequest|null, + protos.google.cloud.compute.v1.IBackendBucketListUsable + ]>; + listUsable( + request: protos.google.cloud.compute.v1.IListUsableRegionBackendBucketsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListUsableRegionBackendBucketsRequest, + protos.google.cloud.compute.v1.IBackendBucketListUsable|null|undefined, + protos.google.cloud.compute.v1.IBackendBucket>): void; + listUsable( + request: protos.google.cloud.compute.v1.IListUsableRegionBackendBucketsRequest, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListUsableRegionBackendBucketsRequest, + protos.google.cloud.compute.v1.IBackendBucketListUsable|null|undefined, + protos.google.cloud.compute.v1.IBackendBucket>): void; + listUsable( + request?: protos.google.cloud.compute.v1.IListUsableRegionBackendBucketsRequest, + optionsOrCallback?: CallOptions|PaginationCallback< + protos.google.cloud.compute.v1.IListUsableRegionBackendBucketsRequest, + protos.google.cloud.compute.v1.IBackendBucketListUsable|null|undefined, + protos.google.cloud.compute.v1.IBackendBucket>, + callback?: PaginationCallback< + protos.google.cloud.compute.v1.IListUsableRegionBackendBucketsRequest, + protos.google.cloud.compute.v1.IBackendBucketListUsable|null|undefined, + protos.google.cloud.compute.v1.IBackendBucket>): + Promise<[ + protos.google.cloud.compute.v1.IBackendBucket[], + protos.google.cloud.compute.v1.IListUsableRegionBackendBucketsRequest|null, + protos.google.cloud.compute.v1.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.v1.IListUsableRegionBackendBucketsRequest, + protos.google.cloud.compute.v1.IBackendBucketListUsable|null|undefined, + protos.google.cloud.compute.v1.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.v1.IBackendBucket[], + protos.google.cloud.compute.v1.IListUsableRegionBackendBucketsRequest|null, + protos.google.cloud.compute.v1.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.v1.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.v1.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.v1.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/v1/region_backend_buckets.list_usable.js + * region_tag:compute_v1_generated_RegionBackendBuckets_ListUsable_async + */ + listUsableAsync( + request?: protos.google.cloud.compute.v1.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/v1/region_backend_buckets_client_config.json b/packages/google-cloud-compute/src/v1/region_backend_buckets_client_config.json new file mode 100644 index 000000000000..f6dcbb26427b --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_backend_buckets_client_config.json @@ -0,0 +1,62 @@ +{ + "interfaces": { + "google.cloud.compute.v1.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/v1/region_backend_buckets_proto_list.json b/packages/google-cloud-compute/src/v1/region_backend_buckets_proto_list.json new file mode 100644 index 000000000000..4ad01aef24b0 --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_backend_buckets_proto_list.json @@ -0,0 +1,3 @@ +[ + "../../protos/google/cloud/compute/v1/compute.proto" +] diff --git a/packages/google-cloud-compute/src/v1/region_composite_health_checks_client.ts b/packages/google-cloud-compute/src/v1/region_composite_health_checks_client.ts index 8aa6a080b03c..a7ada6e3be62 100644 --- a/packages/google-cloud-compute/src/v1/region_composite_health_checks_client.ts +++ b/packages/google-cloud-compute/src/v1/region_composite_health_checks_client.ts @@ -225,7 +225,7 @@ export class RegionCompositeHealthChecksClient { // 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']; + ['aggregatedList', 'delete', 'get', 'getHealth', 'insert', 'list', 'patch', 'testIamPermissions']; for (const methodName of regionCompositeHealthChecksStubMethods) { const callPromise = this.regionCompositeHealthChecksStub.then( stub => (...args: Array<{}>) => { @@ -547,6 +547,107 @@ export class RegionCompositeHealthChecksClient { throw error; }); } +/** + * Gets the most recent health check results for this + * regional CompositeHealthCheck. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.compositeHealthCheck + * Name of the CompositeHealthCheck resource to get health for. + * @param {string} request.project + * Name of the project scoping 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.v1.CompositeHealthCheckHealth|CompositeHealthCheckHealth}. + * 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/v1/region_composite_health_checks.get_health.js + * region_tag:compute_v1_generated_RegionCompositeHealthChecks_GetHealth_async + */ + getHealth( + request?: protos.google.cloud.compute.v1.IGetHealthRegionCompositeHealthCheckRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.ICompositeHealthCheckHealth, + protos.google.cloud.compute.v1.IGetHealthRegionCompositeHealthCheckRequest|undefined, {}|undefined + ]>; + getHealth( + request: protos.google.cloud.compute.v1.IGetHealthRegionCompositeHealthCheckRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.ICompositeHealthCheckHealth, + protos.google.cloud.compute.v1.IGetHealthRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): void; + getHealth( + request: protos.google.cloud.compute.v1.IGetHealthRegionCompositeHealthCheckRequest, + callback: Callback< + protos.google.cloud.compute.v1.ICompositeHealthCheckHealth, + protos.google.cloud.compute.v1.IGetHealthRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): void; + getHealth( + request?: protos.google.cloud.compute.v1.IGetHealthRegionCompositeHealthCheckRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.ICompositeHealthCheckHealth, + protos.google.cloud.compute.v1.IGetHealthRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.ICompositeHealthCheckHealth, + protos.google.cloud.compute.v1.IGetHealthRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1.ICompositeHealthCheckHealth, + protos.google.cloud.compute.v1.IGetHealthRegionCompositeHealthCheckRequest|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('getHealth request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.ICompositeHealthCheckHealth, + protos.google.cloud.compute.v1.IGetHealthRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('getHealth response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.getHealth(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1.ICompositeHealthCheckHealth, + protos.google.cloud.compute.v1.IGetHealthRegionCompositeHealthCheckRequest|undefined, + {}|undefined + ]) => { + this._log.info('getHealth 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. diff --git a/packages/google-cloud-compute/src/v1/region_composite_health_checks_client_config.json b/packages/google-cloud-compute/src/v1/region_composite_health_checks_client_config.json index 70e7a029c37c..ea390c3e406a 100644 --- a/packages/google-cloud-compute/src/v1/region_composite_health_checks_client_config.json +++ b/packages/google-cloud-compute/src/v1/region_composite_health_checks_client_config.json @@ -32,6 +32,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "GetHealth": { + "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/v1/region_disks_client.ts b/packages/google-cloud-compute/src/v1/region_disks_client.ts index 80fa84c0a570..9ea248443bf3 100644 --- a/packages/google-cloud-compute/src/v1/region_disks_client.ts +++ b/packages/google-cloud-compute/src/v1/region_disks_client.ts @@ -223,7 +223,7 @@ export class RegionDisksClient { // Iterate over each of the methods that the service provides // and create an API call method for each. const regionDisksStubMethods = - ['addResourcePolicies', 'bulkInsert', 'createSnapshot', 'delete', 'get', 'getIamPolicy', 'insert', 'list', 'removeResourcePolicies', 'resize', 'setIamPolicy', 'setLabels', 'startAsyncReplication', 'stopAsyncReplication', 'stopGroupAsyncReplication', 'testIamPermissions', 'update']; + ['addResourcePolicies', 'bulkInsert', 'createSnapshot', 'delete', 'get', 'getIamPolicy', 'insert', 'list', 'removeResourcePolicies', 'resize', 'setIamPolicy', 'setLabels', 'startAsyncReplication', 'stopAsyncReplication', 'stopGroupAsyncReplication', 'testIamPermissions', 'update', 'updateKmsKey']; for (const methodName of regionDisksStubMethods) { const callPromise = this.regionDisksStub.then( stub => (...args: Array<{}>) => { @@ -2182,6 +2182,127 @@ export class RegionDisksClient { throw error; }); } +/** + * Rotates the customer-managed + * encryption key to the latest version for the specified persistent disk. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.disk + * Name of the Disk resource, should conform to RFC1035. + * @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.v1.RegionDiskUpdateKmsKeyRequest} request.regionDiskUpdateKmsKeyRequestResource + * 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). + * @param {object} [options] + * Call options. See {@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/v1/region_disks.update_kms_key.js + * region_tag:compute_v1_generated_RegionDisks_UpdateKmsKey_async + */ + updateKmsKey( + request?: protos.google.cloud.compute.v1.IUpdateKmsKeyRegionDiskRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + updateKmsKey( + request: protos.google.cloud.compute.v1.IUpdateKmsKeyRegionDiskRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateKmsKeyRegionDiskRequest|null|undefined, + {}|null|undefined>): void; + updateKmsKey( + request: protos.google.cloud.compute.v1.IUpdateKmsKeyRegionDiskRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateKmsKeyRegionDiskRequest|null|undefined, + {}|null|undefined>): void; + updateKmsKey( + request?: protos.google.cloud.compute.v1.IUpdateKmsKeyRegionDiskRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateKmsKeyRegionDiskRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateKmsKeyRegionDiskRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.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 ?? '', + 'disk': request.disk ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('updateKmsKey request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateKmsKeyRegionDiskRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('updateKmsKey response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.updateKmsKey(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 the list of persistent disks contained within diff --git a/packages/google-cloud-compute/src/v1/region_disks_client_config.json b/packages/google-cloud-compute/src/v1/region_disks_client_config.json index e3a858178af1..057991be1965 100644 --- a/packages/google-cloud-compute/src/v1/region_disks_client_config.json +++ b/packages/google-cloud-compute/src/v1/region_disks_client_config.json @@ -87,6 +87,10 @@ "Update": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" + }, + "UpdateKmsKey": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" } } } diff --git a/packages/google-cloud-compute/src/v1/region_health_sources_client.ts b/packages/google-cloud-compute/src/v1/region_health_sources_client.ts index f9771cc39444..b779cb77d7ae 100644 --- a/packages/google-cloud-compute/src/v1/region_health_sources_client.ts +++ b/packages/google-cloud-compute/src/v1/region_health_sources_client.ts @@ -225,7 +225,7 @@ export class RegionHealthSourcesClient { // Iterate over each of the methods that the service provides // and create an API call method for each. const regionHealthSourcesStubMethods = - ['aggregatedList', 'delete', 'get', 'insert', 'list', 'patch', 'testIamPermissions']; + ['aggregatedList', 'delete', 'get', 'getHealth', 'insert', 'list', 'patch', 'testIamPermissions']; for (const methodName of regionHealthSourcesStubMethods) { const callPromise = this.regionHealthSourcesStub.then( stub => (...args: Array<{}>) => { @@ -547,6 +547,107 @@ export class RegionHealthSourcesClient { throw error; }); } +/** + * Gets the most recent health check results for this + * regional HealthSource. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.healthSource + * Name of the HealthSource resource to get health for. + * @param {string} request.project + * Name of the project scoping 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.v1.HealthSourceHealth|HealthSourceHealth}. + * 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/v1/region_health_sources.get_health.js + * region_tag:compute_v1_generated_RegionHealthSources_GetHealth_async + */ + getHealth( + request?: protos.google.cloud.compute.v1.IGetHealthRegionHealthSourceRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.IHealthSourceHealth, + protos.google.cloud.compute.v1.IGetHealthRegionHealthSourceRequest|undefined, {}|undefined + ]>; + getHealth( + request: protos.google.cloud.compute.v1.IGetHealthRegionHealthSourceRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IHealthSourceHealth, + protos.google.cloud.compute.v1.IGetHealthRegionHealthSourceRequest|null|undefined, + {}|null|undefined>): void; + getHealth( + request: protos.google.cloud.compute.v1.IGetHealthRegionHealthSourceRequest, + callback: Callback< + protos.google.cloud.compute.v1.IHealthSourceHealth, + protos.google.cloud.compute.v1.IGetHealthRegionHealthSourceRequest|null|undefined, + {}|null|undefined>): void; + getHealth( + request?: protos.google.cloud.compute.v1.IGetHealthRegionHealthSourceRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IHealthSourceHealth, + protos.google.cloud.compute.v1.IGetHealthRegionHealthSourceRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IHealthSourceHealth, + protos.google.cloud.compute.v1.IGetHealthRegionHealthSourceRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1.IHealthSourceHealth, + protos.google.cloud.compute.v1.IGetHealthRegionHealthSourceRequest|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_source': request.healthSource ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('getHealth request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.IHealthSourceHealth, + protos.google.cloud.compute.v1.IGetHealthRegionHealthSourceRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('getHealth response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.getHealth(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1.IHealthSourceHealth, + protos.google.cloud.compute.v1.IGetHealthRegionHealthSourceRequest|undefined, + {}|undefined + ]) => { + this._log.info('getHealth 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 HealthSource in the specified project in the given region * using the parameters that are included in the request. diff --git a/packages/google-cloud-compute/src/v1/region_health_sources_client_config.json b/packages/google-cloud-compute/src/v1/region_health_sources_client_config.json index 60c427532375..65521580118f 100644 --- a/packages/google-cloud-compute/src/v1/region_health_sources_client_config.json +++ b/packages/google-cloud-compute/src/v1/region_health_sources_client_config.json @@ -32,6 +32,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "GetHealth": { + "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/v1/region_instance_group_manager_resize_requests_client.ts b/packages/google-cloud-compute/src/v1/region_instance_group_manager_resize_requests_client.ts new file mode 100644 index 000000000000..757abe90a297 --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_instance_group_manager_resize_requests_client.ts @@ -0,0 +1,1295 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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/v1/region_instance_group_manager_resize_requests_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './region_instance_group_manager_resize_requests_client_config.json'; +const version = require('../../../package.json').version; + +/** + * The RegionInstanceGroupManagerResizeRequests API. + * @class + * @memberof v1 + */ +export class RegionInstanceGroupManagerResizeRequestsClient { + 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}; + regionInstanceGroupManagerResizeRequestsStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of RegionInstanceGroupManagerResizeRequestsClient. + * + * @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 RegionInstanceGroupManagerResizeRequestsClient({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 RegionInstanceGroupManagerResizeRequestsClient; + 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.v1.RegionInstanceGroupManagerResizeRequests', 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.regionInstanceGroupManagerResizeRequestsStub) { + return this.regionInstanceGroupManagerResizeRequestsStub; + } + + // Put together the "service stub" for + // google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests. + this.regionInstanceGroupManagerResizeRequestsStub = this._gaxGrpc.createStub( + this._opts.fallback ? + (this._protos as protobuf.Root).lookupService('google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests') : + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests, + 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 regionInstanceGroupManagerResizeRequestsStubMethods = + ['cancel', 'delete', 'get', 'insert', 'list']; + for (const methodName of regionInstanceGroupManagerResizeRequestsStubMethods) { + const callPromise = this.regionInstanceGroupManagerResizeRequestsStub.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.regionInstanceGroupManagerResizeRequestsStub; + } + + /** + * 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 -- + // ------------------- +/** + * 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. + * @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. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate 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. + * @param {object} [options] + * Call options. See {@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/v1/region_instance_group_manager_resize_requests.cancel.js + * region_tag:compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Cancel_async + */ + cancel( + request?: protos.google.cloud.compute.v1.ICancelRegionInstanceGroupManagerResizeRequestRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + cancel( + request: protos.google.cloud.compute.v1.ICancelRegionInstanceGroupManagerResizeRequestRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.ICancelRegionInstanceGroupManagerResizeRequestRequest|null|undefined, + {}|null|undefined>): void; + cancel( + request: protos.google.cloud.compute.v1.ICancelRegionInstanceGroupManagerResizeRequestRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.ICancelRegionInstanceGroupManagerResizeRequestRequest|null|undefined, + {}|null|undefined>): void; + cancel( + request?: protos.google.cloud.compute.v1.ICancelRegionInstanceGroupManagerResizeRequestRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.ICancelRegionInstanceGroupManagerResizeRequestRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.ICancelRegionInstanceGroupManagerResizeRequestRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.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 ?? '', + 'instance_group_manager': request.instanceGroupManager ?? '', + 'resize_request': request.resizeRequest ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('cancel request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.ICancelRegionInstanceGroupManagerResizeRequestRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('cancel response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.cancel(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; + }); + } +/** + * 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. + * @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. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate 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. + * @param {object} [options] + * Call options. See {@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/v1/region_instance_group_manager_resize_requests.delete.js + * region_tag:compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Delete_async + */ + delete( + request?: protos.google.cloud.compute.v1.IDeleteRegionInstanceGroupManagerResizeRequestRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + delete( + request: protos.google.cloud.compute.v1.IDeleteRegionInstanceGroupManagerResizeRequestRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionInstanceGroupManagerResizeRequestRequest|null|undefined, + {}|null|undefined>): void; + delete( + request: protos.google.cloud.compute.v1.IDeleteRegionInstanceGroupManagerResizeRequestRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionInstanceGroupManagerResizeRequestRequest|null|undefined, + {}|null|undefined>): void; + delete( + request?: protos.google.cloud.compute.v1.IDeleteRegionInstanceGroupManagerResizeRequestRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionInstanceGroupManagerResizeRequestRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionInstanceGroupManagerResizeRequestRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.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 ?? '', + 'instance_group_manager': request.instanceGroupManager ?? '', + 'resize_request': request.resizeRequest ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('delete request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionInstanceGroupManagerResizeRequestRequest|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 all of the details about the specified resize request. + * + * @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. + * @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. + * @param {string} request.resizeRequest + * 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. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1.InstanceGroupManagerResizeRequest|InstanceGroupManagerResizeRequest}. + * 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/v1/region_instance_group_manager_resize_requests.get.js + * region_tag:compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Get_async + */ + get( + request?: protos.google.cloud.compute.v1.IGetRegionInstanceGroupManagerResizeRequestRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.IInstanceGroupManagerResizeRequest, + protos.google.cloud.compute.v1.IGetRegionInstanceGroupManagerResizeRequestRequest|undefined, {}|undefined + ]>; + get( + request: protos.google.cloud.compute.v1.IGetRegionInstanceGroupManagerResizeRequestRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IInstanceGroupManagerResizeRequest, + protos.google.cloud.compute.v1.IGetRegionInstanceGroupManagerResizeRequestRequest|null|undefined, + {}|null|undefined>): void; + get( + request: protos.google.cloud.compute.v1.IGetRegionInstanceGroupManagerResizeRequestRequest, + callback: Callback< + protos.google.cloud.compute.v1.IInstanceGroupManagerResizeRequest, + protos.google.cloud.compute.v1.IGetRegionInstanceGroupManagerResizeRequestRequest|null|undefined, + {}|null|undefined>): void; + get( + request?: protos.google.cloud.compute.v1.IGetRegionInstanceGroupManagerResizeRequestRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IInstanceGroupManagerResizeRequest, + protos.google.cloud.compute.v1.IGetRegionInstanceGroupManagerResizeRequestRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IInstanceGroupManagerResizeRequest, + protos.google.cloud.compute.v1.IGetRegionInstanceGroupManagerResizeRequestRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1.IInstanceGroupManagerResizeRequest, + protos.google.cloud.compute.v1.IGetRegionInstanceGroupManagerResizeRequestRequest|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 ?? '', + 'instance_group_manager': request.instanceGroupManager ?? '', + 'resize_request': request.resizeRequest ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('get request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.IInstanceGroupManagerResizeRequest, + protos.google.cloud.compute.v1.IGetRegionInstanceGroupManagerResizeRequestRequest|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.v1.IInstanceGroupManagerResizeRequest, + protos.google.cloud.compute.v1.IGetRegionInstanceGroupManagerResizeRequestRequest|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 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. + * @param {google.cloud.compute.v1.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. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate 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/v1/region_instance_group_manager_resize_requests.insert.js + * region_tag:compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Insert_async + */ + insert( + request?: protos.google.cloud.compute.v1.IInsertRegionInstanceGroupManagerResizeRequestRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + insert( + request: protos.google.cloud.compute.v1.IInsertRegionInstanceGroupManagerResizeRequestRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionInstanceGroupManagerResizeRequestRequest|null|undefined, + {}|null|undefined>): void; + insert( + request: protos.google.cloud.compute.v1.IInsertRegionInstanceGroupManagerResizeRequestRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionInstanceGroupManagerResizeRequestRequest|null|undefined, + {}|null|undefined>): void; + insert( + request?: protos.google.cloud.compute.v1.IInsertRegionInstanceGroupManagerResizeRequestRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionInstanceGroupManagerResizeRequestRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionInstanceGroupManagerResizeRequestRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.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 ?? '', + 'instance_group_manager': request.instanceGroupManager ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('insert request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionInstanceGroupManagerResizeRequestRequest|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; + }); + } + + /** + * 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 onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances 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`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `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. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an 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.v1.InstanceGroupManagerResizeRequest|InstanceGroupManagerResizeRequest}. + * 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.v1.IListRegionInstanceGroupManagerResizeRequestsRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.IInstanceGroupManagerResizeRequest[], + protos.google.cloud.compute.v1.IListRegionInstanceGroupManagerResizeRequestsRequest|null, + protos.google.cloud.compute.v1.IRegionInstanceGroupManagerResizeRequestsListResponse + ]>; + list( + request: protos.google.cloud.compute.v1.IListRegionInstanceGroupManagerResizeRequestsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionInstanceGroupManagerResizeRequestsRequest, + protos.google.cloud.compute.v1.IRegionInstanceGroupManagerResizeRequestsListResponse|null|undefined, + protos.google.cloud.compute.v1.IInstanceGroupManagerResizeRequest>): void; + list( + request: protos.google.cloud.compute.v1.IListRegionInstanceGroupManagerResizeRequestsRequest, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionInstanceGroupManagerResizeRequestsRequest, + protos.google.cloud.compute.v1.IRegionInstanceGroupManagerResizeRequestsListResponse|null|undefined, + protos.google.cloud.compute.v1.IInstanceGroupManagerResizeRequest>): void; + list( + request?: protos.google.cloud.compute.v1.IListRegionInstanceGroupManagerResizeRequestsRequest, + optionsOrCallback?: CallOptions|PaginationCallback< + protos.google.cloud.compute.v1.IListRegionInstanceGroupManagerResizeRequestsRequest, + protos.google.cloud.compute.v1.IRegionInstanceGroupManagerResizeRequestsListResponse|null|undefined, + protos.google.cloud.compute.v1.IInstanceGroupManagerResizeRequest>, + callback?: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionInstanceGroupManagerResizeRequestsRequest, + protos.google.cloud.compute.v1.IRegionInstanceGroupManagerResizeRequestsListResponse|null|undefined, + protos.google.cloud.compute.v1.IInstanceGroupManagerResizeRequest>): + Promise<[ + protos.google.cloud.compute.v1.IInstanceGroupManagerResizeRequest[], + protos.google.cloud.compute.v1.IListRegionInstanceGroupManagerResizeRequestsRequest|null, + protos.google.cloud.compute.v1.IRegionInstanceGroupManagerResizeRequestsListResponse + ]>|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 ?? '', + 'instance_group_manager': request.instanceGroupManager ?? '', + }); + this.initialize().catch(err => {throw err}); + const wrappedCallback: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionInstanceGroupManagerResizeRequestsRequest, + protos.google.cloud.compute.v1.IRegionInstanceGroupManagerResizeRequestsListResponse|null|undefined, + protos.google.cloud.compute.v1.IInstanceGroupManagerResizeRequest>|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.v1.IInstanceGroupManagerResizeRequest[], + protos.google.cloud.compute.v1.IListRegionInstanceGroupManagerResizeRequestsRequest|null, + protos.google.cloud.compute.v1.IRegionInstanceGroupManagerResizeRequestsListResponse + ]) => { + 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 {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`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `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. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an 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.v1.InstanceGroupManagerResizeRequest|InstanceGroupManagerResizeRequest} 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.v1.IListRegionInstanceGroupManagerResizeRequestsRequest, + 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 ?? '', + 'instance_group_manager': request.instanceGroupManager ?? '', + }); + 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 {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`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `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. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an 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.v1.InstanceGroupManagerResizeRequest|InstanceGroupManagerResizeRequest}. 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/region_instance_group_manager_resize_requests.list.js + * region_tag:compute_v1_generated_RegionInstanceGroupManagerResizeRequests_List_async + */ + listAsync( + request?: protos.google.cloud.compute.v1.IListRegionInstanceGroupManagerResizeRequestsRequest, + 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 ?? '', + 'instance_group_manager': request.instanceGroupManager ?? '', + }); + 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.regionInstanceGroupManagerResizeRequestsStub && !this._terminated) { + return this.regionInstanceGroupManagerResizeRequestsStub.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/v1/region_instance_group_manager_resize_requests_client_config.json b/packages/google-cloud-compute/src/v1/region_instance_group_manager_resize_requests_client_config.json new file mode 100644 index 000000000000..e48534370cfe --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_instance_group_manager_resize_requests_client_config.json @@ -0,0 +1,46 @@ +{ + "interfaces": { + "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests": { + "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": { + "Cancel": { + "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" + } + } + } + } +} diff --git a/packages/google-cloud-compute/src/v1/region_instance_group_manager_resize_requests_proto_list.json b/packages/google-cloud-compute/src/v1/region_instance_group_manager_resize_requests_proto_list.json new file mode 100644 index 000000000000..4ad01aef24b0 --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_instance_group_manager_resize_requests_proto_list.json @@ -0,0 +1,3 @@ +[ + "../../protos/google/cloud/compute/v1/compute.proto" +] diff --git a/packages/google-cloud-compute/src/v1/region_instant_snapshot_groups_client.ts b/packages/google-cloud-compute/src/v1/region_instant_snapshot_groups_client.ts new file mode 100644 index 000000000000..6caeefc61c9d --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_instant_snapshot_groups_client.ts @@ -0,0 +1,1447 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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/v1/region_instant_snapshot_groups_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './region_instant_snapshot_groups_client_config.json'; +const version = require('../../../package.json').version; + +/** + * The RegionInstantSnapshotGroups API. + * @class + * @memberof v1 + */ +export class RegionInstantSnapshotGroupsClient { + 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}; + regionInstantSnapshotGroupsStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of RegionInstantSnapshotGroupsClient. + * + * @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 RegionInstantSnapshotGroupsClient({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 RegionInstantSnapshotGroupsClient; + 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.v1.RegionInstantSnapshotGroups', 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.regionInstantSnapshotGroupsStub) { + return this.regionInstantSnapshotGroupsStub; + } + + // Put together the "service stub" for + // google.cloud.compute.v1.RegionInstantSnapshotGroups. + this.regionInstantSnapshotGroupsStub = this._gaxGrpc.createStub( + this._opts.fallback ? + (this._protos as protobuf.Root).lookupService('google.cloud.compute.v1.RegionInstantSnapshotGroups') : + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.compute.v1.RegionInstantSnapshotGroups, + 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 regionInstantSnapshotGroupsStubMethods = + ['delete', 'get', 'getIamPolicy', 'insert', 'list', 'setIamPolicy', 'testIamPermissions']; + for (const methodName of regionInstantSnapshotGroupsStubMethods) { + const callPromise = this.regionInstantSnapshotGroupsStub.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.regionInstantSnapshotGroupsStub; + } + + /** + * 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 Regional InstantSnapshotGroup resource + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.instantSnapshotGroup + * Name of the InstantSnapshotGroup resource to delete. + * @param {string} request.project + * Project ID for this request. + * @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). + * @param {object} [options] + * Call options. See {@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/v1/region_instant_snapshot_groups.delete.js + * region_tag:compute_v1_generated_RegionInstantSnapshotGroups_Delete_async + */ + delete( + request?: protos.google.cloud.compute.v1.IDeleteRegionInstantSnapshotGroupRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + delete( + request: protos.google.cloud.compute.v1.IDeleteRegionInstantSnapshotGroupRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + delete( + request: protos.google.cloud.compute.v1.IDeleteRegionInstantSnapshotGroupRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + delete( + request?: protos.google.cloud.compute.v1.IDeleteRegionInstantSnapshotGroupRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.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 ?? '', + 'instant_snapshot_group': request.instantSnapshotGroup ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('delete request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionInstantSnapshotGroupRequest|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 InstantSnapshotGroup resource in the specified + * region. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.instantSnapshotGroup + * Name of the InstantSnapshotGroup resource to return. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * The name of the region 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.v1.InstantSnapshotGroup|InstantSnapshotGroup}. + * 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/v1/region_instant_snapshot_groups.get.js + * region_tag:compute_v1_generated_RegionInstantSnapshotGroups_Get_async + */ + get( + request?: protos.google.cloud.compute.v1.IGetRegionInstantSnapshotGroupRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.IInstantSnapshotGroup, + protos.google.cloud.compute.v1.IGetRegionInstantSnapshotGroupRequest|undefined, {}|undefined + ]>; + get( + request: protos.google.cloud.compute.v1.IGetRegionInstantSnapshotGroupRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IInstantSnapshotGroup, + protos.google.cloud.compute.v1.IGetRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + get( + request: protos.google.cloud.compute.v1.IGetRegionInstantSnapshotGroupRequest, + callback: Callback< + protos.google.cloud.compute.v1.IInstantSnapshotGroup, + protos.google.cloud.compute.v1.IGetRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + get( + request?: protos.google.cloud.compute.v1.IGetRegionInstantSnapshotGroupRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IInstantSnapshotGroup, + protos.google.cloud.compute.v1.IGetRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IInstantSnapshotGroup, + protos.google.cloud.compute.v1.IGetRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1.IInstantSnapshotGroup, + protos.google.cloud.compute.v1.IGetRegionInstantSnapshotGroupRequest|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 ?? '', + 'instant_snapshot_group': request.instantSnapshotGroup ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('get request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.IInstantSnapshotGroup, + protos.google.cloud.compute.v1.IGetRegionInstantSnapshotGroupRequest|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.v1.IInstantSnapshotGroup, + protos.google.cloud.compute.v1.IGetRegionInstantSnapshotGroupRequest|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.v1.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/v1/region_instant_snapshot_groups.get_iam_policy.js + * region_tag:compute_v1_generated_RegionInstantSnapshotGroups_GetIamPolicy_async + */ + getIamPolicy( + request?: protos.google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotGroupRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotGroupRequest|undefined, {}|undefined + ]>; + getIamPolicy( + request: protos.google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotGroupRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + getIamPolicy( + request: protos.google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotGroupRequest, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + getIamPolicy( + request?: protos.google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotGroupRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotGroupRequest|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.v1.IPolicy, + protos.google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotGroupRequest|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.v1.IPolicy, + protos.google.cloud.compute.v1.IGetIamPolicyRegionInstantSnapshotGroupRequest|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 Regional InstantSnapshotGroup resource + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.compute.v1.InstantSnapshotGroup} request.instantSnapshotGroupResource + * The body resource for this request + * @param {string} request.project + * Project ID for this request. + * @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). + * @param {string} request.sourceConsistencyGroup + * begin_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/v1/region_instant_snapshot_groups.insert.js + * region_tag:compute_v1_generated_RegionInstantSnapshotGroups_Insert_async + */ + insert( + request?: protos.google.cloud.compute.v1.IInsertRegionInstantSnapshotGroupRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + insert( + request: protos.google.cloud.compute.v1.IInsertRegionInstantSnapshotGroupRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + insert( + request: protos.google.cloud.compute.v1.IInsertRegionInstantSnapshotGroupRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + insert( + request?: protos.google.cloud.compute.v1.IInsertRegionInstantSnapshotGroupRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.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.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionInstantSnapshotGroupRequest|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; + }); + } +/** + * 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.v1.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.v1.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/v1/region_instant_snapshot_groups.set_iam_policy.js + * region_tag:compute_v1_generated_RegionInstantSnapshotGroups_SetIamPolicy_async + */ + setIamPolicy( + request?: protos.google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotGroupRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotGroupRequest|undefined, {}|undefined + ]>; + setIamPolicy( + request: protos.google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotGroupRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + setIamPolicy( + request: protos.google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotGroupRequest, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + setIamPolicy( + request?: protos.google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotGroupRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotGroupRequest|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.v1.IPolicy, + protos.google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotGroupRequest|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.v1.IPolicy, + protos.google.cloud.compute.v1.ISetIamPolicyRegionInstantSnapshotGroupRequest|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.v1.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.v1.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/v1/region_instant_snapshot_groups.test_iam_permissions.js + * region_tag:compute_v1_generated_RegionInstantSnapshotGroups_TestIamPermissions_async + */ + testIamPermissions( + request?: protos.google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotGroupRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotGroupRequest|undefined, {}|undefined + ]>; + testIamPermissions( + request: protos.google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotGroupRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request: protos.google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotGroupRequest, + callback: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request?: protos.google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotGroupRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotGroupRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotGroupRequest|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.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotGroupRequest|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.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionInstantSnapshotGroupRequest|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 InstantSnapshotGroup 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 onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `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. + * @param {object} [options] + * Call options. See {@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.v1.InstantSnapshotGroup|InstantSnapshotGroup}. + * 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.v1.IListRegionInstantSnapshotGroupsRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.IInstantSnapshotGroup[], + protos.google.cloud.compute.v1.IListRegionInstantSnapshotGroupsRequest|null, + protos.google.cloud.compute.v1.IListInstantSnapshotGroups + ]>; + list( + request: protos.google.cloud.compute.v1.IListRegionInstantSnapshotGroupsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionInstantSnapshotGroupsRequest, + protos.google.cloud.compute.v1.IListInstantSnapshotGroups|null|undefined, + protos.google.cloud.compute.v1.IInstantSnapshotGroup>): void; + list( + request: protos.google.cloud.compute.v1.IListRegionInstantSnapshotGroupsRequest, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionInstantSnapshotGroupsRequest, + protos.google.cloud.compute.v1.IListInstantSnapshotGroups|null|undefined, + protos.google.cloud.compute.v1.IInstantSnapshotGroup>): void; + list( + request?: protos.google.cloud.compute.v1.IListRegionInstantSnapshotGroupsRequest, + optionsOrCallback?: CallOptions|PaginationCallback< + protos.google.cloud.compute.v1.IListRegionInstantSnapshotGroupsRequest, + protos.google.cloud.compute.v1.IListInstantSnapshotGroups|null|undefined, + protos.google.cloud.compute.v1.IInstantSnapshotGroup>, + callback?: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionInstantSnapshotGroupsRequest, + protos.google.cloud.compute.v1.IListInstantSnapshotGroups|null|undefined, + protos.google.cloud.compute.v1.IInstantSnapshotGroup>): + Promise<[ + protos.google.cloud.compute.v1.IInstantSnapshotGroup[], + protos.google.cloud.compute.v1.IListRegionInstantSnapshotGroupsRequest|null, + protos.google.cloud.compute.v1.IListInstantSnapshotGroups + ]>|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.v1.IListRegionInstantSnapshotGroupsRequest, + protos.google.cloud.compute.v1.IListInstantSnapshotGroups|null|undefined, + protos.google.cloud.compute.v1.IInstantSnapshotGroup>|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.v1.IInstantSnapshotGroup[], + protos.google.cloud.compute.v1.IListRegionInstantSnapshotGroupsRequest|null, + protos.google.cloud.compute.v1.IListInstantSnapshotGroups + ]) => { + 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 + * 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. + * @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.v1.InstantSnapshotGroup|InstantSnapshotGroup} 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.v1.IListRegionInstantSnapshotGroupsRequest, + 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 + * 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. + * @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.v1.InstantSnapshotGroup|InstantSnapshotGroup}. 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/region_instant_snapshot_groups.list.js + * region_tag:compute_v1_generated_RegionInstantSnapshotGroups_List_async + */ + listAsync( + request?: protos.google.cloud.compute.v1.IListRegionInstantSnapshotGroupsRequest, + 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.regionInstantSnapshotGroupsStub && !this._terminated) { + return this.regionInstantSnapshotGroupsStub.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/v1/region_instant_snapshot_groups_client_config.json b/packages/google-cloud-compute/src/v1/region_instant_snapshot_groups_client_config.json new file mode 100644 index 000000000000..d43114476459 --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_instant_snapshot_groups_client_config.json @@ -0,0 +1,54 @@ +{ + "interfaces": { + "google.cloud.compute.v1.RegionInstantSnapshotGroups": { + "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" + }, + "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/v1/region_instant_snapshot_groups_proto_list.json b/packages/google-cloud-compute/src/v1/region_instant_snapshot_groups_proto_list.json new file mode 100644 index 000000000000..4ad01aef24b0 --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_instant_snapshot_groups_proto_list.json @@ -0,0 +1,3 @@ +[ + "../../protos/google/cloud/compute/v1/compute.proto" +] diff --git a/packages/google-cloud-compute/src/v1/region_snapshot_settings_client.ts b/packages/google-cloud-compute/src/v1/region_snapshot_settings_client.ts new file mode 100644 index 000000000000..01c1b6035976 --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_snapshot_settings_client.ts @@ -0,0 +1,555 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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} from 'google-gax'; + +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/v1/region_snapshot_settings_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './region_snapshot_settings_client_config.json'; +const version = require('../../../package.json').version; + +/** + * The RegionSnapshotSettings API. + * @class + * @memberof v1 + */ +export class RegionSnapshotSettingsClient { + 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}; + regionSnapshotSettingsStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of RegionSnapshotSettingsClient. + * + * @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 RegionSnapshotSettingsClient({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 RegionSnapshotSettingsClient; + 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); + + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings( + 'google.cloud.compute.v1.RegionSnapshotSettings', 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.regionSnapshotSettingsStub) { + return this.regionSnapshotSettingsStub; + } + + // Put together the "service stub" for + // google.cloud.compute.v1.RegionSnapshotSettings. + this.regionSnapshotSettingsStub = this._gaxGrpc.createStub( + this._opts.fallback ? + (this._protos as protobuf.Root).lookupService('google.cloud.compute.v1.RegionSnapshotSettings') : + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.compute.v1.RegionSnapshotSettings, + 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 regionSnapshotSettingsStubMethods = + ['get', 'patch']; + for (const methodName of regionSnapshotSettingsStubMethods) { + const callPromise = this.regionSnapshotSettingsStub.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 = + undefined; + const apiCall = this._gaxModule.createApiCall( + callPromise, + this._defaults[methodName], + descriptor, + this._opts.fallback + ); + + this.innerApiCalls[methodName] = apiCall; + } + + return this.regionSnapshotSettingsStub; + } + + /** + * 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 -- + // ------------------- +/** + * Get region snapshot settings. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region 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.v1.SnapshotSettings|SnapshotSettings}. + * 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/v1/region_snapshot_settings.get.js + * region_tag:compute_v1_generated_RegionSnapshotSettings_Get_async + */ + get( + request?: protos.google.cloud.compute.v1.IGetRegionSnapshotSettingRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.ISnapshotSettings, + protos.google.cloud.compute.v1.IGetRegionSnapshotSettingRequest|undefined, {}|undefined + ]>; + get( + request: protos.google.cloud.compute.v1.IGetRegionSnapshotSettingRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.ISnapshotSettings, + protos.google.cloud.compute.v1.IGetRegionSnapshotSettingRequest|null|undefined, + {}|null|undefined>): void; + get( + request: protos.google.cloud.compute.v1.IGetRegionSnapshotSettingRequest, + callback: Callback< + protos.google.cloud.compute.v1.ISnapshotSettings, + protos.google.cloud.compute.v1.IGetRegionSnapshotSettingRequest|null|undefined, + {}|null|undefined>): void; + get( + request?: protos.google.cloud.compute.v1.IGetRegionSnapshotSettingRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.ISnapshotSettings, + protos.google.cloud.compute.v1.IGetRegionSnapshotSettingRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.ISnapshotSettings, + protos.google.cloud.compute.v1.IGetRegionSnapshotSettingRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1.ISnapshotSettings, + protos.google.cloud.compute.v1.IGetRegionSnapshotSettingRequest|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('get request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.ISnapshotSettings, + protos.google.cloud.compute.v1.IGetRegionSnapshotSettingRequest|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.v1.ISnapshotSettings, + protos.google.cloud.compute.v1.IGetRegionSnapshotSettingRequest|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; + }); + } +/** + * Patch region snapshot settings. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.project + * Project ID for this request. + * @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). + * @param {google.cloud.compute.v1.SnapshotSettings} request.snapshotSettingsResource + * The body resource for this request + * @param {string} request.updateMask + * update_mask indicates fields to be updated as part of 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/v1/region_snapshot_settings.patch.js + * region_tag:compute_v1_generated_RegionSnapshotSettings_Patch_async + */ + patch( + request?: protos.google.cloud.compute.v1.IPatchRegionSnapshotSettingRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + patch( + request: protos.google.cloud.compute.v1.IPatchRegionSnapshotSettingRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IPatchRegionSnapshotSettingRequest|null|undefined, + {}|null|undefined>): void; + patch( + request: protos.google.cloud.compute.v1.IPatchRegionSnapshotSettingRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IPatchRegionSnapshotSettingRequest|null|undefined, + {}|null|undefined>): void; + patch( + request?: protos.google.cloud.compute.v1.IPatchRegionSnapshotSettingRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IPatchRegionSnapshotSettingRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IPatchRegionSnapshotSettingRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.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('patch request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IPatchRegionSnapshotSettingRequest|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; + }); + } + + + /** + * 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.regionSnapshotSettingsStub && !this._terminated) { + return this.regionSnapshotSettingsStub.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/v1/region_snapshot_settings_client_config.json b/packages/google-cloud-compute/src/v1/region_snapshot_settings_client_config.json new file mode 100644 index 000000000000..841efb688e26 --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_snapshot_settings_client_config.json @@ -0,0 +1,34 @@ +{ + "interfaces": { + "google.cloud.compute.v1.RegionSnapshotSettings": { + "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": { + "Get": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Patch": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/packages/google-cloud-compute/src/v1/region_snapshot_settings_proto_list.json b/packages/google-cloud-compute/src/v1/region_snapshot_settings_proto_list.json new file mode 100644 index 000000000000..4ad01aef24b0 --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_snapshot_settings_proto_list.json @@ -0,0 +1,3 @@ +[ + "../../protos/google/cloud/compute/v1/compute.proto" +] diff --git a/packages/google-cloud-compute/src/v1/region_snapshots_client.ts b/packages/google-cloud-compute/src/v1/region_snapshots_client.ts new file mode 100644 index 000000000000..1a07cf98dd67 --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_snapshots_client.ts @@ -0,0 +1,1695 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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/v1/region_snapshots_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './region_snapshots_client_config.json'; +const version = require('../../../package.json').version; + +/** + * The RegionSnapshots API. + * @class + * @memberof v1 + */ +export class RegionSnapshotsClient { + 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}; + regionSnapshotsStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of RegionSnapshotsClient. + * + * @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 RegionSnapshotsClient({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 RegionSnapshotsClient; + 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.v1.RegionSnapshots', 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.regionSnapshotsStub) { + return this.regionSnapshotsStub; + } + + // Put together the "service stub" for + // google.cloud.compute.v1.RegionSnapshots. + this.regionSnapshotsStub = this._gaxGrpc.createStub( + this._opts.fallback ? + (this._protos as protobuf.Root).lookupService('google.cloud.compute.v1.RegionSnapshots') : + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.compute.v1.RegionSnapshots, + 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 regionSnapshotsStubMethods = + ['delete', 'get', 'getIamPolicy', 'insert', 'list', 'setIamPolicy', 'setLabels', 'testIamPermissions', 'updateKmsKey']; + for (const methodName of regionSnapshotsStubMethods) { + const callPromise = this.regionSnapshotsStub.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.regionSnapshotsStub; + } + + /** + * 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 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.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). + * @param {string} request.snapshot + * Name of the snapshot resource to delete. + * @param {object} [options] + * Call options. See {@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/v1/region_snapshots.delete.js + * region_tag:compute_v1_generated_RegionSnapshots_Delete_async + */ + delete( + request?: protos.google.cloud.compute.v1.IDeleteRegionSnapshotRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + delete( + request: protos.google.cloud.compute.v1.IDeleteRegionSnapshotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionSnapshotRequest|null|undefined, + {}|null|undefined>): void; + delete( + request: protos.google.cloud.compute.v1.IDeleteRegionSnapshotRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionSnapshotRequest|null|undefined, + {}|null|undefined>): void; + delete( + request?: protos.google.cloud.compute.v1.IDeleteRegionSnapshotRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionSnapshotRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionSnapshotRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.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 ?? '', + 'snapshot': request.snapshot ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('delete request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionSnapshotRequest|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 Snapshot resource. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region for this request. + * @param {string} request.snapshot + * Name of the Snapshot resource to return. + * @param {object} [options] + * Call options. See {@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.v1.Snapshot|Snapshot}. + * 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/v1/region_snapshots.get.js + * region_tag:compute_v1_generated_RegionSnapshots_Get_async + */ + get( + request?: protos.google.cloud.compute.v1.IGetRegionSnapshotRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.ISnapshot, + protos.google.cloud.compute.v1.IGetRegionSnapshotRequest|undefined, {}|undefined + ]>; + get( + request: protos.google.cloud.compute.v1.IGetRegionSnapshotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.ISnapshot, + protos.google.cloud.compute.v1.IGetRegionSnapshotRequest|null|undefined, + {}|null|undefined>): void; + get( + request: protos.google.cloud.compute.v1.IGetRegionSnapshotRequest, + callback: Callback< + protos.google.cloud.compute.v1.ISnapshot, + protos.google.cloud.compute.v1.IGetRegionSnapshotRequest|null|undefined, + {}|null|undefined>): void; + get( + request?: protos.google.cloud.compute.v1.IGetRegionSnapshotRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.ISnapshot, + protos.google.cloud.compute.v1.IGetRegionSnapshotRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.ISnapshot, + protos.google.cloud.compute.v1.IGetRegionSnapshotRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1.ISnapshot, + protos.google.cloud.compute.v1.IGetRegionSnapshotRequest|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 ?? '', + 'snapshot': request.snapshot ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('get request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.ISnapshot, + protos.google.cloud.compute.v1.IGetRegionSnapshotRequest|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.v1.ISnapshot, + protos.google.cloud.compute.v1.IGetRegionSnapshotRequest|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.v1.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/v1/region_snapshots.get_iam_policy.js + * region_tag:compute_v1_generated_RegionSnapshots_GetIamPolicy_async + */ + getIamPolicy( + request?: protos.google.cloud.compute.v1.IGetIamPolicyRegionSnapshotRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.IGetIamPolicyRegionSnapshotRequest|undefined, {}|undefined + ]>; + getIamPolicy( + request: protos.google.cloud.compute.v1.IGetIamPolicyRegionSnapshotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.IGetIamPolicyRegionSnapshotRequest|null|undefined, + {}|null|undefined>): void; + getIamPolicy( + request: protos.google.cloud.compute.v1.IGetIamPolicyRegionSnapshotRequest, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.IGetIamPolicyRegionSnapshotRequest|null|undefined, + {}|null|undefined>): void; + getIamPolicy( + request?: protos.google.cloud.compute.v1.IGetIamPolicyRegionSnapshotRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.IGetIamPolicyRegionSnapshotRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.IGetIamPolicyRegionSnapshotRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.IGetIamPolicyRegionSnapshotRequest|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.v1.IPolicy, + protos.google.cloud.compute.v1.IGetIamPolicyRegionSnapshotRequest|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.v1.IPolicy, + protos.google.cloud.compute.v1.IGetIamPolicyRegionSnapshotRequest|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 snapshot in the specified region 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.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). + * @param {google.cloud.compute.v1.Snapshot} request.snapshotResource + * 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 + * 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/v1/region_snapshots.insert.js + * region_tag:compute_v1_generated_RegionSnapshots_Insert_async + */ + insert( + request?: protos.google.cloud.compute.v1.IInsertRegionSnapshotRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + insert( + request: protos.google.cloud.compute.v1.IInsertRegionSnapshotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionSnapshotRequest|null|undefined, + {}|null|undefined>): void; + insert( + request: protos.google.cloud.compute.v1.IInsertRegionSnapshotRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionSnapshotRequest|null|undefined, + {}|null|undefined>): void; + insert( + request?: protos.google.cloud.compute.v1.IInsertRegionSnapshotRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionSnapshotRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionSnapshotRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.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.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionSnapshotRequest|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; + }); + } +/** + * 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.v1.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.v1.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/v1/region_snapshots.set_iam_policy.js + * region_tag:compute_v1_generated_RegionSnapshots_SetIamPolicy_async + */ + setIamPolicy( + request?: protos.google.cloud.compute.v1.ISetIamPolicyRegionSnapshotRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.ISetIamPolicyRegionSnapshotRequest|undefined, {}|undefined + ]>; + setIamPolicy( + request: protos.google.cloud.compute.v1.ISetIamPolicyRegionSnapshotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.ISetIamPolicyRegionSnapshotRequest|null|undefined, + {}|null|undefined>): void; + setIamPolicy( + request: protos.google.cloud.compute.v1.ISetIamPolicyRegionSnapshotRequest, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.ISetIamPolicyRegionSnapshotRequest|null|undefined, + {}|null|undefined>): void; + setIamPolicy( + request?: protos.google.cloud.compute.v1.ISetIamPolicyRegionSnapshotRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.ISetIamPolicyRegionSnapshotRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.ISetIamPolicyRegionSnapshotRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1.IPolicy, + protos.google.cloud.compute.v1.ISetIamPolicyRegionSnapshotRequest|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.v1.IPolicy, + protos.google.cloud.compute.v1.ISetIamPolicyRegionSnapshotRequest|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.v1.IPolicy, + protos.google.cloud.compute.v1.ISetIamPolicyRegionSnapshotRequest|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; + }); + } +/** + * 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. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * The region for this request. + * @param {google.cloud.compute.v1.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). + * @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 + * 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/v1/region_snapshots.set_labels.js + * region_tag:compute_v1_generated_RegionSnapshots_SetLabels_async + */ + setLabels( + request?: protos.google.cloud.compute.v1.ISetLabelsRegionSnapshotRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + setLabels( + request: protos.google.cloud.compute.v1.ISetLabelsRegionSnapshotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.ISetLabelsRegionSnapshotRequest|null|undefined, + {}|null|undefined>): void; + setLabels( + request: protos.google.cloud.compute.v1.ISetLabelsRegionSnapshotRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.ISetLabelsRegionSnapshotRequest|null|undefined, + {}|null|undefined>): void; + setLabels( + request?: protos.google.cloud.compute.v1.ISetLabelsRegionSnapshotRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.ISetLabelsRegionSnapshotRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.ISetLabelsRegionSnapshotRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.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 ?? '', + 'resource': request.resource ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('setLabels request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.ISetLabelsRegionSnapshotRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('setLabels response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.setLabels(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.v1.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.v1.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/v1/region_snapshots.test_iam_permissions.js + * region_tag:compute_v1_generated_RegionSnapshots_TestIamPermissions_async + */ + testIamPermissions( + request?: protos.google.cloud.compute.v1.ITestIamPermissionsRegionSnapshotRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionSnapshotRequest|undefined, {}|undefined + ]>; + testIamPermissions( + request: protos.google.cloud.compute.v1.ITestIamPermissionsRegionSnapshotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionSnapshotRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request: protos.google.cloud.compute.v1.ITestIamPermissionsRegionSnapshotRequest, + callback: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionSnapshotRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request?: protos.google.cloud.compute.v1.ITestIamPermissionsRegionSnapshotRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionSnapshotRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionSnapshotRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionSnapshotRequest|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.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionSnapshotRequest|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.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionSnapshotRequest|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; + }); + } +/** + * Rotates the customer-managed + * encryption key to the latest version for the specified snapshot. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region for this request. + * @param {google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest} request.regionSnapshotUpdateKmsKeyRequestResource + * 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). + * @param {string} request.snapshot + * Name of the snapshot resource to update. 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 + * 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/v1/region_snapshots.update_kms_key.js + * region_tag:compute_v1_generated_RegionSnapshots_UpdateKmsKey_async + */ + updateKmsKey( + request?: protos.google.cloud.compute.v1.IUpdateKmsKeyRegionSnapshotRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + updateKmsKey( + request: protos.google.cloud.compute.v1.IUpdateKmsKeyRegionSnapshotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateKmsKeyRegionSnapshotRequest|null|undefined, + {}|null|undefined>): void; + updateKmsKey( + request: protos.google.cloud.compute.v1.IUpdateKmsKeyRegionSnapshotRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateKmsKeyRegionSnapshotRequest|null|undefined, + {}|null|undefined>): void; + updateKmsKey( + request?: protos.google.cloud.compute.v1.IUpdateKmsKeyRegionSnapshotRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateKmsKeyRegionSnapshotRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateKmsKeyRegionSnapshotRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.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 ?? '', + 'snapshot': request.snapshot ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('updateKmsKey request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateKmsKeyRegionSnapshotRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('updateKmsKey response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.updateKmsKey(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 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 onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `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. + * @param {object} [options] + * Call options. See {@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.v1.Snapshot|Snapshot}. + * 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.v1.IListRegionSnapshotsRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.ISnapshot[], + protos.google.cloud.compute.v1.IListRegionSnapshotsRequest|null, + protos.google.cloud.compute.v1.ISnapshotList + ]>; + list( + request: protos.google.cloud.compute.v1.IListRegionSnapshotsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionSnapshotsRequest, + protos.google.cloud.compute.v1.ISnapshotList|null|undefined, + protos.google.cloud.compute.v1.ISnapshot>): void; + list( + request: protos.google.cloud.compute.v1.IListRegionSnapshotsRequest, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionSnapshotsRequest, + protos.google.cloud.compute.v1.ISnapshotList|null|undefined, + protos.google.cloud.compute.v1.ISnapshot>): void; + list( + request?: protos.google.cloud.compute.v1.IListRegionSnapshotsRequest, + optionsOrCallback?: CallOptions|PaginationCallback< + protos.google.cloud.compute.v1.IListRegionSnapshotsRequest, + protos.google.cloud.compute.v1.ISnapshotList|null|undefined, + protos.google.cloud.compute.v1.ISnapshot>, + callback?: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionSnapshotsRequest, + protos.google.cloud.compute.v1.ISnapshotList|null|undefined, + protos.google.cloud.compute.v1.ISnapshot>): + Promise<[ + protos.google.cloud.compute.v1.ISnapshot[], + protos.google.cloud.compute.v1.IListRegionSnapshotsRequest|null, + protos.google.cloud.compute.v1.ISnapshotList + ]>|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.v1.IListRegionSnapshotsRequest, + protos.google.cloud.compute.v1.ISnapshotList|null|undefined, + protos.google.cloud.compute.v1.ISnapshot>|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.v1.ISnapshot[], + protos.google.cloud.compute.v1.IListRegionSnapshotsRequest|null, + protos.google.cloud.compute.v1.ISnapshotList + ]) => { + 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 for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an 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.v1.Snapshot|Snapshot} 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.v1.IListRegionSnapshotsRequest, + 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 for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an 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.v1.Snapshot|Snapshot}. 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/region_snapshots.list.js + * region_tag:compute_v1_generated_RegionSnapshots_List_async + */ + listAsync( + request?: protos.google.cloud.compute.v1.IListRegionSnapshotsRequest, + 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.regionSnapshotsStub && !this._terminated) { + return this.regionSnapshotsStub.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/v1/region_snapshots_client_config.json b/packages/google-cloud-compute/src/v1/region_snapshots_client_config.json new file mode 100644 index 000000000000..c6dc1df527aa --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_snapshots_client_config.json @@ -0,0 +1,62 @@ +{ + "interfaces": { + "google.cloud.compute.v1.RegionSnapshots": { + "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" + }, + "SetIamPolicy": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "SetLabels": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "TestIamPermissions": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateKmsKey": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/packages/google-cloud-compute/src/v1/region_snapshots_proto_list.json b/packages/google-cloud-compute/src/v1/region_snapshots_proto_list.json new file mode 100644 index 000000000000..4ad01aef24b0 --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_snapshots_proto_list.json @@ -0,0 +1,3 @@ +[ + "../../protos/google/cloud/compute/v1/compute.proto" +] diff --git a/packages/google-cloud-compute/src/v1/snapshots_client.ts b/packages/google-cloud-compute/src/v1/snapshots_client.ts index ac25273b9b9b..e60c51eb0004 100644 --- a/packages/google-cloud-compute/src/v1/snapshots_client.ts +++ b/packages/google-cloud-compute/src/v1/snapshots_client.ts @@ -223,7 +223,7 @@ export class SnapshotsClient { // Iterate over each of the methods that the service provides // and create an API call method for each. const snapshotsStubMethods = - ['delete', 'get', 'getIamPolicy', 'insert', 'list', 'setIamPolicy', 'setLabels', 'testIamPermissions']; + ['delete', 'get', 'getIamPolicy', 'insert', 'list', 'setIamPolicy', 'setLabels', 'testIamPermissions', 'updateKmsKey']; for (const methodName of snapshotsStubMethods) { const callPromise = this.snapshotsStub.then( stub => (...args: Array<{}>) => { @@ -1067,6 +1067,124 @@ export class SnapshotsClient { throw error; }); } +/** + * Rotates the customer-managed + * encryption key to the latest version for the specified snapshot. + * + * @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.snapshot + * Name of the snapshot resource to update. Should conform to RFC1035. + * @param {google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest} request.snapshotUpdateKmsKeyRequestResource + * 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 + * 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/v1/snapshots.update_kms_key.js + * region_tag:compute_v1_generated_Snapshots_UpdateKmsKey_async + */ + updateKmsKey( + request?: protos.google.cloud.compute.v1.IUpdateKmsKeySnapshotRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + updateKmsKey( + request: protos.google.cloud.compute.v1.IUpdateKmsKeySnapshotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateKmsKeySnapshotRequest|null|undefined, + {}|null|undefined>): void; + updateKmsKey( + request: protos.google.cloud.compute.v1.IUpdateKmsKeySnapshotRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateKmsKeySnapshotRequest|null|undefined, + {}|null|undefined>): void; + updateKmsKey( + request?: protos.google.cloud.compute.v1.IUpdateKmsKeySnapshotRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateKmsKeySnapshotRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateKmsKeySnapshotRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.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 ?? '', + 'snapshot': request.snapshot ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('updateKmsKey request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateKmsKeySnapshotRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('updateKmsKey response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.updateKmsKey(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 the list of Snapshot resources contained within diff --git a/packages/google-cloud-compute/src/v1/snapshots_client_config.json b/packages/google-cloud-compute/src/v1/snapshots_client_config.json index 4043bbff9f19..afa1e46bdc3d 100644 --- a/packages/google-cloud-compute/src/v1/snapshots_client_config.json +++ b/packages/google-cloud-compute/src/v1/snapshots_client_config.json @@ -51,6 +51,10 @@ "TestIamPermissions": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" + }, + "UpdateKmsKey": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" } } } diff --git a/packages/google-cloud-compute/src/v1/zone_vm_extension_policies_client.ts b/packages/google-cloud-compute/src/v1/zone_vm_extension_policies_client.ts new file mode 100644 index 000000000000..be4ae7d4b74f --- /dev/null +++ b/packages/google-cloud-compute/src/v1/zone_vm_extension_policies_client.ts @@ -0,0 +1,1255 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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/v1/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 v1 + */ +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.v1.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.v1.ZoneVmExtensionPolicies. + this.zoneVmExtensionPoliciesStub = this._gaxGrpc.createStub( + this._opts.fallback ? + (this._protos as protobuf.Root).lookupService('google.cloud.compute.v1.ZoneVmExtensionPolicies') : + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.compute.v1.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/v1/zone_vm_extension_policies.delete.js + * region_tag:compute_v1_generated_ZoneVmExtensionPolicies_Delete_async + */ + delete( + request?: protos.google.cloud.compute.v1.IDeleteZoneVmExtensionPolicyRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + delete( + request: protos.google.cloud.compute.v1.IDeleteZoneVmExtensionPolicyRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>): void; + delete( + request: protos.google.cloud.compute.v1.IDeleteZoneVmExtensionPolicyRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>): void; + delete( + request?: protos.google.cloud.compute.v1.IDeleteZoneVmExtensionPolicyRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.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.v1.IOperation, + protos.google.cloud.compute.v1.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.v1.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/v1/zone_vm_extension_policies.get.js + * region_tag:compute_v1_generated_ZoneVmExtensionPolicies_Get_async + */ + get( + request?: protos.google.cloud.compute.v1.IGetZoneVmExtensionPolicyRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.IVmExtensionPolicy, + protos.google.cloud.compute.v1.IGetZoneVmExtensionPolicyRequest|undefined, {}|undefined + ]>; + get( + request: protos.google.cloud.compute.v1.IGetZoneVmExtensionPolicyRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IVmExtensionPolicy, + protos.google.cloud.compute.v1.IGetZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>): void; + get( + request: protos.google.cloud.compute.v1.IGetZoneVmExtensionPolicyRequest, + callback: Callback< + protos.google.cloud.compute.v1.IVmExtensionPolicy, + protos.google.cloud.compute.v1.IGetZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>): void; + get( + request?: protos.google.cloud.compute.v1.IGetZoneVmExtensionPolicyRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IVmExtensionPolicy, + protos.google.cloud.compute.v1.IGetZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IVmExtensionPolicy, + protos.google.cloud.compute.v1.IGetZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1.IVmExtensionPolicy, + protos.google.cloud.compute.v1.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.v1.IVmExtensionPolicy, + protos.google.cloud.compute.v1.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.v1.IVmExtensionPolicy, + protos.google.cloud.compute.v1.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.v1.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/v1/zone_vm_extension_policies.insert.js + * region_tag:compute_v1_generated_ZoneVmExtensionPolicies_Insert_async + */ + insert( + request?: protos.google.cloud.compute.v1.IInsertZoneVmExtensionPolicyRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + insert( + request: protos.google.cloud.compute.v1.IInsertZoneVmExtensionPolicyRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>): void; + insert( + request: protos.google.cloud.compute.v1.IInsertZoneVmExtensionPolicyRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>): void; + insert( + request?: protos.google.cloud.compute.v1.IInsertZoneVmExtensionPolicyRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.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.v1.IOperation, + protos.google.cloud.compute.v1.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.v1.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/v1/zone_vm_extension_policies.update.js + * region_tag:compute_v1_generated_ZoneVmExtensionPolicies_Update_async + */ + update( + request?: protos.google.cloud.compute.v1.IUpdateZoneVmExtensionPolicyRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + update( + request: protos.google.cloud.compute.v1.IUpdateZoneVmExtensionPolicyRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>): void; + update( + request: protos.google.cloud.compute.v1.IUpdateZoneVmExtensionPolicyRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>): void; + update( + request?: protos.google.cloud.compute.v1.IUpdateZoneVmExtensionPolicyRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.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.v1.IOperation, + protos.google.cloud.compute.v1.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.v1.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.v1.IListZoneVmExtensionPoliciesRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.IVmExtensionPolicy[], + protos.google.cloud.compute.v1.IListZoneVmExtensionPoliciesRequest|null, + protos.google.cloud.compute.v1.IVmExtensionPolicyList + ]>; + list( + request: protos.google.cloud.compute.v1.IListZoneVmExtensionPoliciesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListZoneVmExtensionPoliciesRequest, + protos.google.cloud.compute.v1.IVmExtensionPolicyList|null|undefined, + protos.google.cloud.compute.v1.IVmExtensionPolicy>): void; + list( + request: protos.google.cloud.compute.v1.IListZoneVmExtensionPoliciesRequest, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListZoneVmExtensionPoliciesRequest, + protos.google.cloud.compute.v1.IVmExtensionPolicyList|null|undefined, + protos.google.cloud.compute.v1.IVmExtensionPolicy>): void; + list( + request?: protos.google.cloud.compute.v1.IListZoneVmExtensionPoliciesRequest, + optionsOrCallback?: CallOptions|PaginationCallback< + protos.google.cloud.compute.v1.IListZoneVmExtensionPoliciesRequest, + protos.google.cloud.compute.v1.IVmExtensionPolicyList|null|undefined, + protos.google.cloud.compute.v1.IVmExtensionPolicy>, + callback?: PaginationCallback< + protos.google.cloud.compute.v1.IListZoneVmExtensionPoliciesRequest, + protos.google.cloud.compute.v1.IVmExtensionPolicyList|null|undefined, + protos.google.cloud.compute.v1.IVmExtensionPolicy>): + Promise<[ + protos.google.cloud.compute.v1.IVmExtensionPolicy[], + protos.google.cloud.compute.v1.IListZoneVmExtensionPoliciesRequest|null, + protos.google.cloud.compute.v1.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.v1.IListZoneVmExtensionPoliciesRequest, + protos.google.cloud.compute.v1.IVmExtensionPolicyList|null|undefined, + protos.google.cloud.compute.v1.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.v1.IVmExtensionPolicy[], + protos.google.cloud.compute.v1.IListZoneVmExtensionPoliciesRequest|null, + protos.google.cloud.compute.v1.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.v1.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.v1.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.v1.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/v1/zone_vm_extension_policies.list.js + * region_tag:compute_v1_generated_ZoneVmExtensionPolicies_List_async + */ + listAsync( + request?: protos.google.cloud.compute.v1.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/v1/zone_vm_extension_policies_client_config.json b/packages/google-cloud-compute/src/v1/zone_vm_extension_policies_client_config.json new file mode 100644 index 000000000000..ee2224822491 --- /dev/null +++ b/packages/google-cloud-compute/src/v1/zone_vm_extension_policies_client_config.json @@ -0,0 +1,46 @@ +{ + "interfaces": { + "google.cloud.compute.v1.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/v1/zone_vm_extension_policies_proto_list.json b/packages/google-cloud-compute/src/v1/zone_vm_extension_policies_proto_list.json new file mode 100644 index 000000000000..4ad01aef24b0 --- /dev/null +++ b/packages/google-cloud-compute/src/v1/zone_vm_extension_policies_proto_list.json @@ -0,0 +1,3 @@ +[ + "../../protos/google/cloud/compute/v1/compute.proto" +] diff --git a/packages/google-cloud-compute/src/v1beta/disks_client.ts b/packages/google-cloud-compute/src/v1beta/disks_client.ts index 5b9fe262f456..d6db7858f14c 100644 --- a/packages/google-cloud-compute/src/v1beta/disks_client.ts +++ b/packages/google-cloud-compute/src/v1beta/disks_client.ts @@ -225,7 +225,7 @@ export class DisksClient { // Iterate over each of the methods that the service provides // and create an API call method for each. const disksStubMethods = - ['addResourcePolicies', 'aggregatedList', 'bulkInsert', 'bulkSetLabels', 'createSnapshot', 'delete', 'get', 'getIamPolicy', 'insert', 'list', 'removeResourcePolicies', 'resize', 'setIamPolicy', 'setLabels', 'startAsyncReplication', 'stopAsyncReplication', 'stopGroupAsyncReplication', 'testIamPermissions', 'update']; + ['addResourcePolicies', 'aggregatedList', 'bulkInsert', 'bulkSetLabels', 'createSnapshot', 'delete', 'get', 'getIamPolicy', 'insert', 'list', 'removeResourcePolicies', 'resize', 'setIamPolicy', 'setLabels', 'startAsyncReplication', 'stopAsyncReplication', 'stopGroupAsyncReplication', 'testIamPermissions', 'update', 'updateKmsKey']; for (const methodName of disksStubMethods) { const callPromise = this.disksStub.then( stub => (...args: Array<{}>) => { @@ -2313,6 +2313,127 @@ export class DisksClient { throw error; }); } +/** + * Rotates the customer-managed + * encryption key to the latest version for the specified persistent disk. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.disk + * Name of the Disk resource, should conform to RFC1035. + * @param {google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest} request.diskUpdateKmsKeyRequestResource + * 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). + * @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 + * 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/disks.update_kms_key.js + * region_tag:compute_v1beta_generated_Disks_UpdateKmsKey_async + */ + updateKmsKey( + request?: protos.google.cloud.compute.v1beta.IUpdateKmsKeyDiskRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>; + updateKmsKey( + request: protos.google.cloud.compute.v1beta.IUpdateKmsKeyDiskRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateKmsKeyDiskRequest|null|undefined, + {}|null|undefined>): void; + updateKmsKey( + request: protos.google.cloud.compute.v1beta.IUpdateKmsKeyDiskRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateKmsKeyDiskRequest|null|undefined, + {}|null|undefined>): void; + updateKmsKey( + request?: protos.google.cloud.compute.v1beta.IUpdateKmsKeyDiskRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateKmsKeyDiskRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateKmsKeyDiskRequest|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 ?? '', + 'disk': request.disk ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('updateKmsKey request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateKmsKeyDiskRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('updateKmsKey response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.updateKmsKey(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; + }); + } /** diff --git a/packages/google-cloud-compute/src/v1beta/disks_client_config.json b/packages/google-cloud-compute/src/v1beta/disks_client_config.json index c4eaaa4f8cc9..8ddd18fb2cca 100644 --- a/packages/google-cloud-compute/src/v1beta/disks_client_config.json +++ b/packages/google-cloud-compute/src/v1beta/disks_client_config.json @@ -95,6 +95,10 @@ "Update": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" + }, + "UpdateKmsKey": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" } } } diff --git a/packages/google-cloud-compute/src/v1beta/gapic_metadata.json b/packages/google-cloud-compute/src/v1beta/gapic_metadata.json index 863cc5800337..713debdb323b 100644 --- a/packages/google-cloud-compute/src/v1beta/gapic_metadata.json +++ b/packages/google-cloud-compute/src/v1beta/gapic_metadata.json @@ -805,6 +805,11 @@ "update" ] }, + "UpdateKmsKey": { + "methods": [ + "updateKmsKey" + ] + }, "AggregatedList": { "methods": [ "aggregatedList", @@ -909,6 +914,11 @@ "update" ] }, + "UpdateKmsKey": { + "methods": [ + "updateKmsKey" + ] + }, "AggregatedList": { "methods": [ "aggregatedList", @@ -6854,6 +6864,11 @@ "get" ] }, + "GetHealth": { + "methods": [ + "getHealth" + ] + }, "Insert": { "methods": [ "insert" @@ -6898,6 +6913,11 @@ "get" ] }, + "GetHealth": { + "methods": [ + "getHealth" + ] + }, "Insert": { "methods": [ "insert" @@ -7016,6 +7036,11 @@ "update" ] }, + "UpdateKmsKey": { + "methods": [ + "updateKmsKey" + ] + }, "List": { "methods": [ "list", @@ -7108,6 +7133,11 @@ "update" ] }, + "UpdateKmsKey": { + "methods": [ + "updateKmsKey" + ] + }, "List": { "methods": [ "list", @@ -7478,6 +7508,11 @@ "get" ] }, + "GetHealth": { + "methods": [ + "getHealth" + ] + }, "Insert": { "methods": [ "insert" @@ -7522,6 +7557,11 @@ "get" ] }, + "GetHealth": { + "methods": [ + "getHealth" + ] + }, "Insert": { "methods": [ "insert" @@ -9147,6 +9187,11 @@ "testIamPermissions" ] }, + "UpdateKmsKey": { + "methods": [ + "updateKmsKey" + ] + }, "List": { "methods": [ "list", @@ -9194,6 +9239,11 @@ "testIamPermissions" ] }, + "UpdateKmsKey": { + "methods": [ + "updateKmsKey" + ] + }, "List": { "methods": [ "list", @@ -11097,6 +11147,11 @@ "testIamPermissions" ] }, + "UpdateKmsKey": { + "methods": [ + "updateKmsKey" + ] + }, "AggregatedList": { "methods": [ "aggregatedList", @@ -11151,6 +11206,11 @@ "testIamPermissions" ] }, + "UpdateKmsKey": { + "methods": [ + "updateKmsKey" + ] + }, "AggregatedList": { "methods": [ "aggregatedList", 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 index fdd8c0a8962f..dd67e1e09df2 100644 --- 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 @@ -225,7 +225,7 @@ export class RegionCompositeHealthChecksClient { // 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']; + ['aggregatedList', 'delete', 'get', 'getHealth', 'insert', 'list', 'patch', 'testIamPermissions']; for (const methodName of regionCompositeHealthChecksStubMethods) { const callPromise = this.regionCompositeHealthChecksStub.then( stub => (...args: Array<{}>) => { @@ -547,6 +547,107 @@ export class RegionCompositeHealthChecksClient { throw error; }); } +/** + * Gets the most recent health check results for this + * regional CompositeHealthCheck. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.compositeHealthCheck + * Name of the CompositeHealthCheck resource to get health for. + * @param {string} request.project + * Name of the project scoping 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.CompositeHealthCheckHealth|CompositeHealthCheckHealth}. + * 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_health.js + * region_tag:compute_v1beta_generated_RegionCompositeHealthChecks_GetHealth_async + */ + getHealth( + request?: protos.google.cloud.compute.v1beta.IGetHealthRegionCompositeHealthCheckRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.ICompositeHealthCheckHealth, + protos.google.cloud.compute.v1beta.IGetHealthRegionCompositeHealthCheckRequest|undefined, {}|undefined + ]>; + getHealth( + request: protos.google.cloud.compute.v1beta.IGetHealthRegionCompositeHealthCheckRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.ICompositeHealthCheckHealth, + protos.google.cloud.compute.v1beta.IGetHealthRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): void; + getHealth( + request: protos.google.cloud.compute.v1beta.IGetHealthRegionCompositeHealthCheckRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.ICompositeHealthCheckHealth, + protos.google.cloud.compute.v1beta.IGetHealthRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): void; + getHealth( + request?: protos.google.cloud.compute.v1beta.IGetHealthRegionCompositeHealthCheckRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.ICompositeHealthCheckHealth, + protos.google.cloud.compute.v1beta.IGetHealthRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.ICompositeHealthCheckHealth, + protos.google.cloud.compute.v1beta.IGetHealthRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.ICompositeHealthCheckHealth, + protos.google.cloud.compute.v1beta.IGetHealthRegionCompositeHealthCheckRequest|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('getHealth request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.ICompositeHealthCheckHealth, + protos.google.cloud.compute.v1beta.IGetHealthRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('getHealth response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.getHealth(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.ICompositeHealthCheckHealth, + protos.google.cloud.compute.v1beta.IGetHealthRegionCompositeHealthCheckRequest|undefined, + {}|undefined + ]) => { + this._log.info('getHealth 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. 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 index 77127c224e3d..f9470d8413fc 100644 --- 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 @@ -32,6 +32,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "GetHealth": { + "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/region_disks_client.ts b/packages/google-cloud-compute/src/v1beta/region_disks_client.ts index c7d221907d49..5e03ce2e72b1 100644 --- a/packages/google-cloud-compute/src/v1beta/region_disks_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_disks_client.ts @@ -223,7 +223,7 @@ export class RegionDisksClient { // Iterate over each of the methods that the service provides // and create an API call method for each. const regionDisksStubMethods = - ['addResourcePolicies', 'bulkInsert', 'createSnapshot', 'delete', 'get', 'getIamPolicy', 'insert', 'list', 'removeResourcePolicies', 'resize', 'setIamPolicy', 'setLabels', 'startAsyncReplication', 'stopAsyncReplication', 'stopGroupAsyncReplication', 'testIamPermissions', 'update']; + ['addResourcePolicies', 'bulkInsert', 'createSnapshot', 'delete', 'get', 'getIamPolicy', 'insert', 'list', 'removeResourcePolicies', 'resize', 'setIamPolicy', 'setLabels', 'startAsyncReplication', 'stopAsyncReplication', 'stopGroupAsyncReplication', 'testIamPermissions', 'update', 'updateKmsKey']; for (const methodName of regionDisksStubMethods) { const callPromise = this.regionDisksStub.then( stub => (...args: Array<{}>) => { @@ -2182,6 +2182,127 @@ export class RegionDisksClient { throw error; }); } +/** + * Rotates the customer-managed + * encryption key to the latest version for the specified persistent disk. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.disk + * Name of the Disk resource, should conform to RFC1035. + * @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.RegionDiskUpdateKmsKeyRequest} request.regionDiskUpdateKmsKeyRequestResource + * 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). + * @param {object} [options] + * Call options. See {@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_disks.update_kms_key.js + * region_tag:compute_v1beta_generated_RegionDisks_UpdateKmsKey_async + */ + updateKmsKey( + request?: protos.google.cloud.compute.v1beta.IUpdateKmsKeyRegionDiskRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>; + updateKmsKey( + request: protos.google.cloud.compute.v1beta.IUpdateKmsKeyRegionDiskRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateKmsKeyRegionDiskRequest|null|undefined, + {}|null|undefined>): void; + updateKmsKey( + request: protos.google.cloud.compute.v1beta.IUpdateKmsKeyRegionDiskRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateKmsKeyRegionDiskRequest|null|undefined, + {}|null|undefined>): void; + updateKmsKey( + request?: protos.google.cloud.compute.v1beta.IUpdateKmsKeyRegionDiskRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateKmsKeyRegionDiskRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateKmsKeyRegionDiskRequest|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 ?? '', + 'disk': request.disk ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('updateKmsKey request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateKmsKeyRegionDiskRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('updateKmsKey response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.updateKmsKey(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 the list of persistent disks contained within diff --git a/packages/google-cloud-compute/src/v1beta/region_disks_client_config.json b/packages/google-cloud-compute/src/v1beta/region_disks_client_config.json index 0d1ffd05afeb..90499b131fb3 100644 --- a/packages/google-cloud-compute/src/v1beta/region_disks_client_config.json +++ b/packages/google-cloud-compute/src/v1beta/region_disks_client_config.json @@ -87,6 +87,10 @@ "Update": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" + }, + "UpdateKmsKey": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" } } } 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 60d1ee43d7c6..20acb1fdb5b8 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 @@ -225,7 +225,7 @@ export class RegionHealthSourcesClient { // Iterate over each of the methods that the service provides // and create an API call method for each. const regionHealthSourcesStubMethods = - ['aggregatedList', 'delete', 'get', 'insert', 'list', 'patch', 'testIamPermissions']; + ['aggregatedList', 'delete', 'get', 'getHealth', 'insert', 'list', 'patch', 'testIamPermissions']; for (const methodName of regionHealthSourcesStubMethods) { const callPromise = this.regionHealthSourcesStub.then( stub => (...args: Array<{}>) => { @@ -547,6 +547,107 @@ export class RegionHealthSourcesClient { throw error; }); } +/** + * Gets the most recent health check results for this + * regional HealthSource. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.healthSource + * Name of the HealthSource resource to get health for. + * @param {string} request.project + * Name of the project scoping 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.HealthSourceHealth|HealthSourceHealth}. + * 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_sources.get_health.js + * region_tag:compute_v1beta_generated_RegionHealthSources_GetHealth_async + */ + getHealth( + request?: protos.google.cloud.compute.v1beta.IGetHealthRegionHealthSourceRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.IHealthSourceHealth, + protos.google.cloud.compute.v1beta.IGetHealthRegionHealthSourceRequest|undefined, {}|undefined + ]>; + getHealth( + request: protos.google.cloud.compute.v1beta.IGetHealthRegionHealthSourceRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IHealthSourceHealth, + protos.google.cloud.compute.v1beta.IGetHealthRegionHealthSourceRequest|null|undefined, + {}|null|undefined>): void; + getHealth( + request: protos.google.cloud.compute.v1beta.IGetHealthRegionHealthSourceRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IHealthSourceHealth, + protos.google.cloud.compute.v1beta.IGetHealthRegionHealthSourceRequest|null|undefined, + {}|null|undefined>): void; + getHealth( + request?: protos.google.cloud.compute.v1beta.IGetHealthRegionHealthSourceRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IHealthSourceHealth, + protos.google.cloud.compute.v1beta.IGetHealthRegionHealthSourceRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IHealthSourceHealth, + protos.google.cloud.compute.v1beta.IGetHealthRegionHealthSourceRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.IHealthSourceHealth, + protos.google.cloud.compute.v1beta.IGetHealthRegionHealthSourceRequest|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_source': request.healthSource ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('getHealth request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IHealthSourceHealth, + protos.google.cloud.compute.v1beta.IGetHealthRegionHealthSourceRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('getHealth response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.getHealth(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.IHealthSourceHealth, + protos.google.cloud.compute.v1beta.IGetHealthRegionHealthSourceRequest|undefined, + {}|undefined + ]) => { + this._log.info('getHealth 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 HealthSource in the specified project in the given region * using the parameters that are included in the request. diff --git a/packages/google-cloud-compute/src/v1beta/region_health_sources_client_config.json b/packages/google-cloud-compute/src/v1beta/region_health_sources_client_config.json index 7b8f2684e680..b0dd20946b96 100644 --- a/packages/google-cloud-compute/src/v1beta/region_health_sources_client_config.json +++ b/packages/google-cloud-compute/src/v1beta/region_health_sources_client_config.json @@ -32,6 +32,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "GetHealth": { + "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/region_snapshots_client.ts b/packages/google-cloud-compute/src/v1beta/region_snapshots_client.ts index 8a62d1c6e028..132e9752a20a 100644 --- a/packages/google-cloud-compute/src/v1beta/region_snapshots_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_snapshots_client.ts @@ -223,7 +223,7 @@ export class RegionSnapshotsClient { // Iterate over each of the methods that the service provides // and create an API call method for each. const regionSnapshotsStubMethods = - ['delete', 'get', 'getIamPolicy', 'insert', 'list', 'setIamPolicy', 'setLabels', 'testIamPermissions']; + ['delete', 'get', 'getIamPolicy', 'insert', 'list', 'setIamPolicy', 'setLabels', 'testIamPermissions', 'updateKmsKey']; for (const methodName of regionSnapshotsStubMethods) { const callPromise = this.regionSnapshotsStub.then( stub => (...args: Array<{}>) => { @@ -1100,6 +1100,127 @@ export class RegionSnapshotsClient { throw error; }); } +/** + * Rotates the customer-managed + * encryption key to the latest version for the specified snapshot. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region for this request. + * @param {google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest} request.regionSnapshotUpdateKmsKeyRequestResource + * 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). + * @param {string} request.snapshot + * Name of the snapshot resource to update. 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 + * 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_snapshots.update_kms_key.js + * region_tag:compute_v1beta_generated_RegionSnapshots_UpdateKmsKey_async + */ + updateKmsKey( + request?: protos.google.cloud.compute.v1beta.IUpdateKmsKeyRegionSnapshotRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>; + updateKmsKey( + request: protos.google.cloud.compute.v1beta.IUpdateKmsKeyRegionSnapshotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateKmsKeyRegionSnapshotRequest|null|undefined, + {}|null|undefined>): void; + updateKmsKey( + request: protos.google.cloud.compute.v1beta.IUpdateKmsKeyRegionSnapshotRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateKmsKeyRegionSnapshotRequest|null|undefined, + {}|null|undefined>): void; + updateKmsKey( + request?: protos.google.cloud.compute.v1beta.IUpdateKmsKeyRegionSnapshotRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateKmsKeyRegionSnapshotRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateKmsKeyRegionSnapshotRequest|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 ?? '', + 'snapshot': request.snapshot ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('updateKmsKey request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateKmsKeyRegionSnapshotRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('updateKmsKey response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.updateKmsKey(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 the list of Snapshot resources contained within diff --git a/packages/google-cloud-compute/src/v1beta/region_snapshots_client_config.json b/packages/google-cloud-compute/src/v1beta/region_snapshots_client_config.json index 03bdfb602961..a430221edda3 100644 --- a/packages/google-cloud-compute/src/v1beta/region_snapshots_client_config.json +++ b/packages/google-cloud-compute/src/v1beta/region_snapshots_client_config.json @@ -51,6 +51,10 @@ "TestIamPermissions": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" + }, + "UpdateKmsKey": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" } } } diff --git a/packages/google-cloud-compute/src/v1beta/snapshots_client.ts b/packages/google-cloud-compute/src/v1beta/snapshots_client.ts index 20535a623c2a..6c552819ccea 100644 --- a/packages/google-cloud-compute/src/v1beta/snapshots_client.ts +++ b/packages/google-cloud-compute/src/v1beta/snapshots_client.ts @@ -225,7 +225,7 @@ export class SnapshotsClient { // Iterate over each of the methods that the service provides // and create an API call method for each. const snapshotsStubMethods = - ['aggregatedList', 'delete', 'get', 'getIamPolicy', 'insert', 'list', 'setIamPolicy', 'setLabels', 'testIamPermissions']; + ['aggregatedList', 'delete', 'get', 'getIamPolicy', 'insert', 'list', 'setIamPolicy', 'setLabels', 'testIamPermissions', 'updateKmsKey']; for (const methodName of snapshotsStubMethods) { const callPromise = this.snapshotsStub.then( stub => (...args: Array<{}>) => { @@ -1069,6 +1069,124 @@ export class SnapshotsClient { throw error; }); } +/** + * Rotates the customer-managed + * encryption key to the latest version for the specified snapshot. + * + * @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.snapshot + * Name of the snapshot resource to update. Should conform to RFC1035. + * @param {google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest} request.snapshotUpdateKmsKeyRequestResource + * 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 + * 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/snapshots.update_kms_key.js + * region_tag:compute_v1beta_generated_Snapshots_UpdateKmsKey_async + */ + updateKmsKey( + request?: protos.google.cloud.compute.v1beta.IUpdateKmsKeySnapshotRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>; + updateKmsKey( + request: protos.google.cloud.compute.v1beta.IUpdateKmsKeySnapshotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateKmsKeySnapshotRequest|null|undefined, + {}|null|undefined>): void; + updateKmsKey( + request: protos.google.cloud.compute.v1beta.IUpdateKmsKeySnapshotRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateKmsKeySnapshotRequest|null|undefined, + {}|null|undefined>): void; + updateKmsKey( + request?: protos.google.cloud.compute.v1beta.IUpdateKmsKeySnapshotRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateKmsKeySnapshotRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateKmsKeySnapshotRequest|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 ?? '', + 'snapshot': request.snapshot ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('updateKmsKey request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateKmsKeySnapshotRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('updateKmsKey response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.updateKmsKey(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; + }); + } /** diff --git a/packages/google-cloud-compute/src/v1beta/snapshots_client_config.json b/packages/google-cloud-compute/src/v1beta/snapshots_client_config.json index 5f8c3aa9fcb2..5cbc80a3eae7 100644 --- a/packages/google-cloud-compute/src/v1beta/snapshots_client_config.json +++ b/packages/google-cloud-compute/src/v1beta/snapshots_client_config.json @@ -55,6 +55,10 @@ "TestIamPermissions": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" + }, + "UpdateKmsKey": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" } } } diff --git a/packages/google-cloud-compute/system-test/install.ts b/packages/google-cloud-compute/system-test/install.ts index 394f3362d203..f66069aa3940 100644 --- a/packages/google-cloud-compute/system-test/install.ts +++ b/packages/google-cloud-compute/system-test/install.ts @@ -40,7 +40,7 @@ describe('📦 pack-n-play test', () => { packageDir: process.cwd(), sample: { description: 'JavaScript user can use the library', - ts: readFileSync('./system-test/fixtures/sample/src/index.js').toString() + cjs: readFileSync('./system-test/fixtures/sample/src/index.js').toString() } }; await packNTest(options); diff --git a/packages/google-cloud-compute/test/gapic_backend_buckets_v1.ts b/packages/google-cloud-compute/test/gapic_backend_buckets_v1.ts index 0e82307d9234..3fe09c1a191d 100644 --- a/packages/google-cloud-compute/test/gapic_backend_buckets_v1.ts +++ b/packages/google-cloud-compute/test/gapic_backend_buckets_v1.ts @@ -1578,6 +1578,78 @@ describe('v1.BackendBucketsClient', () => { }); }); + describe('aggregatedList', () => { + + it('uses async iteration with aggregatedList without error', async () => { + const client = new backendbucketsModule.v1.BackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.AggregatedListBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.AggregatedListBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`; + const expectedResponse = [ + ['tuple_key_1', generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucketsScopedList())], + ['tuple_key_2', generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucketsScopedList())], + ['tuple_key_3', generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucketsScopedList())], + ]; + client.descriptors.page.aggregatedList.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: Array<[string, protos.google.cloud.compute.v1.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.v1.BackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.AggregatedListBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.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.v1.BackendBucketsClient({ @@ -1822,4 +1894,249 @@ describe('v1.BackendBucketsClient', () => { ); }); }); + + describe('listUsable', () => { + it('invokes listUsable without error', async () => { + const client = new backendbucketsModule.v1.BackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListUsableBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListUsableBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1.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 backendbucketsModule.v1.BackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListUsableBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListUsableBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucket()), + ]; + client.innerApiCalls.listUsable = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listUsable( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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 backendbucketsModule.v1.BackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListUsableBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListUsableBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`; + 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 backendbucketsModule.v1.BackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListUsableBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListUsableBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1.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.v1.BackendBucket[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1.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 backendbucketsModule.v1.BackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListUsableBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListUsableBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`; + 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.v1.BackendBucket[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1.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 backendbucketsModule.v1.BackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListUsableBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListUsableBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucket()), + ]; + client.descriptors.page.listUsable.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.compute.v1.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 backendbucketsModule.v1.BackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListUsableBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListUsableBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`; + 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.v1.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_disks_v1.ts b/packages/google-cloud-compute/test/gapic_disks_v1.ts index 098e377377ea..8e9e14650d0a 100644 --- a/packages/google-cloud-compute/test/gapic_disks_v1.ts +++ b/packages/google-cloud-compute/test/gapic_disks_v1.ts @@ -2466,6 +2466,138 @@ describe('v1.DisksClient', () => { }); }); + describe('updateKmsKey', () => { + it('invokes updateKmsKey without error', async () => { + const client = new disksModule.v1.DisksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateKmsKeyDiskRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyDiskRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyDiskRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyDiskRequest', ['disk']); + request.disk = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&disk=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.updateKmsKey = stubSimpleCall(expectedResponse); + const [response] = await client.updateKmsKey(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateKmsKey without error using callback', async () => { + const client = new disksModule.v1.DisksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateKmsKeyDiskRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyDiskRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyDiskRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyDiskRequest', ['disk']); + request.disk = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&disk=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.updateKmsKey = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateKmsKey( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateKmsKey with error', async () => { + const client = new disksModule.v1.DisksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateKmsKeyDiskRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyDiskRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyDiskRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyDiskRequest', ['disk']); + request.disk = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&disk=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateKmsKey = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.updateKmsKey(request), expectedError); + const actualRequest = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateKmsKey with closed client', async () => { + const client = new disksModule.v1.DisksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateKmsKeyDiskRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyDiskRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyDiskRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyDiskRequest', ['disk']); + request.disk = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.updateKmsKey(request), expectedError); + }); + }); + describe('aggregatedList', () => { it('uses async iteration with aggregatedList without error', async () => { diff --git a/packages/google-cloud-compute/test/gapic_disks_v1beta.ts b/packages/google-cloud-compute/test/gapic_disks_v1beta.ts index 1f9a0a05ad57..494d75a450ed 100644 --- a/packages/google-cloud-compute/test/gapic_disks_v1beta.ts +++ b/packages/google-cloud-compute/test/gapic_disks_v1beta.ts @@ -2466,6 +2466,138 @@ describe('v1beta.DisksClient', () => { }); }); + describe('updateKmsKey', () => { + it('invokes updateKmsKey without error', async () => { + const client = new disksModule.v1beta.DisksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest', ['disk']); + request.disk = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&disk=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.updateKmsKey = stubSimpleCall(expectedResponse); + const [response] = await client.updateKmsKey(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateKmsKey without error using callback', async () => { + const client = new disksModule.v1beta.DisksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest', ['disk']); + request.disk = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&disk=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.updateKmsKey = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateKmsKey( + 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.updateKmsKey as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateKmsKey with error', async () => { + const client = new disksModule.v1beta.DisksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest', ['disk']); + request.disk = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&disk=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateKmsKey = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.updateKmsKey(request), expectedError); + const actualRequest = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateKmsKey with closed client', async () => { + const client = new disksModule.v1beta.DisksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyDiskRequest', ['disk']); + request.disk = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.updateKmsKey(request), expectedError); + }); + }); + describe('aggregatedList', () => { it('uses async iteration with aggregatedList without error', async () => { diff --git a/packages/google-cloud-compute/test/gapic_instant_snapshot_groups_v1.ts b/packages/google-cloud-compute/test/gapic_instant_snapshot_groups_v1.ts new file mode 100644 index 000000000000..944c65361a96 --- /dev/null +++ b/packages/google-cloud-compute/test/gapic_instant_snapshot_groups_v1.ts @@ -0,0 +1,1318 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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 instantsnapshotgroupsModule 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('v1.InstantSnapshotGroupsClient', () => { + 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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient(); + 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 = instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient.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 = instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets apiEndpoint according to universe domain camelCase', () => { + const client = new instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({universeDomain: 'example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + it('sets apiEndpoint according to universe domain snakeCase', () => { + const client = new instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient(); + 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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); + }); + + it('has port', () => { + const port = instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.instantSnapshotGroupsStub, undefined); + await client.initialize(); + assert(client.instantSnapshotGroupsStub); + }); + + it('has close method for the initialized client', done => { + const client = new instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize().catch(err => {throw err}); + assert(client.instantSnapshotGroupsStub); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has close method for the non-initialized client', done => { + const client = new instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.instantSnapshotGroupsStub, undefined); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + 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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + 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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&instant_snapshot_group=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&instant_snapshot_group=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.delete = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.delete( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&instant_snapshot_group=${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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = 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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&instant_snapshot_group=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshotGroup() + ); + 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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&instant_snapshot_group=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshotGroup() + ); + client.innerApiCalls.get = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.get( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.IInstantSnapshotGroup|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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&instant_snapshot_group=${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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = 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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Policy() + ); + client.innerApiCalls.getIamPolicy = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest', ['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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.insert = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.insert( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest', ['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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest', ['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('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Policy() + ); + client.innerApiCalls.setIamPolicy = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest', ['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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.TestPermissionsResponse() + ); + client.innerApiCalls.testIamPermissions = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest', ['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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1.InstantSnapshotGroup()), + ]; + 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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1.InstantSnapshotGroup()), + ]; + client.innerApiCalls.list = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.list( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.IInstantSnapshotGroup[]|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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest', ['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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1.InstantSnapshotGroup()), + ]; + client.descriptors.page.list.createStream = stubPageStreamingCall(expectedResponse); + const stream = client.listStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1.InstantSnapshotGroup[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1.InstantSnapshotGroup) => { + 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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest', ['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.v1.InstantSnapshotGroup[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1.InstantSnapshotGroup) => { + 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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1.InstantSnapshotGroup()), + ]; + client.descriptors.page.list.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.compute.v1.IInstantSnapshotGroup[] = []; + 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 instantsnapshotgroupsModule.v1.InstantSnapshotGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest', ['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.v1.IInstantSnapshotGroup[] = []; + 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_backend_buckets_v1.ts b/packages/google-cloud-compute/test/gapic_region_backend_buckets_v1.ts new file mode 100644 index 000000000000..3a184355bfed --- /dev/null +++ b/packages/google-cloud-compute/test/gapic_region_backend_buckets_v1.ts @@ -0,0 +1,1716 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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('v1.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.v1.RegionBackendBucketsClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new regionbackendbucketsModule.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.RegionBackendBucketsClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); + }); + + it('has port', () => { + const port = regionbackendbucketsModule.v1.RegionBackendBucketsClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new regionbackendbucketsModule.v1.RegionBackendBucketsClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new regionbackendbucketsModule.v1.RegionBackendBucketsClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new regionbackendbucketsModule.v1.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.v1.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.v1.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.v1.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.v1.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.v1.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionBackendBucketRequest', ['backendBucket']); + request.backendBucket = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&backend_bucket=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionBackendBucketRequest', ['backendBucket']); + request.backendBucket = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&backend_bucket=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.delete = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.delete( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionBackendBucketRequest', ['backendBucket']); + request.backendBucket = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&backend_bucket=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionBackendBucketRequest', ['backendBucket']); + request.backendBucket = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&backend_bucket=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.BackendBucket() + ); + client.innerApiCalls.get = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.get( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Policy() + ); + client.innerApiCalls.getIamPolicy = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.insert = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.insert( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.PatchRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionBackendBucketRequest', ['backendBucket']); + request.backendBucket = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&backend_bucket=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.PatchRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionBackendBucketRequest', ['backendBucket']); + request.backendBucket = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&backend_bucket=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.patch = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.patch( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.PatchRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.PatchRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Policy() + ); + client.innerApiCalls.setIamPolicy = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.TestPermissionsResponse() + ); + client.innerApiCalls.testIamPermissions = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionBackendBucketsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionBackendBucketsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucket()), + ]; + client.innerApiCalls.list = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.list( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionBackendBucketsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1.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.v1.BackendBucket[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.BackendBucket[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionBackendBucketsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucket()), + ]; + client.descriptors.page.list.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.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.v1.RegionBackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucket()), + ]; + client.innerApiCalls.listUsable = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listUsable( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1.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.v1.BackendBucket[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.BackendBucket[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1.BackendBucket()), + ]; + client.descriptors.page.listUsable.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.compute.v1.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.v1.RegionBackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.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_v1.ts b/packages/google-cloud-compute/test/gapic_region_composite_health_checks_v1.ts index 55cdf09af5c7..bb9bcbb8ec78 100644 --- a/packages/google-cloud-compute/test/gapic_region_composite_health_checks_v1.ts +++ b/packages/google-cloud-compute/test/gapic_region_composite_health_checks_v1.ts @@ -534,6 +534,138 @@ describe('v1.RegionCompositeHealthChecksClient', () => { }); }); + describe('getHealth', () => { + it('invokes getHealth without error', async () => { + const client = new regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&composite_health_check=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.CompositeHealthCheckHealth() + ); + client.innerApiCalls.getHealth = stubSimpleCall(expectedResponse); + const [response] = await client.getHealth(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.getHealth as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getHealth as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getHealth without error using callback', async () => { + const client = new regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&composite_health_check=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.CompositeHealthCheckHealth() + ); + client.innerApiCalls.getHealth = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getHealth( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.ICompositeHealthCheckHealth|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.getHealth as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getHealth as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getHealth with error', async () => { + const client = new regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&composite_health_check=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.getHealth = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.getHealth(request), expectedError); + const actualRequest = (client.innerApiCalls.getHealth as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getHealth as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getHealth with closed client', async () => { + const client = new regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.getHealth(request), expectedError); + }); + }); + describe('insert', () => { it('invokes insert without error', async () => { const client = new regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ 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 index 87431b32b424..fb7a63a5c3c2 100644 --- 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 @@ -534,6 +534,138 @@ describe('v1beta.RegionCompositeHealthChecksClient', () => { }); }); + describe('getHealth', () => { + it('invokes getHealth 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.GetHealthRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&composite_health_check=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.CompositeHealthCheckHealth() + ); + client.innerApiCalls.getHealth = stubSimpleCall(expectedResponse); + const [response] = await client.getHealth(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.getHealth as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getHealth as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getHealth 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.GetHealthRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&composite_health_check=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.CompositeHealthCheckHealth() + ); + client.innerApiCalls.getHealth = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getHealth( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.ICompositeHealthCheckHealth|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.getHealth as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getHealth as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getHealth 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.GetHealthRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&composite_health_check=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.getHealth = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.getHealth(request), expectedError); + const actualRequest = (client.innerApiCalls.getHealth as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getHealth as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getHealth 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.GetHealthRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetHealthRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.getHealth(request), expectedError); + }); + }); + describe('insert', () => { it('invokes insert without error', async () => { const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ diff --git a/packages/google-cloud-compute/test/gapic_region_disks_v1.ts b/packages/google-cloud-compute/test/gapic_region_disks_v1.ts index dd10b103d4f8..7a14dd7aefb3 100644 --- a/packages/google-cloud-compute/test/gapic_region_disks_v1.ts +++ b/packages/google-cloud-compute/test/gapic_region_disks_v1.ts @@ -2346,6 +2346,138 @@ describe('v1.RegionDisksClient', () => { }); }); + describe('updateKmsKey', () => { + it('invokes updateKmsKey without error', async () => { + const client = new regiondisksModule.v1.RegionDisksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest', ['disk']); + request.disk = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&disk=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.updateKmsKey = stubSimpleCall(expectedResponse); + const [response] = await client.updateKmsKey(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateKmsKey without error using callback', async () => { + const client = new regiondisksModule.v1.RegionDisksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest', ['disk']); + request.disk = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&disk=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.updateKmsKey = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateKmsKey( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateKmsKey with error', async () => { + const client = new regiondisksModule.v1.RegionDisksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest', ['disk']); + request.disk = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&disk=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateKmsKey = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.updateKmsKey(request), expectedError); + const actualRequest = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateKmsKey with closed client', async () => { + const client = new regiondisksModule.v1.RegionDisksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest', ['disk']); + request.disk = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.updateKmsKey(request), expectedError); + }); + }); + describe('list', () => { it('invokes list without error', async () => { const client = new regiondisksModule.v1.RegionDisksClient({ diff --git a/packages/google-cloud-compute/test/gapic_region_disks_v1beta.ts b/packages/google-cloud-compute/test/gapic_region_disks_v1beta.ts index 8bb0bae120f1..a8a4f7b94c2a 100644 --- a/packages/google-cloud-compute/test/gapic_region_disks_v1beta.ts +++ b/packages/google-cloud-compute/test/gapic_region_disks_v1beta.ts @@ -2346,6 +2346,138 @@ describe('v1beta.RegionDisksClient', () => { }); }); + describe('updateKmsKey', () => { + it('invokes updateKmsKey without error', async () => { + const client = new regiondisksModule.v1beta.RegionDisksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest', ['disk']); + request.disk = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&disk=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.updateKmsKey = stubSimpleCall(expectedResponse); + const [response] = await client.updateKmsKey(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateKmsKey without error using callback', async () => { + const client = new regiondisksModule.v1beta.RegionDisksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest', ['disk']); + request.disk = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&disk=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.updateKmsKey = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateKmsKey( + 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.updateKmsKey as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateKmsKey with error', async () => { + const client = new regiondisksModule.v1beta.RegionDisksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest', ['disk']); + request.disk = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&disk=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateKmsKey = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.updateKmsKey(request), expectedError); + const actualRequest = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateKmsKey with closed client', async () => { + const client = new regiondisksModule.v1beta.RegionDisksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyRegionDiskRequest', ['disk']); + request.disk = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.updateKmsKey(request), expectedError); + }); + }); + describe('list', () => { it('invokes list without error', async () => { const client = new regiondisksModule.v1beta.RegionDisksClient({ diff --git a/packages/google-cloud-compute/test/gapic_region_health_sources_v1.ts b/packages/google-cloud-compute/test/gapic_region_health_sources_v1.ts index 058c8e16e21f..5b924b00309c 100644 --- a/packages/google-cloud-compute/test/gapic_region_health_sources_v1.ts +++ b/packages/google-cloud-compute/test/gapic_region_health_sources_v1.ts @@ -534,6 +534,138 @@ describe('v1.RegionHealthSourcesClient', () => { }); }); + describe('getHealth', () => { + it('invokes getHealth without error', async () => { + const client = new regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest', ['healthSource']); + request.healthSource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_source=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.HealthSourceHealth() + ); + client.innerApiCalls.getHealth = stubSimpleCall(expectedResponse); + const [response] = await client.getHealth(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.getHealth as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getHealth as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getHealth without error using callback', async () => { + const client = new regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest', ['healthSource']); + request.healthSource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_source=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.HealthSourceHealth() + ); + client.innerApiCalls.getHealth = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getHealth( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.IHealthSourceHealth|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.getHealth as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getHealth as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getHealth with error', async () => { + const client = new regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest', ['healthSource']); + request.healthSource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_source=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.getHealth = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.getHealth(request), expectedError); + const actualRequest = (client.innerApiCalls.getHealth as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getHealth as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getHealth with closed client', async () => { + const client = new regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest', ['healthSource']); + request.healthSource = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.getHealth(request), expectedError); + }); + }); + describe('insert', () => { it('invokes insert without error', async () => { const client = new regionhealthsourcesModule.v1.RegionHealthSourcesClient({ diff --git a/packages/google-cloud-compute/test/gapic_region_health_sources_v1beta.ts b/packages/google-cloud-compute/test/gapic_region_health_sources_v1beta.ts index e4dd6b265a20..7e4c89258399 100644 --- a/packages/google-cloud-compute/test/gapic_region_health_sources_v1beta.ts +++ b/packages/google-cloud-compute/test/gapic_region_health_sources_v1beta.ts @@ -534,6 +534,138 @@ describe('v1beta.RegionHealthSourcesClient', () => { }); }); + describe('getHealth', () => { + it('invokes getHealth without error', async () => { + const client = new regionhealthsourcesModule.v1beta.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest', ['healthSource']); + request.healthSource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_source=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.HealthSourceHealth() + ); + client.innerApiCalls.getHealth = stubSimpleCall(expectedResponse); + const [response] = await client.getHealth(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.getHealth as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getHealth as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getHealth without error using callback', async () => { + const client = new regionhealthsourcesModule.v1beta.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest', ['healthSource']); + request.healthSource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_source=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.HealthSourceHealth() + ); + client.innerApiCalls.getHealth = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getHealth( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IHealthSourceHealth|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.getHealth as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getHealth as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getHealth with error', async () => { + const client = new regionhealthsourcesModule.v1beta.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest', ['healthSource']); + request.healthSource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_source=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.getHealth = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.getHealth(request), expectedError); + const actualRequest = (client.innerApiCalls.getHealth as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getHealth as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getHealth with closed client', async () => { + const client = new regionhealthsourcesModule.v1beta.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetHealthRegionHealthSourceRequest', ['healthSource']); + request.healthSource = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.getHealth(request), expectedError); + }); + }); + describe('insert', () => { it('invokes insert without error', async () => { const client = new regionhealthsourcesModule.v1beta.RegionHealthSourcesClient({ diff --git a/packages/google-cloud-compute/test/gapic_region_instance_group_manager_resize_requests_v1.ts b/packages/google-cloud-compute/test/gapic_region_instance_group_manager_resize_requests_v1.ts new file mode 100644 index 000000000000..ed1edc29283c --- /dev/null +++ b/packages/google-cloud-compute/test/gapic_region_instance_group_manager_resize_requests_v1.ts @@ -0,0 +1,1123 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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 regioninstancegroupmanagerresizerequestsModule 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('v1.RegionInstanceGroupManagerResizeRequestsClient', () => { + 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 regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient(); + 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 = regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient.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 = regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets apiEndpoint according to universe domain camelCase', () => { + const client = new regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({universeDomain: 'example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + it('sets apiEndpoint according to universe domain snakeCase', () => { + const client = new regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({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 regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient(); + 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 regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({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 regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); + }); + + it('has port', () => { + const port = regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionInstanceGroupManagerResizeRequestsStub, undefined); + await client.initialize(); + assert(client.regionInstanceGroupManagerResizeRequestsStub); + }); + + it('has close method for the initialized client', done => { + const client = new regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize().catch(err => {throw err}); + assert(client.regionInstanceGroupManagerResizeRequestsStub); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has close method for the non-initialized client', done => { + const client = new regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionInstanceGroupManagerResizeRequestsStub, undefined); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({ + 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 regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({ + 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('cancel', () => { + it('invokes cancel without error', async () => { + const client = new regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest', ['instanceGroupManager']); + request.instanceGroupManager = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest', ['resizeRequest']); + request.resizeRequest = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&instance_group_manager=${defaultValue3 ?? '' }&resize_request=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.cancel = stubSimpleCall(expectedResponse); + const [response] = await client.cancel(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.cancel as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.cancel as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes cancel without error using callback', async () => { + const client = new regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest', ['instanceGroupManager']); + request.instanceGroupManager = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest', ['resizeRequest']); + request.resizeRequest = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&instance_group_manager=${defaultValue3 ?? '' }&resize_request=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.cancel = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.cancel( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.cancel as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.cancel as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes cancel with error', async () => { + const client = new regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest', ['instanceGroupManager']); + request.instanceGroupManager = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest', ['resizeRequest']); + request.resizeRequest = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&instance_group_manager=${defaultValue3 ?? '' }&resize_request=${defaultValue4 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.cancel = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.cancel(request), expectedError); + const actualRequest = (client.innerApiCalls.cancel as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.cancel as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes cancel with closed client', async () => { + const client = new regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest', ['instanceGroupManager']); + request.instanceGroupManager = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest', ['resizeRequest']); + request.resizeRequest = defaultValue4; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.cancel(request), expectedError); + }); + }); + + describe('delete', () => { + it('invokes delete without error', async () => { + const client = new regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest', ['instanceGroupManager']); + request.instanceGroupManager = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest', ['resizeRequest']); + request.resizeRequest = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&instance_group_manager=${defaultValue3 ?? '' }&resize_request=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.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 regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest', ['instanceGroupManager']); + request.instanceGroupManager = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest', ['resizeRequest']); + request.resizeRequest = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&instance_group_manager=${defaultValue3 ?? '' }&resize_request=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.delete = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.delete( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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 regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest', ['instanceGroupManager']); + request.instanceGroupManager = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest', ['resizeRequest']); + request.resizeRequest = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&instance_group_manager=${defaultValue3 ?? '' }&resize_request=${defaultValue4 ?? '' }`; + 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 regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest', ['instanceGroupManager']); + request.instanceGroupManager = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest', ['resizeRequest']); + request.resizeRequest = defaultValue4; + 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 regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest', ['instanceGroupManager']); + request.instanceGroupManager = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest', ['resizeRequest']); + request.resizeRequest = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&instance_group_manager=${defaultValue3 ?? '' }&resize_request=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.InstanceGroupManagerResizeRequest() + ); + 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 regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest', ['instanceGroupManager']); + request.instanceGroupManager = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest', ['resizeRequest']); + request.resizeRequest = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&instance_group_manager=${defaultValue3 ?? '' }&resize_request=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.InstanceGroupManagerResizeRequest() + ); + client.innerApiCalls.get = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.get( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.IInstanceGroupManagerResizeRequest|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 regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest', ['instanceGroupManager']); + request.instanceGroupManager = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest', ['resizeRequest']); + request.resizeRequest = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&instance_group_manager=${defaultValue3 ?? '' }&resize_request=${defaultValue4 ?? '' }`; + 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 regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest', ['instanceGroupManager']); + request.instanceGroupManager = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest', ['resizeRequest']); + request.resizeRequest = defaultValue4; + 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 regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest', ['instanceGroupManager']); + request.instanceGroupManager = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&instance_group_manager=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.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 regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest', ['instanceGroupManager']); + request.instanceGroupManager = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&instance_group_manager=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.insert = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.insert( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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 regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest', ['instanceGroupManager']); + request.instanceGroupManager = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&instance_group_manager=${defaultValue3 ?? '' }`; + 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 regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest', ['instanceGroupManager']); + request.instanceGroupManager = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.insert(request), expectedError); + }); + }); + + describe('list', () => { + it('invokes list without error', async () => { + const client = new regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest', ['instanceGroupManager']); + request.instanceGroupManager = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&instance_group_manager=${defaultValue3 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.InstanceGroupManagerResizeRequest()), + generateSampleMessage(new protos.google.cloud.compute.v1.InstanceGroupManagerResizeRequest()), + generateSampleMessage(new protos.google.cloud.compute.v1.InstanceGroupManagerResizeRequest()), + ]; + 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 regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest', ['instanceGroupManager']); + request.instanceGroupManager = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&instance_group_manager=${defaultValue3 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.InstanceGroupManagerResizeRequest()), + generateSampleMessage(new protos.google.cloud.compute.v1.InstanceGroupManagerResizeRequest()), + generateSampleMessage(new protos.google.cloud.compute.v1.InstanceGroupManagerResizeRequest()), + ]; + client.innerApiCalls.list = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.list( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.IInstanceGroupManagerResizeRequest[]|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 regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest', ['instanceGroupManager']); + request.instanceGroupManager = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&instance_group_manager=${defaultValue3 ?? '' }`; + 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 regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest', ['instanceGroupManager']); + request.instanceGroupManager = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&instance_group_manager=${defaultValue3 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.InstanceGroupManagerResizeRequest()), + generateSampleMessage(new protos.google.cloud.compute.v1.InstanceGroupManagerResizeRequest()), + generateSampleMessage(new protos.google.cloud.compute.v1.InstanceGroupManagerResizeRequest()), + ]; + client.descriptors.page.list.createStream = stubPageStreamingCall(expectedResponse); + const stream = client.listStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1.InstanceGroupManagerResizeRequest[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1.InstanceGroupManagerResizeRequest) => { + 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 regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest', ['instanceGroupManager']); + request.instanceGroupManager = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&instance_group_manager=${defaultValue3 ?? '' }`; + 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.v1.InstanceGroupManagerResizeRequest[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1.InstanceGroupManagerResizeRequest) => { + 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 regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest', ['instanceGroupManager']); + request.instanceGroupManager = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&instance_group_manager=${defaultValue3 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.InstanceGroupManagerResizeRequest()), + generateSampleMessage(new protos.google.cloud.compute.v1.InstanceGroupManagerResizeRequest()), + generateSampleMessage(new protos.google.cloud.compute.v1.InstanceGroupManagerResizeRequest()), + ]; + client.descriptors.page.list.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.compute.v1.IInstanceGroupManagerResizeRequest[] = []; + 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 regioninstancegroupmanagerresizerequestsModule.v1.RegionInstanceGroupManagerResizeRequestsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest', ['instanceGroupManager']); + request.instanceGroupManager = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&instance_group_manager=${defaultValue3 ?? '' }`; + 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.v1.IInstanceGroupManagerResizeRequest[] = []; + 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_instant_snapshot_groups_v1.ts b/packages/google-cloud-compute/test/gapic_region_instant_snapshot_groups_v1.ts new file mode 100644 index 000000000000..e8528c097e73 --- /dev/null +++ b/packages/google-cloud-compute/test/gapic_region_instant_snapshot_groups_v1.ts @@ -0,0 +1,1318 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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 regioninstantsnapshotgroupsModule 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('v1.RegionInstantSnapshotGroupsClient', () => { + 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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient(); + 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 = regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient.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 = regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets apiEndpoint according to universe domain camelCase', () => { + const client = new regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({universeDomain: 'example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + it('sets apiEndpoint according to universe domain snakeCase', () => { + const client = new regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient(); + 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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); + }); + + it('has port', () => { + const port = regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionInstantSnapshotGroupsStub, undefined); + await client.initialize(); + assert(client.regionInstantSnapshotGroupsStub); + }); + + it('has close method for the initialized client', done => { + const client = new regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize().catch(err => {throw err}); + assert(client.regionInstantSnapshotGroupsStub); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has close method for the non-initialized client', done => { + const client = new regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionInstantSnapshotGroupsStub, undefined); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + 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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + 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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&instant_snapshot_group=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&instant_snapshot_group=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.delete = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.delete( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&instant_snapshot_group=${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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = 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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&instant_snapshot_group=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshotGroup() + ); + 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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&instant_snapshot_group=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.InstantSnapshotGroup() + ); + client.innerApiCalls.get = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.get( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.IInstantSnapshotGroup|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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&instant_snapshot_group=${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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest', ['instantSnapshotGroup']); + request.instantSnapshotGroup = 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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Policy() + ); + client.innerApiCalls.getIamPolicy = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest', ['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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest', ['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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.insert = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.insert( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest', ['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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest', ['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('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Policy() + ); + client.innerApiCalls.setIamPolicy = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest', ['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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest', ['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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.TestPermissionsResponse() + ); + client.innerApiCalls.testIamPermissions = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest', ['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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest', ['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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1.InstantSnapshotGroup()), + ]; + 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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1.InstantSnapshotGroup()), + ]; + client.innerApiCalls.list = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.list( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.IInstantSnapshotGroup[]|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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest', ['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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1.InstantSnapshotGroup()), + ]; + client.descriptors.page.list.createStream = stubPageStreamingCall(expectedResponse); + const stream = client.listStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1.InstantSnapshotGroup[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1.InstantSnapshotGroup) => { + 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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest', ['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.v1.InstantSnapshotGroup[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1.InstantSnapshotGroup) => { + 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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1.InstantSnapshotGroup()), + generateSampleMessage(new protos.google.cloud.compute.v1.InstantSnapshotGroup()), + ]; + client.descriptors.page.list.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.compute.v1.IInstantSnapshotGroup[] = []; + 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 regioninstantsnapshotgroupsModule.v1.RegionInstantSnapshotGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest', ['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.v1.IInstantSnapshotGroup[] = []; + 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_snapshot_settings_v1.ts b/packages/google-cloud-compute/test/gapic_region_snapshot_settings_v1.ts new file mode 100644 index 000000000000..e2829ac3439c --- /dev/null +++ b/packages/google-cloud-compute/test/gapic_region_snapshot_settings_v1.ts @@ -0,0 +1,465 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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 regionsnapshotsettingsModule from '../src'; + +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); +} + +describe('v1.RegionSnapshotSettingsClient', () => { + 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 regionsnapshotsettingsModule.v1.RegionSnapshotSettingsClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new regionsnapshotsettingsModule.v1.RegionSnapshotSettingsClient(); + 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 = regionsnapshotsettingsModule.v1.RegionSnapshotSettingsClient.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 = regionsnapshotsettingsModule.v1.RegionSnapshotSettingsClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets apiEndpoint according to universe domain camelCase', () => { + const client = new regionsnapshotsettingsModule.v1.RegionSnapshotSettingsClient({universeDomain: 'example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + it('sets apiEndpoint according to universe domain snakeCase', () => { + const client = new regionsnapshotsettingsModule.v1.RegionSnapshotSettingsClient({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 regionsnapshotsettingsModule.v1.RegionSnapshotSettingsClient(); + 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 regionsnapshotsettingsModule.v1.RegionSnapshotSettingsClient({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 regionsnapshotsettingsModule.v1.RegionSnapshotSettingsClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); + }); + + it('has port', () => { + const port = regionsnapshotsettingsModule.v1.RegionSnapshotSettingsClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new regionsnapshotsettingsModule.v1.RegionSnapshotSettingsClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new regionsnapshotsettingsModule.v1.RegionSnapshotSettingsClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new regionsnapshotsettingsModule.v1.RegionSnapshotSettingsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionSnapshotSettingsStub, undefined); + await client.initialize(); + assert(client.regionSnapshotSettingsStub); + }); + + it('has close method for the initialized client', done => { + const client = new regionsnapshotsettingsModule.v1.RegionSnapshotSettingsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize().catch(err => {throw err}); + assert(client.regionSnapshotSettingsStub); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has close method for the non-initialized client', done => { + const client = new regionsnapshotsettingsModule.v1.RegionSnapshotSettingsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionSnapshotSettingsStub, undefined); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regionsnapshotsettingsModule.v1.RegionSnapshotSettingsClient({ + 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 regionsnapshotsettingsModule.v1.RegionSnapshotSettingsClient({ + 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 regionsnapshotsettingsModule.v1.RegionSnapshotSettingsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionSnapshotSettingRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionSnapshotSettingRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionSnapshotSettingRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.SnapshotSettings() + ); + 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 regionsnapshotsettingsModule.v1.RegionSnapshotSettingsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionSnapshotSettingRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionSnapshotSettingRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionSnapshotSettingRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.SnapshotSettings() + ); + client.innerApiCalls.get = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.get( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.ISnapshotSettings|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 regionsnapshotsettingsModule.v1.RegionSnapshotSettingsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionSnapshotSettingRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionSnapshotSettingRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionSnapshotSettingRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${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 regionsnapshotsettingsModule.v1.RegionSnapshotSettingsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionSnapshotSettingRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionSnapshotSettingRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionSnapshotSettingRequest', ['region']); + request.region = 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('patch', () => { + it('invokes patch without error', async () => { + const client = new regionsnapshotsettingsModule.v1.RegionSnapshotSettingsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.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 regionsnapshotsettingsModule.v1.RegionSnapshotSettingsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.patch = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.patch( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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 regionsnapshotsettingsModule.v1.RegionSnapshotSettingsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + 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 regionsnapshotsettingsModule.v1.RegionSnapshotSettingsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest', ['region']); + request.region = defaultValue2; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.patch(request), expectedError); + }); + }); +}); diff --git a/packages/google-cloud-compute/test/gapic_region_snapshots_v1.ts b/packages/google-cloud-compute/test/gapic_region_snapshots_v1.ts new file mode 100644 index 000000000000..7dec06f2b472 --- /dev/null +++ b/packages/google-cloud-compute/test/gapic_region_snapshots_v1.ts @@ -0,0 +1,1582 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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 regionsnapshotsModule 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('v1.RegionSnapshotsClient', () => { + 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 regionsnapshotsModule.v1.RegionSnapshotsClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new regionsnapshotsModule.v1.RegionSnapshotsClient(); + 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 = regionsnapshotsModule.v1.RegionSnapshotsClient.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 = regionsnapshotsModule.v1.RegionSnapshotsClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets apiEndpoint according to universe domain camelCase', () => { + const client = new regionsnapshotsModule.v1.RegionSnapshotsClient({universeDomain: 'example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + it('sets apiEndpoint according to universe domain snakeCase', () => { + const client = new regionsnapshotsModule.v1.RegionSnapshotsClient({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 regionsnapshotsModule.v1.RegionSnapshotsClient(); + 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 regionsnapshotsModule.v1.RegionSnapshotsClient({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 regionsnapshotsModule.v1.RegionSnapshotsClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); + }); + + it('has port', () => { + const port = regionsnapshotsModule.v1.RegionSnapshotsClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new regionsnapshotsModule.v1.RegionSnapshotsClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new regionsnapshotsModule.v1.RegionSnapshotsClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionSnapshotsStub, undefined); + await client.initialize(); + assert(client.regionSnapshotsStub); + }); + + it('has close method for the initialized client', done => { + const client = new regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize().catch(err => {throw err}); + assert(client.regionSnapshotsStub); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has close method for the non-initialized client', done => { + const client = new regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionSnapshotsStub, undefined); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regionsnapshotsModule.v1.RegionSnapshotsClient({ + 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 regionsnapshotsModule.v1.RegionSnapshotsClient({ + 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 regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionSnapshotRequest', ['snapshot']); + request.snapshot = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&snapshot=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.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 regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionSnapshotRequest', ['snapshot']); + request.snapshot = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&snapshot=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.delete = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.delete( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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 regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionSnapshotRequest', ['snapshot']); + request.snapshot = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&snapshot=${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 regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionSnapshotRequest', ['snapshot']); + request.snapshot = 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 regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionSnapshotRequest', ['snapshot']); + request.snapshot = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&snapshot=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Snapshot() + ); + 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 regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionSnapshotRequest', ['snapshot']); + request.snapshot = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&snapshot=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Snapshot() + ); + client.innerApiCalls.get = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.get( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.ISnapshot|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 regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionSnapshotRequest', ['snapshot']); + request.snapshot = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&snapshot=${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 regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionSnapshotRequest', ['snapshot']); + request.snapshot = 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 regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.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 regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Policy() + ); + client.innerApiCalls.getIamPolicy = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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 regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest', ['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 regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest', ['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 regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.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 regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.insert = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.insert( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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 regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionSnapshotRequest', ['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 regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionSnapshotRequest', ['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('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.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 regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Policy() + ); + client.innerApiCalls.setIamPolicy = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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 regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest', ['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 regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest', ['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('setLabels', () => { + it('invokes setLabels without error', async () => { + const client = new regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.setLabels = stubSimpleCall(expectedResponse); + const [response] = await client.setLabels(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.setLabels as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.setLabels as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes setLabels without error using callback', async () => { + const client = new regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.setLabels = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setLabels( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.setLabels as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.setLabels as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes setLabels with error', async () => { + const client = new regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.setLabels = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.setLabels(request), expectedError); + const actualRequest = (client.innerApiCalls.setLabels as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.setLabels as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes setLabels with closed client', async () => { + const client = new regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest', ['resource']); + request.resource = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.setLabels(request), expectedError); + }); + }); + + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.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 regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.TestPermissionsResponse() + ); + client.innerApiCalls.testIamPermissions = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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 regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest', ['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 regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest', ['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('updateKmsKey', () => { + it('invokes updateKmsKey without error', async () => { + const client = new regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest', ['snapshot']); + request.snapshot = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&snapshot=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.updateKmsKey = stubSimpleCall(expectedResponse); + const [response] = await client.updateKmsKey(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateKmsKey without error using callback', async () => { + const client = new regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest', ['snapshot']); + request.snapshot = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&snapshot=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.updateKmsKey = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateKmsKey( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateKmsKey with error', async () => { + const client = new regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest', ['snapshot']); + request.snapshot = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&snapshot=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateKmsKey = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.updateKmsKey(request), expectedError); + const actualRequest = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateKmsKey with closed client', async () => { + const client = new regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest', ['snapshot']); + request.snapshot = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.updateKmsKey(request), expectedError); + }); + }); + + describe('list', () => { + it('invokes list without error', async () => { + const client = new regionsnapshotsModule.v1.RegionSnapshotsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionSnapshotsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionSnapshotsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionSnapshotsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.Snapshot()), + generateSampleMessage(new protos.google.cloud.compute.v1.Snapshot()), + generateSampleMessage(new protos.google.cloud.compute.v1.Snapshot()), + ]; + 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 regionsnapshotsModule.v1.RegionSnapshotsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionSnapshotsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionSnapshotsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionSnapshotsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.Snapshot()), + generateSampleMessage(new protos.google.cloud.compute.v1.Snapshot()), + generateSampleMessage(new protos.google.cloud.compute.v1.Snapshot()), + ]; + client.innerApiCalls.list = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.list( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.ISnapshot[]|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 regionsnapshotsModule.v1.RegionSnapshotsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionSnapshotsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionSnapshotsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionSnapshotsRequest', ['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 regionsnapshotsModule.v1.RegionSnapshotsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionSnapshotsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionSnapshotsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionSnapshotsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.Snapshot()), + generateSampleMessage(new protos.google.cloud.compute.v1.Snapshot()), + generateSampleMessage(new protos.google.cloud.compute.v1.Snapshot()), + ]; + client.descriptors.page.list.createStream = stubPageStreamingCall(expectedResponse); + const stream = client.listStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1.Snapshot[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1.Snapshot) => { + 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 regionsnapshotsModule.v1.RegionSnapshotsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionSnapshotsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionSnapshotsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionSnapshotsRequest', ['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.v1.Snapshot[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1.Snapshot) => { + 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 regionsnapshotsModule.v1.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionSnapshotsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionSnapshotsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionSnapshotsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.Snapshot()), + generateSampleMessage(new protos.google.cloud.compute.v1.Snapshot()), + generateSampleMessage(new protos.google.cloud.compute.v1.Snapshot()), + ]; + client.descriptors.page.list.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.compute.v1.ISnapshot[] = []; + 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 regionsnapshotsModule.v1.RegionSnapshotsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionSnapshotsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionSnapshotsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionSnapshotsRequest', ['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.v1.ISnapshot[] = []; + 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_snapshots_v1beta.ts b/packages/google-cloud-compute/test/gapic_region_snapshots_v1beta.ts index 941ca61ca68f..064332a9edef 100644 --- a/packages/google-cloud-compute/test/gapic_region_snapshots_v1beta.ts +++ b/packages/google-cloud-compute/test/gapic_region_snapshots_v1beta.ts @@ -1182,6 +1182,138 @@ describe('v1beta.RegionSnapshotsClient', () => { }); }); + describe('updateKmsKey', () => { + it('invokes updateKmsKey without error', async () => { + const client = new regionsnapshotsModule.v1beta.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest', ['snapshot']); + request.snapshot = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&snapshot=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.updateKmsKey = stubSimpleCall(expectedResponse); + const [response] = await client.updateKmsKey(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateKmsKey without error using callback', async () => { + const client = new regionsnapshotsModule.v1beta.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest', ['snapshot']); + request.snapshot = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&snapshot=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.updateKmsKey = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateKmsKey( + 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.updateKmsKey as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateKmsKey with error', async () => { + const client = new regionsnapshotsModule.v1beta.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest', ['snapshot']); + request.snapshot = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&snapshot=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateKmsKey = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.updateKmsKey(request), expectedError); + const actualRequest = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateKmsKey with closed client', async () => { + const client = new regionsnapshotsModule.v1beta.RegionSnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeyRegionSnapshotRequest', ['snapshot']); + request.snapshot = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.updateKmsKey(request), expectedError); + }); + }); + describe('list', () => { it('invokes list without error', async () => { const client = new regionsnapshotsModule.v1beta.RegionSnapshotsClient({ diff --git a/packages/google-cloud-compute/test/gapic_snapshots_v1.ts b/packages/google-cloud-compute/test/gapic_snapshots_v1.ts index 1da08fd4e224..4ec432bd6198 100644 --- a/packages/google-cloud-compute/test/gapic_snapshots_v1.ts +++ b/packages/google-cloud-compute/test/gapic_snapshots_v1.ts @@ -1098,6 +1098,126 @@ describe('v1.SnapshotsClient', () => { }); }); + describe('updateKmsKey', () => { + it('invokes updateKmsKey without error', async () => { + const client = new snapshotsModule.v1.SnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest', ['snapshot']); + request.snapshot = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&snapshot=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.updateKmsKey = stubSimpleCall(expectedResponse); + const [response] = await client.updateKmsKey(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateKmsKey without error using callback', async () => { + const client = new snapshotsModule.v1.SnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest', ['snapshot']); + request.snapshot = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&snapshot=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.updateKmsKey = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateKmsKey( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateKmsKey with error', async () => { + const client = new snapshotsModule.v1.SnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest', ['snapshot']); + request.snapshot = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&snapshot=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateKmsKey = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.updateKmsKey(request), expectedError); + const actualRequest = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateKmsKey with closed client', async () => { + const client = new snapshotsModule.v1.SnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest', ['snapshot']); + request.snapshot = defaultValue2; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.updateKmsKey(request), expectedError); + }); + }); + describe('list', () => { it('invokes list without error', async () => { const client = new snapshotsModule.v1.SnapshotsClient({ diff --git a/packages/google-cloud-compute/test/gapic_snapshots_v1beta.ts b/packages/google-cloud-compute/test/gapic_snapshots_v1beta.ts index 8597426084a0..250d33ce7c61 100644 --- a/packages/google-cloud-compute/test/gapic_snapshots_v1beta.ts +++ b/packages/google-cloud-compute/test/gapic_snapshots_v1beta.ts @@ -1098,6 +1098,126 @@ describe('v1beta.SnapshotsClient', () => { }); }); + describe('updateKmsKey', () => { + it('invokes updateKmsKey without error', async () => { + const client = new snapshotsModule.v1beta.SnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest', ['snapshot']); + request.snapshot = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&snapshot=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.updateKmsKey = stubSimpleCall(expectedResponse); + const [response] = await client.updateKmsKey(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateKmsKey without error using callback', async () => { + const client = new snapshotsModule.v1beta.SnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest', ['snapshot']); + request.snapshot = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&snapshot=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.updateKmsKey = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateKmsKey( + 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.updateKmsKey as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateKmsKey with error', async () => { + const client = new snapshotsModule.v1beta.SnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest', ['snapshot']); + request.snapshot = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&snapshot=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateKmsKey = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.updateKmsKey(request), expectedError); + const actualRequest = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.updateKmsKey as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateKmsKey with closed client', async () => { + const client = new snapshotsModule.v1beta.SnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateKmsKeySnapshotRequest', ['snapshot']); + request.snapshot = defaultValue2; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.updateKmsKey(request), expectedError); + }); + }); + describe('aggregatedList', () => { it('uses async iteration with aggregatedList without error', async () => { diff --git a/packages/google-cloud-compute/test/gapic_zone_vm_extension_policies_v1.ts b/packages/google-cloud-compute/test/gapic_zone_vm_extension_policies_v1.ts new file mode 100644 index 000000000000..225627b836a9 --- /dev/null +++ b/packages/google-cloud-compute/test/gapic_zone_vm_extension_policies_v1.ts @@ -0,0 +1,1054 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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('v1.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.v1.ZoneVmExtensionPoliciesClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new zonevmextensionpoliciesModule.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.ZoneVmExtensionPoliciesClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); + }); + + it('has port', () => { + const port = zonevmextensionpoliciesModule.v1.ZoneVmExtensionPoliciesClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new zonevmextensionpoliciesModule.v1.ZoneVmExtensionPoliciesClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new zonevmextensionpoliciesModule.v1.ZoneVmExtensionPoliciesClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new zonevmextensionpoliciesModule.v1.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.v1.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.v1.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.v1.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.v1.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.v1.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest', ['vmExtensionPolicy']); + request.vmExtensionPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&vm_extension_policy=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.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.v1.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest', ['vmExtensionPolicy']); + request.vmExtensionPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&vm_extension_policy=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.delete = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.delete( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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.v1.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest', ['vmExtensionPolicy']); + request.vmExtensionPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&vm_extension_policy=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.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.v1.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest', ['vmExtensionPolicy']); + request.vmExtensionPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&vm_extension_policy=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.VmExtensionPolicy() + ); + client.innerApiCalls.get = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.get( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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.v1.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.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.v1.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.insert = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.insert( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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.v1.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest', ['vmExtensionPolicy']); + request.vmExtensionPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&vm_extension_policy=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.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.v1.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest', ['vmExtensionPolicy']); + request.vmExtensionPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&vm_extension_policy=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.update = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.update( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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.v1.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.ZoneVmExtensionPoliciesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.VmExtensionPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1.VmExtensionPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1.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.v1.ZoneVmExtensionPoliciesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.VmExtensionPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1.VmExtensionPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1.VmExtensionPolicy()), + ]; + client.innerApiCalls.list = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.list( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.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.v1.ZoneVmExtensionPoliciesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.ZoneVmExtensionPoliciesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.VmExtensionPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1.VmExtensionPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1.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.v1.VmExtensionPolicy[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1.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.v1.ZoneVmExtensionPoliciesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.VmExtensionPolicy[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1.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.v1.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.VmExtensionPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1.VmExtensionPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1.VmExtensionPolicy()), + ]; + client.descriptors.page.list.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.compute.v1.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.v1.ZoneVmExtensionPoliciesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.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.v1.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 + ) + ); + }); + }); +});